Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 36 for test_namespace (0.24 sec)

  1. 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)
  2. istioctl/pkg/multicluster/remote_secret_test.go

    			UID:  kubeSystemNamespaceUID,
    		},
    	}
    )
    
    const (
    	testNamespace          = "istio-system-test"
    	testServiceAccountName = "test-service-account"
    )
    
    func makeServiceAccount(secrets ...string) *v1.ServiceAccount {
    	sa := &v1.ServiceAccount{
    		ObjectMeta: metav1.ObjectMeta{
    			Name:      testServiceAccountName,
    			Namespace: testNamespace,
    		},
    	}
    
    	for _, secret := range secrets {
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 20.6K bytes
    - Viewed (0)
  3. pkg/volume/secret/secret_test.go

    func TestPlugin(t *testing.T) {
    	var (
    		testPodUID     = types.UID("test_pod_uid")
    		testVolumeName = "test_volume_name"
    		testNamespace  = "test_secret_namespace"
    		testName       = "test_secret_name"
    
    		volumeSpec    = volumeSpec(testVolumeName, testName, 0644)
    		secret        = secret(testNamespace, testName)
    		client        = fake.NewSimpleClientset(&secret)
    		pluginMgr     = volume.VolumePluginMgr{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Aug 01 15:56:32 UTC 2022
    - 19.5K bytes
    - Viewed (0)
  4. pkg/proxy/config/config_test.go

    	service1 := &v1.Service{
    		ObjectMeta: metav1.ObjectMeta{Namespace: "testnamespace", Name: "foo"},
    		Spec:       v1.ServiceSpec{Ports: []v1.ServicePort{{Protocol: "TCP", Port: 10}}},
    	}
    	fakeWatch.Add(service1)
    	handler.ValidateServices(t, []*v1.Service{service1})
    
    	service2 := &v1.Service{
    		ObjectMeta: metav1.ObjectMeta{Namespace: "testnamespace", Name: "bar"},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Apr 22 05:08:41 UTC 2024
    - 14.3K bytes
    - Viewed (0)
  5. 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)
  6. pkg/volume/configmap/configmap_test.go

    func TestPlugin(t *testing.T) {
    	var (
    		testPodUID     = types.UID("test_pod_uid")
    		testVolumeName = "test_volume_name"
    		testNamespace  = "test_configmap_namespace"
    		testName       = "test_configmap_name"
    
    		volumeSpec    = volumeSpec(testVolumeName, testName, 0644)
    		configMap     = configMap(testNamespace, testName)
    		client        = fake.NewSimpleClientset(&configMap)
    		pluginMgr     = volume.VolumePluginMgr{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Sep 16 11:12:06 UTC 2022
    - 19.9K bytes
    - Viewed (0)
  7. 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)
  8. plugin/pkg/admission/podtolerationrestriction/admission_test.go

    func TestPodAdmission(t *testing.T) {
    
    	CPU1000m := resource.MustParse("1000m")
    	CPU500m := resource.MustParse("500m")
    
    	burstablePod := &api.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: "testPod", Namespace: "testNamespace"},
    		Spec: api.PodSpec{
    			Containers: []api.Container{
    				{
    					Name: "test",
    					Resources: api.ResourceRequirements{
    						Limits:   api.ResourceList{api.ResourceCPU: CPU1000m},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 16K bytes
    - Viewed (0)
  9. 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)
  10. pkg/controller/resourceclaim/controller_test.go

    )
    
    var (
    	testPodName          = "test-pod"
    	testNamespace        = "my-namespace"
    	testPodUID           = types.UID("uidpod1")
    	otherNamespace       = "not-my-namespace"
    	podResourceClaimName = "acme-resource"
    	templateName         = "my-template"
    	className            = "my-resource-class"
    	nodeName             = "worker"
    
    	testPod             = makePod(testPodName, testNamespace, testPodUID)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon May 06 08:56:16 UTC 2024
    - 28.2K bytes
    - Viewed (0)
Back to top