Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 3 of 3 for RunTestCreate (0.15 sec)

  1. staging/src/k8s.io/apiserver/pkg/storage/cacher/cacher_test.go

    	// No-op function since cacher simply passes object creation to the underlying storage.
    }
    
    func TestCreate(t *testing.T) {
    	ctx, cacher, terminate := testSetup(t)
    	t.Cleanup(terminate)
    	storagetesting.RunTestCreate(ctx, t, cacher, checkStorageInvariants)
    }
    
    func TestCreateWithTTL(t *testing.T) {
    	ctx, cacher, terminate := testSetup(t)
    	t.Cleanup(terminate)
    	storagetesting.RunTestCreateWithTTL(ctx, t, cacher)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Jun 12 10:12:02 UTC 2024
    - 17K bytes
    - Viewed (0)
  2. staging/src/k8s.io/apiserver/pkg/storage/etcd3/store_test.go

    		}
    		if obj.SelfLink != "" {
    			t.Errorf("stored output should have empty selfLink")
    		}
    	}
    }
    
    func TestCreate(t *testing.T) {
    	ctx, store, etcdClient := testSetup(t)
    	storagetesting.RunTestCreate(ctx, t, store, checkStorageInvariants(etcdClient, store.codec))
    }
    
    func TestCreateWithTTL(t *testing.T) {
    	ctx, store, _ := testSetup(t)
    	storagetesting.RunTestCreateWithTTL(ctx, t, store)
    }
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 26.5K bytes
    - Viewed (0)
  3. staging/src/k8s.io/apiserver/pkg/storage/testing/store_tests.go

    	"k8s.io/apiserver/pkg/storage"
    	"k8s.io/apiserver/pkg/storage/value"
    	utilpointer "k8s.io/utils/pointer"
    )
    
    type KeyValidation func(ctx context.Context, t *testing.T, key string)
    
    func RunTestCreate(ctx context.Context, t *testing.T, store storage.Interface, validation KeyValidation) {
    	tests := []struct {
    		name          string
    		inputObj      *example.Pod
    		expectedError error
    	}{{
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Jun 11 12:45:33 UTC 2024
    - 91.4K bytes
    - Viewed (0)
Back to top