예제 #1
0
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{},
	)
}
예제 #2
0
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{},
	)
}