Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 570 for testCases (0.17 sec)

  1. pkg/api/persistentvolume/util_test.go

    				VolumeHandle: "foobar",
    			},
    		},
    	}
    
    	if vacName != nil {
    		pvSpec.VolumeAttributesClassName = vacName
    	}
    	return pvSpec
    }
    
    func TestWarnings(t *testing.T) {
    	testcases := []struct {
    		name     string
    		template *api.PersistentVolume
    		expected []string
    	}{
    		{
    			name:     "null",
    			template: nil,
    			expected: nil,
    		},
    		{
    			name: "no warning",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  2. internal/bucket/lifecycle/lifecycle_test.go

    		},
    	}
    
    	for i, tc := range testCases {
    		t.Run(fmt.Sprintf("Test %d", i+1), func(t *testing.T) {
    			got := ExpectedExpiryTime(tc.modTime, int(tc.days))
    			if !got.Equal(tc.expected) {
    				t.Fatalf("Expected %v to be equal to %v", got, tc.expected)
    			}
    		})
    	}
    }
    
    func TestEval(t *testing.T) {
    	testCases := []struct {
    		inputConfig            string
    Registered: Sun Jun 16 00:44:34 UTC 2024
    - Last Modified: Thu May 23 01:12:48 UTC 2024
    - 55.1K bytes
    - Viewed (0)
  3. pkg/bootstrap/config_test.go

    	g.Expect(node.Metadata.Labels[model.LocalityLabel]).To(Equal("region/zone/subzone"))
    }
    
    func TestSetIstioVersion(t *testing.T) {
    	test.SetForTest(t, &version.Info.Version, "binary")
    
    	testCases := []struct {
    		name            string
    		meta            *model.BootstrapNodeMetadata
    		binaryVersion   string
    		expectedVersion string
    	}{
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Mar 28 20:38:02 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  4. pkg/kubelet/container/helpers_test.go

    							},
    						},
    					},
    				},
    			},
    			expectedResult: true,
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			pod := &v1.Pod{}
    			pod.Spec = *testCase.podSpec
    			result := HasWindowsHostProcessContainer(pod)
    			assert.Equal(t, result, testCase.expectedResult)
    		})
    	}
    }
    
    func TestHashContainerWithoutResources(t *testing.T) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed May 22 01:55:46 UTC 2024
    - 24.5K bytes
    - Viewed (0)
  5. pilot/pkg/networking/core/route/retry/retry_test.go

    	networking "istio.io/api/networking/v1alpha3"
    	"istio.io/istio/pilot/pkg/networking/core/route/retry"
    	"istio.io/istio/pilot/pkg/util/protoconv"
    )
    
    func TestRetry(t *testing.T) {
    	testCases := []struct {
    		name       string
    		route      *networking.HTTPRoute
    		assertFunc func(g *WithT, policy *envoyroute.RetryPolicy)
    	}{
    		{
    			name: "TestNilRetryShouldReturnDefault",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue May 14 14:12:39 UTC 2024
    - 7.7K bytes
    - Viewed (0)
  6. platforms/core-configuration/configuration-cache/src/integTest/groovy/org/gradle/internal/cc/impl/inputs/process/instrument/Execute3InstanceInstrumentationInDynamicGroovyWithIndyIntegrationTest.groovy

        @Override
        def indyModes() {
            return [true]
        }
    
        @Override
        def testCases() {
            return [
                // varInitializer | processCreator | expectedPwdSuffix | expectedEnvVar
                [fromString(), "command.execute(new String[] {'FOOBAR=foobar'}, file('$pwd'))", pwd, "foobar"],
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sat Jun 08 11:29:25 UTC 2024
    - 3.6K bytes
    - Viewed (0)
  7. pkg/util/net/ip_test.go

    			if !reflect.DeepEqual(gotIpv6, tt.wantIpv6) {
    				t.Errorf("ParseIPsSplitToV4V6() gotIpv6 = %v, want %v", gotIpv6, tt.wantIpv6)
    			}
    		})
    	}
    }
    
    func TestIsRequestFromLocalhost(t *testing.T) {
    	testCases := []struct {
    		name       string
    		remoteAddr string
    		expected   bool
    	}{
    		{
    			name:       "Localhost IPv4",
    			remoteAddr: "127.0.0.1:8080",
    			expected:   true,
    		},
    		{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 01 14:41:40 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  8. tests/integration/pilot/gateway_test.go

    				from:  apps.D,
    				host:  "foo.example.com",
    			},
    			{
    				check: check.OK(),
    				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{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Jun 06 22:12:34 UTC 2024
    - 17.7K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/storage/etcd3/watcher_test.go

    			watchKey:         "/pods/",
    			watcherMaxLimit:  1,
    			expectEventCount: 2,
    			expectGetCount:   2,
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			defaultWatcherMaxLimit = testCase.watcherMaxLimit
    
    			origCtx, store, _ := testSetup(t)
    			initList, err := initStoreData(origCtx, store)
    			if err != nil {
    				t.Fatal(err)
    			}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 12.3K bytes
    - Viewed (0)
  10. src/compress/gzip/gzip_test.go

    	}
    }
    
    // TestLatin1RoundTrip tests that metadata that is representable in Latin-1
    // survives a round trip.
    func TestLatin1RoundTrip(t *testing.T) {
    	testCases := []struct {
    		name string
    		ok   bool
    	}{
    		{"", true},
    		{"ASCII is OK", true},
    		{"unless it contains a NUL\x00", false},
    		{"no matter where \x00 occurs", false},
    		{"\x00\x00\x00", false},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Mar 11 17:10:06 UTC 2024
    - 6K bytes
    - Viewed (0)
Back to top