Search Options

Results per page
Sort
Preferred Languages
Advance

Results 171 - 180 of 1,123 for testCases (0.3 sec)

  1. staging/src/k8s.io/apiserver/pkg/server/options/audit_test.go

    	tmpDir := t.TempDir()
    	auditPath := filepath.Join(tmpDir, "audit")
    
    	webhookConfig := makeTmpWebhookConfig(t)
    	defer os.Remove(webhookConfig)
    
    	policy := makeTmpPolicy(t)
    	defer os.Remove(policy)
    
    	testCases := []struct {
    		name     string
    		options  func() *AuditOptions
    		expected string
    	}{{
    		name:    "default",
    		options: NewAuditOptions,
    	}, {
    		name: "default log",
    		options: func() *AuditOptions {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Jun 27 14:57:26 UTC 2022
    - 7.8K bytes
    - Viewed (0)
  2. pkg/kubectl/cmd/convert/convert_test.go

    	"k8s.io/client-go/rest/fake"
    	cmdtesting "k8s.io/kubectl/pkg/cmd/testing"
    )
    
    type testcase struct {
    	name          string
    	file          string
    	outputVersion string
    	fields        []checkField
    }
    
    type checkField struct {
    	expected string
    }
    
    func TestConvertObject(t *testing.T) {
    	testcases := []testcase{
    		{
    			name:          "apps deployment to extensions deployment",
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 12 03:21:17 UTC 2023
    - 3.8K bytes
    - Viewed (0)
  3. pkg/controller/endpointslicemirroring/endpointslicemirroring_controller_test.go

    		informerFactory.Core().V1().Services().Informer().GetStore(),
    	}
    }
    
    func TestSyncEndpoints(t *testing.T) {
    	endpointsName := "testing-sync-endpoints"
    	namespace := metav1.NamespaceDefault
    
    	testCases := []struct {
    		testName           string
    		service            *v1.Service
    		endpoints          *v1.Endpoints
    		endpointSlices     []*discovery.EndpointSlice
    		expectedNumActions int
    		expectedNumSlices  int
    	}{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 12 12:57:29 UTC 2023
    - 13.9K bytes
    - Viewed (0)
  4. security/pkg/k8s/chiron/utils_test.go

    	_, _, _, err := GenKeyCertK8sCA(client.Kube(), "foo", ca, testSigner, true, DefaulCertTTL)
    	assert.NoError(t, err)
    }
    
    func TestReadCACert(t *testing.T) {
    	testCases := map[string]struct {
    		certPath     string
    		shouldFail   bool
    		expectedCert []byte
    	}{
    		"cert not exist": {
    			certPath:   "./invalid-path/invalid-file",
    			shouldFail: true,
    		},
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed May 15 03:58:11 UTC 2024
    - 13K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/util/flowcontrol/max_seats_test.go

    			expectedMaxSeats: 2,
    		},
    		{
    			name:             "nominalCL=100, handSize=20",
    			nominalCL:        100,
    			handSize:         20,
    			expectedMaxSeats: 5,
    		},
    	}
    
    	for _, testcase := range testcases {
    		t.Run(testcase.name, func(t *testing.T) {
    			clientset := clientsetfake.NewSimpleClientset()
    			informerFactory := informers.NewSharedInformerFactory(clientset, time.Second)
    			flowcontrolClient := clientset.FlowcontrolV1()
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Oct 30 12:18:40 UTC 2023
    - 4.2K bytes
    - Viewed (0)
  6. pkg/spiffe/spiffe_test.go

    				"bar.domain.com": {validRootCert},
    			},
    			errContains: "x509: certificate signed by unknown authority",
    		},
    	}
    
    	for _, testCase := range testCases {
    		t.Run(testCase.name, func(t *testing.T) {
    			certMap := make(map[string][]*x509.Certificate)
    			for trustDomain, certStrs := range testCase.certMap {
    				certMap[trustDomain] = []*x509.Certificate{}
    				for _, certStr := range certStrs {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 23 21:07:03 UTC 2024
    - 18.1K bytes
    - Viewed (0)
  7. pkg/volume/util/volumepathhandler/volume_path_handler_linux_test.go

    }
    
    func TestCleanBackingFilePath(t *testing.T) {
    	const defaultPath = "/var/lib/kubelet/plugins/kubernetes.io/csi/volumeDevices/pvc-1d205234-06cd-4fe4-a7ea-0e8f3e2faf5f/dev/e196ebd3-2ab1-4185-bed4-b997ba38d1dc"
    	testCases := []struct {
    		name          string
    		input         string
    		expectedOuput string
    	}{
    		{
    			name:          "regular path",
    			input:         defaultPath,
    			expectedOuput: defaultPath,
    		},
    		{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Jan 27 13:53:00 UTC 2023
    - 1.9K bytes
    - Viewed (0)
  8. pkg/kubelet/eviction/memory_threshold_notifier_test.go

    		threshold:  threshold,
    		cgroupPath: testCgroupPath,
    		events:     make(chan struct{}),
    		factory:    factory,
    		handler:    handler,
    	}
    }
    
    func TestUpdateThreshold(t *testing.T) {
    	testCases := []struct {
    		description        string
    		available          resource.Quantity
    		workingSet         resource.Quantity
    		usage              resource.Quantity
    		evictionThreshold  evictionapi.Threshold
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 08:12:16 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  9. staging/src/k8s.io/apiserver/pkg/server/storage/storage_factory_test.go

    	}
    	if !called {
    		t.Errorf("expected encoder chain to be called")
    	}
    }
    
    func TestUpdateEtcdOverrides(t *testing.T) {
    	exampleinstall.Install(scheme)
    
    	testCases := []struct {
    		resource schema.GroupResource
    		servers  []string
    	}{
    		{
    			resource: schema.GroupResource{Group: example.GroupName, Resource: "resource"},
    			servers:  []string{"http://127.0.0.1:10000"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Oct 20 13:35:58 UTC 2023
    - 7.6K bytes
    - Viewed (0)
  10. hack/make-rules/test.sh

    fi
    
    # Filter out arguments that start with "-" and move them to goflags.
    testcases=()
    for arg; do
      if [[ "${arg}" == -* ]]; then
        goflags+=("${arg}")
      else
        testcases+=("${arg}")
      fi
    done
    if [[ ${#testcases[@]} -eq 0 ]]; then
      kube::util::read-array testcases < <(kube::test::find_dirs)
    fi
    set -- "${testcases[@]+${testcases[@]}}"
    
    if [[ -n "${KUBE_RACE}" ]] ; then
      goflags+=("${KUBE_RACE}")
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Mar 02 22:40:10 UTC 2024
    - 10.8K bytes
    - Viewed (0)
Back to top