Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 10 for test_namespace (0.35 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. 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)
  4. 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)
  5. 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)
  6. 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)
  7. 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)
  8. pilot/pkg/config/memory/monitor_test.go

    	m.ScheduleProcessEvent(memory.ConfigEvent{})
    }
    
    func TestEventConsistency(t *testing.T) {
    	store := memory.Make(collections.Mocks)
    	controller := memory.NewController(store)
    
    	testConfig := mock.Make(TestNamespace, 0)
    	var testEvent model.Event
    
    	done := make(chan bool)
    
    	lock := sync.Mutex{}
    
    	controller.RegisterEventHandler(collections.Mock.GroupVersionKind(), func(_, config config.Config, event model.Event) {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Mar 01 01:34:15 UTC 2023
    - 2.4K bytes
    - Viewed (0)
  9. pkg/config/analysis/local/analyze_test.go

    }
    
    func TestAddRunningKubeSourceWithIstioMeshConfigMap(t *testing.T) {
    	g := NewWithT(t)
    
    	istioNamespace := resource.Namespace("istio-system")
    
    	testRootNamespace := "testNamespace"
    
    	cfg := &v1.ConfigMap{
    		ObjectMeta: metav1.ObjectMeta{
    			Name: meshConfigMapName,
    		},
    		Data: map[string]string{
    			meshConfigMapKey:   fmt.Sprintf("rootNamespace: %s", testRootNamespace),
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Jan 09 07:43:43 UTC 2024
    - 9.6K bytes
    - Viewed (0)
  10. operator/pkg/name/name_test.go

    		t.Run(tt.name, func(t *testing.T) {
    			if got := UserFacingComponentName(tt.n); got != tt.want {
    				t.Errorf("UserFacingComponentName() = %v, want %v", got, tt.want)
    			}
    		})
    	}
    }
    
    func TestNamespace(t *testing.T) {
    	type args struct {
    		componentName    ComponentName
    		controlPlaneSpec *v1alpha1.IstioOperatorSpec
    	}
    	tests := []struct {
    		name    string
    		args    args
    		want    string
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Apr 05 14:08:11 UTC 2023
    - 7.7K bytes
    - Viewed (0)
Back to top