Search Options

Results per page
Sort
Preferred Languages
Advance

Results 101 - 110 of 139 for tc (0.02 sec)

  1. cmd/kubeadm/app/util/config/upgradeconfiguration_test.go

    					EtcdUpgrade:        ptr.To(false),
    					ImagePullPolicy:    v1.PullIfNotPresent,
    					ImagePullSerial:    ptr.To(true),
    				},
    			},
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			b, err := yaml.Marshal(tc.cfg)
    			if err != nil {
    				t.Fatalf("unexpected error while marshalling to YAML: %v", err)
    			}
    			docmap, err := kubeadmutil.SplitYAMLDocuments(b)
    			if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu May 16 08:34:39 UTC 2024
    - 11.8K bytes
    - Viewed (0)
  2. pkg/controller/statefulset/stateful_pod_control_test.go

    			set.GetObjectMeta().SetUID("set-123")
    			pod0 := newStatefulSetPod(set, 0)
    			claims0 := getPersistentVolumeClaims(set, pod0)
    			for k := range claims0 {
    				claim := claims0[k]
    				if tc.ownerRef != nil {
    					claim.SetOwnerReferences(tc.ownerRef)
    				}
    				if err := indexer.Add(&claim); err != nil {
    					t.Errorf("Could not add claim %s: %v", k, err)
    				}
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 05 19:06:41 UTC 2024
    - 35.5K bytes
    - Viewed (0)
  3. pkg/kubelet/volumemanager/volume_manager_test.go

    		},
    		{
    			gidAnnotation: "",
    			expected:      []int64{},
    		},
    	}
    
    	for _, tc := range cases {
    		fs := v1.PersistentVolumeFilesystem
    		pv := &v1.PersistentVolume{
    			ObjectMeta: metav1.ObjectMeta{
    				Name: "pvA",
    				Annotations: map[string]string{
    					util.VolumeGidAnnotationKey: tc.gidAnnotation,
    				},
    			},
    			Spec: v1.PersistentVolumeSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 04 06:25:43 UTC 2024
    - 14.1K bytes
    - Viewed (0)
  4. src/encoding/binary/binary_test.go

    		{new([1]struct{ A Struct }), 0},
    		{make([]struct{ A Struct }, 1), 0},
    	}
    
    	for _, tc := range testcases {
    		if Size(tc.val) == -1 {
    			t.Fatalf("Can't get the size of %T", tc.val)
    		}
    
    		if n := added(); n != tc.want {
    			t.Errorf("Sizing %T added %d entries to the cache, want %d", tc.val, n, tc.want)
    		}
    	}
    }
    
    func TestSizeInvalid(t *testing.T) {
    	testcases := []any{
    		int(0),
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 20 19:16:18 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  5. pkg/kubeapiserver/options/authentication_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		t.Run(tc.name, func(t *testing.T) {
    			config, contentData, err := loadAuthenticationConfig(tc.file())
    			if !strings.Contains(errString(err), tc.expectErr) {
    				t.Fatalf("expected error %q, got %v", tc.expectErr, err)
    			}
    			if !reflect.DeepEqual(config, tc.expectedConfig) {
    				t.Fatalf("unexpected config:\n%s", cmp.Diff(tc.expectedConfig, config))
    			}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  6. pkg/kube/inject/inject_test.go

                       ]`,
    		},
    	}
    
    	for _, tc := range cases {
    		tc := tc
    		t.Run(tc.name, func(t *testing.T) {
    			t.Parallel()
    			actual := appendMultusNetwork(tc.in, "istio-cni")
    			if actual != tc.want {
    				t.Fatalf("Unexpected result.\nExpected:\n%v\nActual:\n%v", tc.want, actual)
    			}
    			t.Run("idempotency", func(t *testing.T) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 31 20:35:11 UTC 2024
    - 34.1K bytes
    - Viewed (0)
  7. security/pkg/nodeagent/cache/secretcache_test.go

    			keyPath:      "./testdata/cert-chain.pem",
    			expectResult: true,
    		},
    	}
    	sc := createCache(t, nil, func(resourceName string) {}, security.Options{})
    	for _, tc := range testCases {
    		ret := sc.keyCertificateExist(tc.certPath, tc.keyPath)
    		if tc.expectResult != ret {
    			t.Errorf("unexpected result is returned!")
    		}
    	}
    }
    
    func setupTestDir(t *testing.T, sc *SecretManagerClient) {
    	dir := t.TempDir()
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 16 22:12:28 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  8. cmd/auth-handler.go

    			amzDate, errCode := parseAmzDateHeader(r)
    			if errCode != ErrNone {
    				if ok {
    					tc.FuncName = "handler.Auth"
    					tc.ResponseRecorder.LogErrBody = true
    				}
    
    				// All our internal APIs are sensitive towards Date
    				// header, for all requests where Date header is not
    				// present we will reject such clients.
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Fri May 24 23:05:23 UTC 2024
    - 26K bytes
    - Viewed (0)
  9. tests/integration/pilot/gateway_test.go

    				from:  apps.B,
    				host:  "foo.example.com",
    			},
    		}
    		testCases = append(testCases, additionalTestCases...)
    	}
    	for _, tc := range testCases {
    		t.NewSubTest(fmt.Sprintf("gateway-connectivity-from-%s", tc.from[0].NamespacedName())).Run(func(t framework.TestContext) {
    			tc.from[0].CallOrFail(t, echo.CallOptions{
    				Port: echo.Port{
    					Protocol:    protocol.HTTP,
    					ServicePort: 80,
    				},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  10. pilot/pkg/bootstrap/server_test.go

    				"test.com",
    			},
    		},
    	}
    
    	for _, tc := range tests {
    		t.Run(tc.name, func(t *testing.T) {
    			features.IstiodServiceCustomHost = tc.customHost
    			var args PilotArgs
    			args.Revision = tc.revision
    			args.Namespace = "istio-system"
    			sans := getDNSNames(&args, tc.discoveryAddress)
    			assert.Equal(t, sans, tc.sans)
    		})
    	}
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 13 17:48:28 UTC 2024
    - 23.1K bytes
    - Viewed (0)
Back to top