MCPcopy
hub / github.com/redspread/spread / TestContainerBadObject

Function TestContainerBadObject

pkg/entity/container_test.go:125–136  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

123}
124
125func TestContainerBadObject(t *testing.T) {
126 // TODO: RESOLVE
127 t.Skip("Currently deployment does not check for validity")
128
129 kubeContainer := testNewKubeContainer("test-container", "test-image")
130 objects := []deploy.KubeObject{
131 createSecret(""), // invalid - must have name
132 }
133
134 _, err := NewContainer(kubeContainer, kube.ObjectMeta{}, "invalidobjects", objects...)
135 assert.Error(t, err, "container should not be created with invalid objects")
136}
137
138func TestContainerInvalidContainer(t *testing.T) {
139 kubeContainer := kube.Container{

Callers

nothing calls this directly

Calls 3

testNewKubeContainerFunction · 0.85
NewContainerFunction · 0.85
createSecretFunction · 0.70

Tested by

no test coverage detected