Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 320 for createActions (0.31 sec)

  1. plugin/pkg/admission/serviceaccount/admission_test.go

    	pod := &api.Pod{}
    	attrs := admission.NewAttributesRecord(pod, nil, api.Kind("Pod").WithVersion("version"), "myns", "myname", api.Resource("CustomResource").WithVersion("version"), "", admission.Create, &metav1.CreateOptions{}, false, nil)
    	handler := admissiontesting.WithReinvocationTesting(t, NewServiceAccount())
    	err := handler.Admit(context.TODO(), attrs, nil)
    	if err != nil {
    		t.Errorf("Expected non-pod resource allowed, got err: %v", err)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Apr 12 17:49:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  2. pkg/registry/core/pod/storage/storage_test.go

    	}
    	_, err = bindingStorage.Create(ctx, binding.Name, &binding, rest.ValidateAllObjectFunc, &metav1.CreateOptions{})
    	if err != nil {
    		t.Fatalf("unexpected error: %v", err)
    	}
    
    	_, err = bindingStorage.Create(ctx, binding.Name, &binding, rest.ValidateAllObjectFunc, &metav1.CreateOptions{})
    	if err == nil || !errors.IsConflict(err) {
    		t.Fatalf("expected resource conflict error, not: %v", err)
    	}
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Feb 29 07:18:44 UTC 2024
    - 38.8K bytes
    - Viewed (0)
  3. src/main/java/jcifs/internal/smb1/com/SmbComNTCreateAndXResponse.java

        }
    
    
        /**
         * @return the fid
         */
        public final int getFid () {
            return this.fid;
        }
    
    
        /**
         * @return the createAction
         */
        public final int getCreateAction () {
            return this.createAction;
        }
    
    
        /**
         * @return the extFileAttributes
         */
        public final int getExtFileAttributes () {
            return this.extFileAttributes;
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sun Jul 01 13:12:10 UTC 2018
    - 6.4K bytes
    - Viewed (0)
  4. src/main/java/jcifs/internal/smb2/create/Smb2CreateRequest.java

            this.createDisposition = createDisposition;
        }
    
    
        /**
         * @param createOptions
         *            the createOptions to set
         */
        public void setCreateOptions ( int createOptions ) {
            this.createOptions = createOptions;
        }
    
    
        /**
         * {@inheritDoc}
         *
         * @see jcifs.internal.CommonServerMessageBlockRequest#size()
    Registered: Wed Jun 12 15:45:55 UTC 2024
    - Last Modified: Sat Jun 01 09:52:11 UTC 2019
    - 14.3K bytes
    - Viewed (0)
  5. staging/src/k8s.io/apiserver/pkg/admission/plugin/webhook/generic/webhook_test.go

    			attrs:       admission.NewAttributesRecord(nil, nil, gvk("apps", "v1", "Deployment"), "ns", "name", gvr("apps", "v1", "deployments"), "", admission.Create, &metav1.CreateOptions{}, false, nil),
    			expectCall:  false,
    			matchResult: true,
    		},
    		{
    			name: "invalid kind lookup",
    			webhook: &v1.ValidatingWebhook{
    				NamespaceSelector: &metav1.LabelSelector{},
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 28 19:30:04 UTC 2023
    - 32K bytes
    - Viewed (0)
  6. pkg/controller/volume/attachdetach/testing/testvolumespec.go

    		return true, obj, nil
    	})
    	fakeClient.AddReactor("create", "pods", func(action core.Action) (handled bool, ret runtime.Object, err error) {
    		createAction := action.(core.CreateAction)
    		pod := createAction.GetObject().(*v1.Pod)
    		extraPods.Items = append(extraPods.Items, *pod)
    		return true, createAction.GetObject(), nil
    	})
    	fakeClient.AddReactor("list", "csinodes", func(action core.Action) (handled bool, ret runtime.Object, err error) {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Fri Nov 17 08:48:30 UTC 2023
    - 16.5K bytes
    - Viewed (0)
  7. staging/src/k8s.io/apiserver/pkg/registry/generic/registry/store_test.go

    	// create the object with denying admission
    	_, err := registry.Create(testContext, podA, denyCreateValidation, &metav1.CreateOptions{})
    	if err == nil {
    		t.Errorf("Expected admission error: %v", err)
    	}
    
    	// create the object
    	objA, err := registry.Create(testContext, podA, rest.ValidateAllObjectFunc, &metav1.CreateOptions{})
    	if err != nil {
    		t.Errorf("Unexpected error: %v", err)
    	}
    
    	// get the object
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 101.8K bytes
    - Viewed (0)
  8. pkg/client/tests/fake_client_test.go

    	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)
    	}
    
    	allNS, err := tc.CoreV1().Namespaces().List(context.TODO(), metav1.ListOptions{})
    	if err != nil {
    		t.Fatalf("Namespaces.List: %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)
  9. staging/src/k8s.io/apiserver/pkg/admission/plugin/namespace/lifecycle/admission_test.go

    	if err != nil {
    		t.Error(err)
    	}
    }
    
    // TestAdmissionNamespaceDoesNotExist verifies pod is not admitted if namespace does not exist.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Mar 06 00:00:21 UTC 2024
    - 14.2K bytes
    - Viewed (0)
  10. platforms/core-runtime/launcher/src/test/groovy/org/gradle/launcher/cli/DefaultCommandLineActionFactoryTest.groovy

            and:
            1 * actionFactory1.createAction(!null, !null) >> {
                def action1 = { println "action1" }
                action1Intermediary ? action1 as ContinuingAction<ExecutionListener> : action1 as Action<ExecutionListener>
    
            }
            action2Called * actionFactory2.createAction(!null, !null) >> {
                { println "action2" } as Action<ExecutionListener>
            }
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Sep 22 09:29:13 UTC 2023
    - 11.6K bytes
    - Viewed (0)
Back to top