func TestCreate(t *testing.T) { storage, server := newStorage(t) defer server.Terminate(t) test := registrytest.New(t, storage.Store) valid := validDeploymentConfig() valid.ObjectMeta = kapi.ObjectMeta{} test.TestCreate( valid, // invalid &api.DeploymentConfig{}, ) }
func TestCreate(t *testing.T) { storage, server := newStorage(t) defer server.Terminate(t) test := registrytest.New(t, storage.Store) valid := validDeploymentConfig() valid.Name = "" valid.GenerateName = "test-" test.TestCreate( valid, // invalid &api.DeploymentConfig{}, ) }