Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 579 for testCases (0.16 sec)

  1. pkg/kubelet/eviction/helpers_test.go

    			equal: false,
    		},
    	}
    
    	for i, testCase := range testCases {
    		if compareThresholdValue(testCase.a, testCase.b) != testCase.equal ||
    			compareThresholdValue(testCase.b, testCase.a) != testCase.equal {
    			t.Errorf("Test case: %v failed", i)
    		}
    	}
    }
    func TestAddContainerFsThresholds(t *testing.T) {
    	gracePeriod := time.Duration(1)
    	testCases := []struct {
    		description                   string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 15 23:14:12 UTC 2024
    - 106.7K bytes
    - Viewed (0)
  2. security/pkg/k8s/chiron/utils_test.go

    	_, _, _, err := GenKeyCertK8sCA(client.Kube(), "foo", ca, testSigner, true, DefaulCertTTL)
    	assert.NoError(t, err)
    }
    
    func TestReadCACert(t *testing.T) {
    	testCases := map[string]struct {
    		certPath     string
    		shouldFail   bool
    		expectedCert []byte
    	}{
    		"cert not exist": {
    			certPath:   "./invalid-path/invalid-file",
    			shouldFail: true,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  3. pkg/spiffe/spiffe_test.go

    				"bar.domain.com": {validRootCert},
    			},
    			errContains: "x509: certificate signed by unknown authority",
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			certMap := make(map[string][]*x509.Certificate)
    			for trustDomain, certStrs := range testCase.certMap {
    				certMap[trustDomain] = []*x509.Certificate{}
    				for _, certStr := range certStrs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  4. pkg/kubelet/eviction/memory_threshold_notifier_test.go

    		threshold:  threshold,
    		cgroupPath: testCgroupPath,
    		events:     make(chan struct{}),
    		factory:    factory,
    		handler:    handler,
    	}
    }
    
    func TestUpdateThreshold(t *testing.T) {
    	testCases := []struct {
    		description        string
    		available          resource.Quantity
    		workingSet         resource.Quantity
    		usage              resource.Quantity
    		evictionThreshold  evictionapi.Threshold
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. pkg/controller/statefulset/stateful_set_utils_test.go

    			},
    			schema:      podKind,
    			shouldMatch: false,
    		},
    	}
    	for _, tc := range testCases {
    		got := matchesRef(&tc.ref, &tc.obj, tc.schema)
    		if got != tc.shouldMatch {
    			t.Errorf("Failed %s: got %t, expected %t", tc.name, got, tc.shouldMatch)
    		}
    	}
    }
    
    func TestIsClaimOwnerUpToDate(t *testing.T) {
    	testCases := []struct {
    		name            string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 50.9K bytes
    - Viewed (0)
  6. hack/make-rules/test.sh

    fi
    
    # Filter out arguments that start with "-" and move them to goflags.
    testcases=()
    for arg; do
      if [[ "${arg}" == -* ]]; then
        goflags+=("${arg}")
      else
        testcases+=("${arg}")
      fi
    done
    if [[ ${#testcases[@]} -eq 0 ]]; then
      kube::util::read-array testcases < <(kube::test::find_dirs)
    fi
    set -- "${testcases[@]+${testcases[@]}}"
    
    if [[ -n "${KUBE_RACE}" ]] ; then
      goflags+=("${KUBE_RACE}")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 10.8K bytes
    - Viewed (0)
  7. cmd/kubeadm/app/phases/addons/proxy/proxy_test.go

    				Image:             "foo",
    				ProxyConfigMap:    "foo",
    				ProxyConfigMapKey: "foo",
    			},
    		},
    	}
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			daemonSetBytes, _ := kubeadmutil.ParseTemplate(testCase.manifest, testCase.data)
    			daemonSet := &apps.DaemonSet{}
    			if err := runtime.DecodeInto(clientsetscheme.Codecs.UniversalDecoder(), daemonSetBytes, daemonSet); err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sun Feb 18 11:14:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tests/integration/operator/install_test.go

    func TestInstallCommandInput(t *testing.T) {
    	framework.
    		NewTest(t).
    		Run(func(ctx framework.TestContext) {
    			istioCtl := istioctl.NewOrFail(ctx, ctx, istioctl.Config{})
    			testCases := []installTestCase{
    				{
    					command:   []string{"install", "--dry-run", "--revision", ""},
    					errString: InvalidRevision,
    				},
    				{
    					command:   []string{"install", "--dry-run", "--revision", "1.8.0"},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 14:30:43 UTC 2024
    - 2.8K bytes
    - Viewed (0)
  9. cmd/kubeadm/app/cmd/config_test.go

    	if len(actual) != defaultNumberOfImages {
    		t.Fatalf("Expected %v but found %v images", defaultNumberOfImages, len(actual))
    	}
    }
    
    func TestImagesListRunWithCustomConfigPath(t *testing.T) {
    	testcases := []struct {
    		name               string
    		expectedImageCount int
    		// each string provided here must appear in at least one image returned by Run
    		expectedImageSubstrings []string
    		configContents          []byte
    	}{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 29 06:58:01 UTC 2024
    - 13K bytes
    - Viewed (0)
  10. pkg/volume/csi/csi_attacher_test.go

    		if err != nil {
    			t.Error(err)
    		}
    		if watch != nil {
    			watch.Modify(attach)
    		}
    	}
    }
    
    func TestAttacherAttach(t *testing.T) {
    	testCases := []struct {
    		name                string
    		nodeName            string
    		driverName          string
    		volumeName          string
    		attachID            string
    		spec                *volume.Spec
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Apr 18 12:23:16 UTC 2024
    - 58.1K bytes
    - Viewed (0)
Back to top