Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 18 for TestNode (0.13 sec)

  1. pkg/controller/volume/attachdetach/statusupdater/node_status_updater_test.go

    			}
    		}
    	}
    }
    
    // TestNodeStatusUpdater_UpdateNodeStatusForNode calls setup
    // calls UpdateNodeStatusesForNode on testnode-1
    // check that asw.GetVolumesToReportAttached reports testnode-2 needs to be reported
    // checks that testnode-1 status.volumesAttached is of length 1 and contains the correct volume
    func TestNodeStatusUpdater_UpdateNodeStatusForNode(t *testing.T) {
    	ctx := context.Background()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 8.4K bytes
    - Viewed (0)
  2. subprojects/core/src/test/groovy/org/gradle/internal/service/scopes/ToPlannedNodeConverterRegistryTest.groovy

                getSupportedNodeType() >> TestNode
            }
            def registry = new ToPlannedNodeConverterRegistry([testConverter])
    
            when:
            def foundConverter = registry.getConverter(new TestNode())
            then:
            foundConverter.is(testConverter)
    
            // verify caching works
            when:
            foundConverter = registry.getConverter(new TestNode())
            then:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Mar 17 13:57:29 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  3. pkg/scheduler/framework/plugins/defaultbinder/default_binder_test.go

    	testPod := st.MakePod().Name("foo").Namespace("ns").Obj()
    	testNode := "foohost.kubernetes.mydomain.com"
    	tests := []struct {
    		name        string
    		injectErr   error
    		wantBinding *v1.Binding
    	}{
    		{
    			name: "successful",
    			wantBinding: &v1.Binding{
    				ObjectMeta: metav1.ObjectMeta{Namespace: "ns", Name: "foo"},
    				Target:     v1.ObjectReference{Kind: "Node", Name: testNode},
    			},
    		}, {
    			name:      "binding error",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue May 23 02:17:34 UTC 2023
    - 2.6K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ModelNodeInternalTest.groovy

        def "should have zero executed rules initially"() {
            expect:
            new TestNode(registration).getExecutedRules().size() == 0
        }
    
        def "should record executed rules when notify fired #fireCount time(s)"() {
            def descriptor = Mock(ModelRuleDescriptor)
            ModelNodeInternal modelNode = new TestNode(registration)
            def executionBinder = Mock(RuleBinder)
            executionBinder.isBound() >> true
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 2K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/RegistrySpec.groovy

        protected static class TestNode extends ModelNodeInternal {
            def links = []
    
            TestNode(String creationPath, Class<?> type) {
                super(null, ModelRegistrations.of(ModelPath.path(creationPath)).descriptor("test").build())
                addProjection(new UnmanagedModelProjection(ModelType.of(type)))
            }
    
            TestNode(ModelRegistration registration) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.3K bytes
    - Viewed (0)
  6. pilot/pkg/security/authn/utils/utils_test.go

    		},
    	}
    	for i := range tests {
    		tt := &tests[i]
    		t.Run(tt.name, func(t *testing.T) {
    			testNode := &model.Proxy{
    				Labels: map[string]string{
    					"app": "foo",
    				},
    				Metadata: &model.NodeMetadata{},
    			}
    
    			got := BuildInboundTLS(model.MTLSStrict, testNode, networking.ListenerProtocolTCP, []string{}, tls.TlsParameters_TLSv1_2, &tt.mesh)
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Jul 10 20:24:43 UTC 2023
    - 3.1K bytes
    - Viewed (0)
  7. cni/pkg/nodeagent/cni-watcher_test.go

    	valid := CNIPluginAddEvent{
    		Netns:        "/var/netns/foo",
    		PodName:      "pod-bingo",
    		PodNamespace: "funkyns",
    		IPs: []IPConfig{{
    			Address: *addr,
    		}},
    	}
    
    	setupLogging()
    	NodeName = "testnode"
    	ctx, cancel := context.WithCancel(context.Background())
    	defer cancel()
    	pod := &corev1.Pod{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "pod-bingo",
    			Namespace: "funkyns",
    		},
    		Spec: corev1.PodSpec{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 21:31:35 UTC 2024
    - 7.6K bytes
    - Viewed (0)
  8. maven-core/src/test/java/org/apache/maven/project/harness/Xpp3DomNodeIterator.java

                XmlNode child = children.get(filteredIndex);
                if (testNode(child)) {
                    filteredChildren.add(child);
                }
            }
        }
    
        private boolean testNode(XmlNode node) {
            if (test == null) {
                return true;
            }
            if (test instanceof NodeNameTest) {
    Registered: Wed Jun 12 09:55:16 UTC 2024
    - Last Modified: Wed Sep 06 08:39:32 UTC 2023
    - 4.5K bytes
    - Viewed (0)
  9. src/go/format/format_test.go

    			return
    		}
    		if s == '\n' {
    			line++
    			offs = i + 1
    		}
    	}
    	if len(dst) != len(src) {
    		t.Errorf("len(dst) = %d, len(src) = %d\nsrc = %q", len(dst), len(src), src)
    	}
    }
    
    func TestNode(t *testing.T) {
    	src, err := os.ReadFile(testfile)
    	if err != nil {
    		t.Fatal(err)
    	}
    
    	fset := token.NewFileSet()
    	file, err := parser.ParseFile(fset, testfile, src, parser.ParseComments)
    	if err != nil {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 20 03:54:46 UTC 2021
    - 4.5K bytes
    - Viewed (0)
  10. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/ModelGraphTest.groovy

            0 * listener1.onDiscovered(_)
            0 * listener2.onDiscovered(_)
        }
    
        def node(String path, Class<?> type = String, State state = State.Discovered) {
            def node = new TestNode(path, type)
            node.setState(state)
            return node
        }
    
        def root() {
            return node("", Void, State.Created)
        }
    
        private ModelListener allAcceptingListener() {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 7.8K bytes
    - Viewed (0)
Back to top