Ejemplo n.º 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{},
	)
}
Ejemplo n.º 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{},
	)
}