Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for TestClassStrategyCreate (0.43 sec)

  1. pkg/registry/resource/resourceclaimparameters/strategy_test.go

    		t.Errorf("ResourceClaimParameters must be namespace scoped")
    	}
    	if Strategy.AllowCreateOnUpdate() {
    		t.Errorf("ResourceClaimParameters should not allow create on update")
    	}
    }
    
    func TestClassStrategyCreate(t *testing.T) {
    	ctx := genericapirequest.NewDefaultContext()
    	resourceClaimParameters := resourceClaimParameters.DeepCopy()
    
    	Strategy.PrepareForCreate(ctx, resourceClaimParameters)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 15:15:31 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  2. pkg/registry/resource/resourceslice/strategy_test.go

    	if Strategy.NamespaceScoped() {
    		t.Errorf("ResourceSlice must not be namespace scoped")
    	}
    	if Strategy.AllowCreateOnUpdate() {
    		t.Errorf("ResourceSlice should not allow create on update")
    	}
    }
    
    func TestClassStrategyCreate(t *testing.T) {
    	ctx := genericapirequest.NewDefaultContext()
    	slice := slice.DeepCopy()
    
    	Strategy.PrepareForCreate(ctx, slice)
    	errs := Strategy.Validate(ctx, slice)
    	if len(errs) != 0 {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 14 17:07:36 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. pkg/registry/resource/resourceclassparameters/strategy_test.go

    		t.Errorf("ResourceClassParameters must be namespace scoped")
    	}
    	if Strategy.AllowCreateOnUpdate() {
    		t.Errorf("ResourceClassParameters should not allow create on update")
    	}
    }
    
    func TestClassStrategyCreate(t *testing.T) {
    	ctx := genericapirequest.NewDefaultContext()
    	resourceClassParameters := resourceClassParameters.DeepCopy()
    
    	Strategy.PrepareForCreate(ctx, resourceClassParameters)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Mar 07 15:15:31 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  4. pkg/registry/resource/resourceclass/strategy_test.go

    	if Strategy.NamespaceScoped() {
    		t.Errorf("ResourceClass must not be namespace scoped")
    	}
    	if Strategy.AllowCreateOnUpdate() {
    		t.Errorf("ResourceClass should not allow create on update")
    	}
    }
    
    func TestClassStrategyCreate(t *testing.T) {
    	ctx := genericapirequest.NewDefaultContext()
    	resourceClass := resourceClass.DeepCopy()
    
    	Strategy.PrepareForCreate(ctx, resourceClass)
    	errs := Strategy.Validate(ctx, resourceClass)
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Thu Nov 10 19:08:24 UTC 2022
    - 2.3K bytes
    - Viewed (0)
Back to top