Search Options

Results per page
Sort
Preferred Languages
Advance

Results 201 - 210 of 532 for testCases (0.39 sec)

  1. pkg/volume/util/operationexecutor/operation_generator_test.go

    func TestOperationGenerator_GenerateUnmapVolumeFunc_PluginName(t *testing.T) {
    	type testcase struct {
    		name              string
    		pluginName        string
    		pvSpec            v1.PersistentVolumeSpec
    		probVolumePlugins []volume.VolumePlugin
    	}
    
    	testcases := []testcase{
    		{
    			name:       "gce pd plugin: csi migration disabled",
    			pluginName: "fake-plugin",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 16.2K bytes
    - Viewed (0)
  2. testing/internal-integ-testing/src/main/groovy/org/gradle/integtests/fixtures/TestNGExecutionResult.groovy

        }
    
        TestClassExecutionResult assertTestsExecuted(String... testNames) {
            def actualTestMethods = findTestMethods().keySet()
            assert actualTestMethods == testNames as Set
            this
        }
    
        @Override
        TestClassExecutionResult assertTestsExecuted(TestCase ... testCases) {
            throw new UnsupportedOperationException("Unsupported.  Implement if you need it.")
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  3. security/pkg/nodeagent/cache/secretcache_test.go

    		},
    	}
    
    	sc := createCache(t, nil, func(resourceName string) {}, security.Options{})
    	for _, tc := range testCases {
    		ret := sc.rootCertificateExist(tc.certPath)
    		if tc.expectResult != ret {
    			t.Errorf("unexpected result is returned!")
    		}
    	}
    }
    
    func TestKeyCertificateExist(t *testing.T) {
    	testCases := map[string]struct {
    		certPath     string
    		keyPath      string
    		expectResult bool
    	}{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  4. pkg/controller/job/success_policy_test.go

    	featuregatetesting "k8s.io/component-base/featuregate/testing"
    	"k8s.io/klog/v2/ktesting"
    	"k8s.io/kubernetes/pkg/features"
    	"k8s.io/utils/ptr"
    )
    
    func TestMatchSuccessPolicy(t *testing.T) {
    	testCases := map[string]struct {
    		successPolicy          *batch.SuccessPolicy
    		completions            int32
    		succeededIndexes       orderedIntervals
    		wantMessage            string
    		wantMetSuccessPolicy   bool
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 15:36:36 UTC 2024
    - 14.6K bytes
    - Viewed (0)
  5. cmd/kube-scheduler/app/server_test.go

    kind: KubeSchedulerConfiguration
    clientConnection:
      kubeconfig: '%s'
    leaderElection:
      leaseDuration: 1h
    `, configKubeconfig)), os.FileMode(0600)); err != nil {
    		t.Fatal(err)
    	}
    
    	testcases := []struct {
    		name                 string
    		flags                []string
    		registryOptions      []Option
    		restoreFeatures      map[featuregate.Feature]bool
    		wantPlugins          map[string]*config.Plugins
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  6. pkg/proxy/util/nodeport_addresses_test.go

    	}
    	return nil
    }
    
    func TestGetNodeIPs(t *testing.T) {
    	type expectation struct {
    		matchAll bool
    		ips      sets.Set[string]
    	}
    
    	testCases := []struct {
    		name          string
    		cidrs         []string
    		itfAddrsPairs []InterfaceAddrsPair
    		expected      map[v1.IPFamily]expectation
    	}{
    		{
    			name:  "IPv4 single",
    			cidrs: []string{"10.20.30.0/24"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 13:25:06 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  7. pkg/registry/policy/poddisruptionbudget/strategy_test.go

    	}
    	errs := StatusStrategy.ValidateUpdate(ctx, newPdb, oldPdb)
    	if len(errs) != 0 {
    		t.Errorf("Unexpected error %v", errs)
    	}
    }
    
    func TestPodDisruptionBudgetStatusValidationByApiVersion(t *testing.T) {
    	testCases := map[string]struct {
    		apiVersion string
    		validation bool
    	}{
    		"policy/v1beta1 should not do update validation": {
    			apiVersion: "v1beta1",
    			validation: false,
    		},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  8. tests/integration/security/filebased_tls_origination/egress_gateway_origination_test.go

    				t.Fatalf("failed to apply sidecar, %v", err)
    			}
    
    			// Set up Host Name
    			host := "external-service." + serviceNS.Name() + ".svc.cluster.local"
    
    			testCases := map[string]struct {
    				destinationRuleMode string
    				code                int
    				gateway             bool //  If gateway is true, request is expected to pass through the egress gateway
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 11.9K bytes
    - Viewed (0)
  9. pkg/kubelet/cm/cpumanager/topology_hints_test.go

    			},
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.description, func(t *testing.T) {
    			featuregatetesting.SetFeatureGateDuringTest(t, utilfeature.DefaultFeatureGate, pkgfeatures.CPUManagerPolicyAlphaOptions, true)
    
    			var activePods []*v1.Pod
    			for p := range testCase.assignments {
    				pod := v1.Pod{}
    				pod.UID = types.UID(p)
    				for c := range testCase.assignments[p] {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 19K bytes
    - Viewed (0)
  10. pkg/registry/core/pod/strategy_test.go

    		},
    	}
    	for _, testCase := range testCases {
    		m := MatchPod(labels.Everything(), testCase.fieldSelector)
    		result, err := m.Matches(testCase.in)
    		if err != nil {
    			t.Errorf("Unexpected error %v", err)
    		}
    		if result != testCase.expectMatch {
    			t.Errorf("Result %v, Expected %v, Selector: %v, Pod: %v", result, testCase.expectMatch, testCase.fieldSelector.String(), testCase.in)
    		}
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 76.2K bytes
    - Viewed (0)
Back to top