Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 483 for testCases (0.13 sec)

  1. pkg/dns/client/dns_test.go

    			}
    		}
    	})
    	for _, tc := range testCases {
    		matched := sets.New[string]()
    		for key := range nt.Table {
    			if strings.HasPrefix(key, tc.startsWith) {
    				matched.Insert(key)
    			}
    		}
    		if !matched.Equals(tc.expected) {
    			t.Errorf("expected records %v, got: %v", tc.expected, matched)
    		}
    	}
    }
    
    func testDNS(t *testing.T, d *LocalDNSServer) {
    	testCases := []struct {
    		name                     string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Feb 29 16:17:34 UTC 2024
    - 20.4K bytes
    - Viewed (0)
  2. src/compress/flate/flate_test.go

    	// >>> hex_string = "010100feff11"
    	// >>> import zlib
    	// >>> zlib.decompress(hex_string.decode("hex"), -15) # Negative means raw DEFLATE
    	// '\x11'
    
    	testCases := []struct {
    		desc   string // Description of the stream
    		stream string // Hexstring of the input DEFLATE stream
    		want   string // Expected result. Use "fail" to expect failure
    	}{{
    		"degenerate HCLenTree",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 20 18:41:18 UTC 2020
    - 11K bytes
    - Viewed (1)
  3. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/grpc_service_unix_test.go

    	}{
    		{"emptyConfiguration", ""},
    		{"invalidScheme", "tcp://localhost:6060"},
    	}
    
    	for _, testCase := range invalidConfigs {
    		t.Run(testCase.name, func(t *testing.T) {
    			_, err := NewGRPCService(ctx, testCase.endpoint, 1*time.Second)
    			if err == nil {
    				t.Fatalf("should fail to create envelope service for %s.", testCase.name)
    			}
    		})
    	}
    }
    
    func testContext(t *testing.T) context.Context {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 29 05:36:41 UTC 2023
    - 10K bytes
    - Viewed (0)
  4. pkg/volume/hostpath/host_path_test.go

    }
    
    func tearDown() {
    	os.RemoveAll("/tmp/ExistingFolder")
    }
    
    func TestOSFileTypeChecker(t *testing.T) {
    	err := setUp()
    	if err != nil {
    		t.Error(err)
    	}
    	defer tearDown()
    	testCases := []struct {
    		name        string
    		path        string
    		desiredType string
    		isDir       bool
    		isFile      bool
    		isSocket    bool
    		isBlock     bool
    		isChar      bool
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  5. pkg/scheduler/framework/plugins/nodeports/node_ports_test.go

    			}
    		})
    	}
    }
    
    func Test_isSchedulableAfterPodDeleted(t *testing.T) {
    	podWithHostPort := st.MakePod().HostPort(8080)
    
    	testcases := map[string]struct {
    		pod          *v1.Pod
    		oldObj       interface{}
    		expectedHint framework.QueueingHint
    		expectedErr  bool
    	}{
    		"backoff-wrong-old-object": {
    			pod:          podWithHostPort.Obj(),
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Oct 19 11:02:11 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  6. staging/src/k8s.io/apiserver/pkg/storage/value/encrypt/envelope/envelope_test.go

    	return &testEnvelopeService{
    		keyVersion: "1",
    	}
    }
    
    // Throw error if Envelope transformer tries to contact Envelope without hitting cache.
    func TestEnvelopeCaching(t *testing.T) {
    	testCases := []struct {
    		desc                     string
    		cacheSize                int
    		simulateKMSPluginFailure bool
    		expectedError            string
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 14:23:50 UTC 2023
    - 10.1K bytes
    - Viewed (0)
  7. pkg/kubelet/cm/devicemanager/pod_devices_test.go

    func TestDeviceRunContainerOptions(t *testing.T) {
    	const (
    		podUID        = "pod"
    		containerName = "container"
    		resource1     = "example1.com/resource1"
    		resource2     = "example2.com/resource2"
    	)
    	testCases := []struct {
    		description          string
    		gate                 bool
    		responsesPerResource map[string]*pluginapi.ContainerAllocateResponse
    		expected             *DeviceRunContainerOptions
    	}{
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 24 18:25:29 UTC 2024
    - 10.3K bytes
    - Viewed (0)
  8. pkg/registry/batch/cronjob/strategy_test.go

    	}
    }
    
    func TestCronJobStrategy_WarningsOnCreate(t *testing.T) {
    	ctx := genericapirequest.NewDefaultContext()
    
    	now := metav1.Now()
    
    	testcases := map[string]struct {
    		cronjob           *batch.CronJob
    		wantWarningsCount int32
    	}{
    		"happy path cronjob": {
    			wantWarningsCount: 0,
    			cronjob: &batch.CronJob{
    				ObjectMeta: metav1.ObjectMeta{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 15 14:34:53 UTC 2024
    - 12.2K bytes
    - Viewed (0)
  9. tests/integration/security/egress_sidecar_tls_origination_test.go

    			}, false, apps.Ns2.Namespace.Name())
    
    			// Set up Host Namespace
    			host := apps.External.All.Config().ClusterLocalFQDN()
    
    			testCases := []struct {
    				name             string
    				credentialToUse  string
    				from             echo.Instances
    				authorizeSidecar bool
    				drSelector       string
    				expectedResponse ingressutil.ExpectedResponse
    			}{
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 10.4K bytes
    - Viewed (0)
  10. staging/src/k8s.io/apimachinery/pkg/util/version/version_test.go

    		},
    	}
    
    	for _, tc := range testCases {
    		// Arrange & Act
    		actual, err := HighestSupportedVersion(tc.versions)
    
    		// Assert
    		if tc.shouldFail && err == nil {
    			t.Fatalf("expecting highestSupportedVersion to fail, but got nil error for testcase: %#v", tc)
    		}
    		if !tc.shouldFail && err != nil {
    			t.Fatalf("unexpected error during ValidatePlugin for testcase: %#v\r\n err:%v", tc, err)
    		}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Sep 18 19:25:29 UTC 2023
    - 13.4K bytes
    - Viewed (0)
Back to top