(t *testing.T)
| 172 | } |
| 173 | |
| 174 | func 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 | |
| 188 | func randomString(strlen int) string { |
| 189 | const chars = "abcdefghijklmnopqrstuvwxyz0123456789" |