- Sort Score
- Result 10 results
- Languages All
Results 121 - 130 of 483 for testCases (0.15 sec)
-
staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go
// ======================================================================= func TestPrefix(t *testing.T) { testcases := map[string]string{ "custom/prefix": "/custom/prefix/", "/custom//prefix//": "/custom/prefix/", "/registry": "/registry/", } for configuredPrefix, effectivePrefix := range testcases { _, store, _ := testSetup(t, withPrefix(configuredPrefix)) if store.pathPrefix != effectivePrefix {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 11 12:45:33 UTC 2024 - 26.5K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/metrics/metrics_test.go
testAPIServerIDHash = "sha256:14f9d63e669337ac6bfda2e2162915ee6a6067743eddd4e5c374b572f951ff37" ) var ( errCode = "empty" ) func TestRecordKMSOperationLatency(t *testing.T) { testCases := []struct { name string methodName string duration time.Duration operationErr error want string }{ { name: "operation success",
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sat Sep 09 22:31:32 UTC 2023 - 31.9K bytes - Viewed (0) -
security/pkg/nodeagent/caclient/providers/citadel/client_test.go
} if err := file.Copy(filepath.Join(certDir, "key.pem"), dir, "key.pem"); err != nil { t.Fatal(err) } checkSign(t, cli, false) }) } func TestCitadelClient(t *testing.T) { testCases := map[string]struct { server mockCAServer expectedCert []string expectedErr string expectRetry bool }{ "Valid certs": { server: mockCAServer{Certs: fakeCert, Err: nil},
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 24 21:03:23 UTC 2024 - 11.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/pkg/server/healthz/healthz_test.go
} for _, tc := range testCases { result := checkerNames(tc.have...) t.Run(tc.desc, func(t *testing.T) { if !reflect.DeepEqual(tc.want, result) { t.Errorf("want %#v, got %#v", tc.want, result) } }) } } func TestFormatQuoted(t *testing.T) { n1 := "n1" n2 := "n2" testCases := []struct { desc string names []string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Wed Nov 15 20:43:16 UTC 2023 - 11.4K bytes - Viewed (0) -
security/pkg/k8s/configutil_test.go
gvr := schema.GroupVersionResource{ Resource: "configmaps", Version: "v1", } caBundle := "test-data" testData := map[string]string{ constants.CACertNamespaceConfigMapDataName: "test-data", } testCases := []struct { name string existingConfigMap *v1.ConfigMap expectedActions []ktesting.Action expectedErr string }{ { name: "non-existing ConfigMap",
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Feb 08 21:58:25 UTC 2024 - 13K bytes - Viewed (0) -
istioctl/pkg/workload/workload_test.go
} cmdWithClusterID := []string{ "entry", "configure", "-f", path.Join("testdata/vmconfig", dir.Name(), "workloadgroup.yaml"), "--internalIP", testCases[dir.Name()]["internalIP"], "--ingressIP", testCases[dir.Name()]["ingressIP"], "--clusterID", constants.DefaultClusterName, "--revision", "rev-1", "-o", testdir, }
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Mar 27 16:59:05 UTC 2024 - 14.6K bytes - Viewed (0) -
src/encoding/xml/xml_test.go
} s := &Test{Ns: "http://example.com/ns", Body: "hello world"} return Marshal(s) } func TestIssue11405(t *testing.T) { testCases := []string{ "<root>", "<root><foo>", "<root><foo></foo>", } for _, tc := range testCases { d := NewDecoder(strings.NewReader(tc)) var err error for { _, err = d.Token() if err != nil { break } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 26 19:58:28 UTC 2024 - 36.9K bytes - Viewed (0) -
pkg/scheduler/framework/plugins/podtopologyspread/plugin_test.go
"k8s.io/kubernetes/pkg/scheduler/internal/cache" st "k8s.io/kubernetes/pkg/scheduler/testing" ) func Test_isSchedulableAfterNodeChange(t *testing.T) { testcases := []struct { name string pod *v1.Pod oldNode, newNode *v1.Node expectedHint framework.QueueingHint expectedErr bool }{ {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Sun Dec 17 06:30:53 UTC 2023 - 13K bytes - Viewed (0) -
pilot/pkg/security/authz/builder/builder_test.go
Port: 999999, PathPrefix: "check", StatusOnError: "999", }, }, }, }, } ) func TestGenerator_GenerateHTTP(t *testing.T) { testCases := []struct { name string tdBundle trustdomain.Bundle meshConfig *meshconfig.MeshConfig version *model.IstioVersion input string want []string }{ {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 22:20:44 UTC 2024 - 13.8K bytes - Viewed (0) -
security/pkg/server/ca/server_test.go
t.Errorf("Case %s: expecting cert to be (%s) but got (%s) at position [%d] of cert chain.", id, mockCertChain, v, i) } } } } } func TestCreateCertificate(t *testing.T) { testCases := map[string]struct { authenticators []security.Authenticator ca CertificateAuthority certChain []string code codes.Code }{ "No authenticator": { authenticators: nil,
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 28 16:41:38 UTC 2024 - 15.8K bytes - Viewed (0)