Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 36 for test_namespace (0.27 sec)

  1. 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)
  2. pkg/client/tests/fake_client_test.go

    	}
    }
    
    func TestFakeClientsetInheritsNamespace(t *testing.T) {
    	tc := clientsetfake.NewSimpleClientset(
    		testNamespace("nsA"),
    		testPod("nsA", "pod-1"),
    	)
    
    	_, err := tc.CoreV1().Namespaces().Create(context.TODO(), testNamespace("nsB"), metav1.CreateOptions{})
    	if err != nil {
    		t.Fatalf("Namespaces.Create: %s", err)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Feb 08 17:30:21 UTC 2020
    - 5.6K bytes
    - Viewed (0)
  3. cmd/kubeadm/app/util/marshal_test.go

    	if !ok {
    		t.Fatal("did not get a Pod")
    	}
    
    	if pod2.Name != "someName" {
    		t.Errorf("expected someName, got %q", pod2.Name)
    	}
    
    	if pod2.Namespace != "testNamespace" {
    		t.Errorf("expected testNamespace, got %q", pod2.Namespace)
    	}
    
    	if !reflect.DeepEqual(pod2.Labels, map[string]string{"test": "yes"}) {
    		t.Errorf("expected [test:yes], got %v", pod2.Labels)
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 05:14:21 UTC 2024
    - 11.6K bytes
    - Viewed (0)
  4. pkg/controller/podautoscaler/replica_calculator_test.go

    	case objectPerPodMetric:
    		if tc.metric.singleObject == nil {
    			t.Fatal("Metric specified as objectMetric but metric.singleObject is nil.")
    		}
    		outReplicas, outUsage, outTimestamp, err = replicaCalc.GetObjectPerPodMetricReplicas(tc.currentReplicas, tc.metric.perPodTargetUsage, tc.metric.name, testNamespace, tc.metric.singleObject, nil)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Aug 19 03:31:34 UTC 2023
    - 68.4K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/registry/generic/testing/tester.go

    func New(t *testing.T, storage *genericregistry.Store) *Tester {
    	return &Tester{
    		tester:  resttest.New(t, storage),
    		storage: storage,
    	}
    }
    
    func (t *Tester) TestNamespace() string {
    	return t.tester.TestNamespace()
    }
    
    func (t *Tester) ClusterScope() *Tester {
    	t.tester = t.tester.ClusterScope()
    	return t
    }
    
    func (t *Tester) Namer(namer func(int) string) *Tester {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri May 17 16:50:16 UTC 2019
    - 4.8K bytes
    - Viewed (0)
  6. plugin/pkg/admission/alwayspullimages/admission_test.go

    		t.Fatal(err)
    	}
    }
    
    // TestOtherResources ensures that this admission controller is a no-op for other resources,
    // subresources, and non-pods.
    func TestOtherResources(t *testing.T) {
    	namespace := "testnamespace"
    	name := "testname"
    	pod := &api.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: name, Namespace: namespace},
    		Spec: api.PodSpec{
    			Containers: []api.Container{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Mon Nov 30 22:59:57 UTC 2020
    - 8.5K bytes
    - Viewed (0)
  7. 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)
  8. plugin/pkg/admission/antiaffinity/admission_test.go

    		}
    	}
    }
    
    // TestOtherResources ensures that this admission controller is a no-op for other resources,
    // subresources, and non-pods.
    func TestOtherResources(t *testing.T) {
    	namespace := "testnamespace"
    	name := "testname"
    	pod := &api.Pod{
    		ObjectMeta: metav1.ObjectMeta{Name: name, Namespace: namespace},
    	}
    	tests := []struct {
    		name        string
    		kind        string
    		resource    string
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Aug 20 15:11:00 UTC 2019
    - 7.9K bytes
    - Viewed (0)
  9. pkg/controller/volume/persistentvolume/framework_test.go

    // won't have them in its cache).
    const annSkipLocalStore = "pv-testing-skip-local-store"
    
    type testCall func(ctrl *PersistentVolumeController, reactor *pvtesting.VolumeReactor, test controllerTest) error
    
    const testNamespace = "default"
    const mockPluginName = "kubernetes.io/mock-volume"
    
    var novolumes []*v1.PersistentVolume
    var noclaims []*v1.PersistentVolumeClaim
    var noevents = []string{}
    var noerrors = []pvtesting.ReactorError{}
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Nov 01 09:54:00 UTC 2023
    - 38.3K 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