- Sort Score
- Result 10 results
- Languages All
Results 211 - 220 of 483 for testCases (0.41 sec)
-
pkg/api/v1/pod/util_test.go
metav1 "k8s.io/apimachinery/pkg/apis/meta/v1" "k8s.io/apimachinery/pkg/util/intstr" "k8s.io/apimachinery/pkg/util/sets" "k8s.io/apimachinery/pkg/util/validation/field" ) func TestFindPort(t *testing.T) { testCases := []struct { name string containers []v1.Container port intstr.IntOrString expected int pass bool }{{ name: "valid int, no ports", containers: []v1.Container{{}},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Sep 25 11:04:08 UTC 2023 - 32.1K bytes - Viewed (0) -
pilot/pkg/networking/core/envoyfilter/cluster_patch_test.go
Http2ProtocolOptions: &core.Http2ProtocolOptions{ AllowConnect: true, AllowMetadata: true, }, LbPolicy: cluster.Cluster_RING_HASH, DnsLookupFamily: cluster.Cluster_V6_ONLY, }, } testCases := []struct { name string input []*cluster.Cluster proxy *model.Proxy host string patchContext networking.EnvoyFilter_PatchContext output []*cluster.Cluster }{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Thu Mar 28 17:09:02 UTC 2024 - 20.7K bytes - Viewed (0) -
pkg/api/v1/resource/helpers_test.go
Resources: r, }, }, Overhead: overhead, }, } } func TestPodResourceRequests(t *testing.T) { restartAlways := v1.ContainerRestartPolicyAlways testCases := []struct { description string options PodResourcesOptions overhead v1.ResourceList podResizeStatus v1.PodResizeStatus initContainers []v1.Container
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jul 07 22:26:13 UTC 2023 - 38.3K bytes - Viewed (0) -
pkg/volume/iscsi/iscsi_util_test.go
baseDir, err := createFakePluginDirs() if err != nil { t.Errorf("error creating fake plugin dir: %v", err) } defer os.RemoveAll(baseDir) testCases := []struct { name string baseDir string portal string iqn string count int }{ { name: "wrong portal, no volumes", baseDir: baseDir,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Oct 18 09:43:07 UTC 2022 - 14.5K bytes - Viewed (0) -
pkg/serviceaccount/jwt_test.go
} differentIssuerToken, err := differentIssuerGenerator.GenerateToken(serviceaccount.LegacyClaims(*serviceAccount, *rsaSecret)) if err != nil { t.Fatalf("error generating token: %v", err) } testCases := map[string]struct { Client clientset.Interface Keys []interface{} Token string ExpectedErr bool ExpectedOK bool ExpectedUserName string ExpectedUserUID string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Feb 27 22:16:08 UTC 2024 - 17K bytes - Viewed (0) -
pkg/registry/flowcontrol/ensurer/flowschema_test.go
expected: fs1, actual: fs2, specChanged: true, }, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { w := !flowSchemaSpecEqual(testCase.expected, testCase.actual) assert.Equal(t, testCase.specChanged, w) }) } } func TestRemoveFlowSchema(t *testing.T) { tests := []struct { name string
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Oct 30 12:18:35 UTC 2023 - 15.2K bytes - Viewed (0) -
pkg/registry/flowcontrol/ensurer/prioritylevelconfiguration_test.go
specChanged: true, }, } for _, testCase := range testCases { t.Run(testCase.name, func(t *testing.T) { w := !plcSpecEqualish(testCase.expected, testCase.actual) if testCase.specChanged != w { t.Errorf("Expected priorityLevelSpecChanged to return %t, but got: %t - diff: %s", testCase.specChanged, w, cmp.Diff(testCase.expected, testCase.actual)) } }) } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Apr 15 14:34:53 UTC 2024 - 19.8K bytes - Viewed (0) -
staging/src/k8s.io/apiserver/plugin/pkg/authenticator/token/webhook/webhook_v1beta1_test.go
expectCalls: 0, }, } for _, testcase := range testcases { t.Run(testcase.description, func(t *testing.T) { serv.allow = testcase.allow serv.statusCode = testcase.code serv.called = 0 _, ok, err := wh.AuthenticateToken(context.Background(), testcase.token) hasError := err != nil if hasError != testcase.expectError {
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Mar 18 00:47:42 UTC 2022 - 19.2K bytes - Viewed (0) -
pkg/config/validation/agent/validation_test.go
t.Errorf("expected an error for each field %v", err) } default: t.Errorf("expected a multi error as output") } } } func TestValidateTLS(t *testing.T) { testCases := []struct { name string tls *networking.ClientTLSSettings valid bool }{ { name: "SIMPLE: Credential Name set correctly", tls: &networking.ClientTLSSettings{
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Apr 17 20:06:41 UTC 2024 - 39.1K bytes - Viewed (0) -
src/index/suffixarray/suffixarray_test.go
"io/fs" "math/rand" "os" "path/filepath" "regexp" "slices" "sort" "strings" "testing" ) type testCase struct { name string // name of test case source string // source to index patterns []string // patterns to lookup } var testCases = []testCase{ { "empty string", "", []string{ "", "foo", "(foo)", ".*", "a*", }, }, {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 14.1K bytes - Viewed (0)