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

Function TestBaseBadObject

pkg/entity/entity_test.go:174–186  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

172}
173
174func TestBaseBadObject(t *testing.T) {
175 // TODO: RESOLVE
176 t.Skip("Currently deployment does not check for validity")
177
178 entityType := EntityImage
179 source := "testSource"
180 objects := []deploy.KubeObject{
181 &kube.Pod{}, // invalid object
182 }
183
184 _, err := newBase(entityType, kube.ObjectMeta{}, source, objects)
185 assert.Error(t, err, "objects are invalid")
186}
187
188func randomString(strlen int) string {
189 const chars = "abcdefghijklmnopqrstuvwxyz0123456789"

Callers

nothing calls this directly

Calls 1

newBaseFunction · 0.85

Tested by

no test coverage detected