Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 17 for test_namespace (0.32 sec)

  1. pkg/volume/util/nested_volumes_test.go

    }
    
    func TestGetNestedMountpoints(t *testing.T) {
    	var (
    		testNamespace = "test_namespace"
    		testPodUID    = types.UID("test_pod_uid")
    	)
    
    	tc := []testCases{
    		{
    			name:     "Simple Pod",
    			err:      false,
    			expected: sets.New[string](),
    			volname:  "vol1",
    			pod: v1.Pod{
    				ObjectMeta: metav1.ObjectMeta{
    					Namespace: testNamespace,
    					UID:       testPodUID,
    				},
    				Spec: v1.PodSpec{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat May 11 09:02:45 UTC 2024
    - 5.9K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/admission/plugin/resourcequota/resource_access_test.go

    			quotas, err := accessor.GetQuotas(testNamespace1)
    			if err != nil {
    				t.Errorf("unexpected error: %v", err)
    			}
    			if len(quotas) != len(resourceQuotas) {
    				t.Errorf("Expected %d resource quotas, got %d", len(resourceQuotas), len(quotas))
    			}
    			for _, q := range quotas {
    				if q.Namespace != testNamespace1 {
    					t.Errorf("Expected %s namespace, got %s", testNamespace1, q.Namespace)
    				}
    			}
    		}()
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 10 13:54:56 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  3. pilot/pkg/config/memory/controller_test.go

    )
    
    const (
    	// TestNamespace specifies the namespace for testing
    	TestNamespace = "istio-memory-test"
    )
    
    func TestControllerEvents(t *testing.T) {
    	store := memory.Make(collections.Mocks)
    	ctl := memory.NewController(store)
    	// Note that the operations must go through the controller since the store does not trigger back events
    	mock.CheckCacheEvents(ctl, ctl, TestNamespace, 5, t)
    }
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Aug 18 15:37:45 UTC 2021
    - 1.8K bytes
    - Viewed (0)
  4. pkg/proxy/config/api_test.go

    	_, ctx := klogtesting.NewTestContext(t)
    	service1v1 := &v1.Service{
    		ObjectMeta: metav1.ObjectMeta{Namespace: "testnamespace", Name: "s1"},
    		Spec:       v1.ServiceSpec{Ports: []v1.ServicePort{{Protocol: "TCP", Port: 10}}}}
    	service1v2 := &v1.Service{
    		ObjectMeta: metav1.ObjectMeta{Namespace: "testnamespace", Name: "s1"},
    		Spec:       v1.ServiceSpec{Ports: []v1.ServicePort{{Protocol: "TCP", Port: 20}}}}
    	service2 := &v1.Service{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 8.2K bytes
    - Viewed (0)
  5. pilot/pkg/bootstrap/istio_ca_test.go

    	"istio.io/istio/pkg/test/env"
    	"istio.io/istio/security/pkg/pki/ca"
    )
    
    const testNamespace = "istio-system"
    
    func TestRemoteCerts(t *testing.T) {
    	g := NewWithT(t)
    
    	dir := t.TempDir()
    
    	s := Server{
    		kubeClient: kube.NewFakeClient(),
    	}
    	s.kubeClient.RunAndWait(test.NewStop(t))
    	caOpts := &caOptions{
    		Namespace: testNamespace,
    	}
    
    	// Should do nothing because cacerts doesn't exist.
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  6. pkg/config/resource/name_test.go

    		name        string
    		want        string
    		err         string
    		valid       bool
    	}{
    		{
    			description: "namespace with emapty name",
    			name:        "testNamespace/",
    			want:        "",
    			err:         "failed parsing name 'testNamespace/': invalid name 'testNamespace/': name must not be empty",
    			valid:       false,
    		},
    		{
    			description: "name with empty namespace",
    			name:        "/testName",
    			want:        "testName",
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Fri May 29 20:42:01 UTC 2020
    - 3.1K bytes
    - Viewed (0)
  7. tests/integration/security/ca_custom_root/secure_naming_test.go

    			to := match.Namespace(testNamespace).GetMatches(apps.EchoNamespace.B)
    			for _, cluster := range t.Clusters() {
    				t.NewSubTest(fmt.Sprintf("From %s", cluster.StableName())).Run(func(t framework.TestContext) {
    					a := match.And(match.Cluster(cluster), match.Namespace(testNamespace)).GetMatches(apps.EchoNamespace.A)[0]
    					b := match.And(match.Cluster(cluster), match.Namespace(testNamespace)).GetMatches(apps.EchoNamespace.B)[0]
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  8. plugin/pkg/admission/podnodeselector/admission_test.go

    // TestPodAdmission verifies various scenarios involving pod/namespace/global node label selectors
    func TestPodAdmission(t *testing.T) {
    	namespace := &corev1.Namespace{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      "testNamespace",
    			Namespace: "",
    		},
    	}
    
    	mockClient := fake.NewSimpleClientset(namespace)
    	handler, informerFactory, err := newHandlerForTest(mockClient)
    	if err != nil {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 8K bytes
    - Viewed (0)
  9. pkg/registry/core/event/storage/storage_test.go

    }
    
    func TestCreate(t *testing.T) {
    	storage, server := newStorage(t)
    	defer server.Terminate(t)
    	defer storage.Store.DestroyFunc()
    	test := genericregistrytest.New(t, storage.Store)
    	event := validNewEvent(test.TestNamespace())
    	event.ObjectMeta = metav1.ObjectMeta{}
    	test.TestCreate(
    		// valid
    		event,
    		// invalid
    		&api.Event{},
    	)
    }
    
    func TestUpdate(t *testing.T) {
    	storage, server := newStorage(t)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jul 01 14:50:28 UTC 2020
    - 3.4K bytes
    - Viewed (0)
  10. pkg/controller/volume/ephemeral/controller_test.go

    )
    
    var (
    	testPodName         = "test-pod"
    	testNamespace       = "my-namespace"
    	testPodUID          = types.UID("uidpod1")
    	otherNamespace      = "not-my-namespace"
    	ephemeralVolumeName = "ephemeral-volume"
    
    	testPod               = makePod(testPodName, testNamespace, testPodUID)
    	testPodWithEphemeral  = makePod(testPodName, testNamespace, testPodUID, *makeEphemeralVolume(ephemeralVolumeName))
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Feb 26 06:51:56 UTC 2024
    - 8.5K bytes
    - Viewed (0)
Back to top