- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 36 for test_namespace (0.54 sec)
-
staging/src/k8s.io/apimachinery/pkg/test/apis_meta_v1_unstructed_unstructure_test.go
Object: map[string]interface{}{ "kind": "test_kind", "apiVersion": "test_version", "metadata": map[string]interface{}{ "name": "test_name", "namespace": "test_namespace", "generateName": "test_generateName", "uid": "test_uid", "resourceVersion": "test_resourceVersion", "generation": ten,
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 05 20:12:50 UTC 2022 - 17.3K bytes - Viewed (0) -
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) -
pkg/volume/downwardapi/downwardapi_test.go
steps: []testStep{ verifyLinesInFile{stepName{"name_file_name"}, testName}, }, }, { name: "test_namespace", files: map[string]string{"namespace_file_name": "metadata.namespace"}, steps: []testStep{ verifyLinesInFile{stepName{"namespace_file_name"}, testNamespace}, }, }, { name: "test_write_twice_no_update", files: map[string]string{"labels": "metadata.labels"},
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Jun 02 04:48:49 UTC 2023 - 11.2K bytes - Viewed (0) -
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) -
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) -
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) -
pkg/controller/namespace/deletion/namespaced_resources_deleter_test.go
) func TestFinalized(t *testing.T) { testNamespace := &v1.Namespace{ Spec: v1.NamespaceSpec{ Finalizers: []v1.FinalizerName{"a", "b"}, }, } if finalized(testNamespace) { t.Errorf("Unexpected result, namespace is not finalized") } testNamespace.Spec.Finalizers = []v1.FinalizerName{} if !finalized(testNamespace) { t.Errorf("Expected object to be finalized") } }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Tue Jun 20 07:34:23 UTC 2023 - 15.8K bytes - Viewed (0) -
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) -
pkg/volume/projected/projected_test.go
payload: map[string]util.FileProjection{}, success: true, }, } for _, tc := range cases { t.Run(tc.name, func(t *testing.T) { testNamespace := "test_projected_namespace" tc.secret.ObjectMeta = metav1.ObjectMeta{ Namespace: testNamespace, Name: tc.name, } source := makeProjection(tc.name, utilptr.Int32Ptr(tc.mode), "secret") source.Sources[0].Secret.Items = tc.mappings
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Fri Nov 03 18:40:48 UTC 2023 - 40.5K bytes - Viewed (0) -
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)