(t *testing.T)
| 123 | } |
| 124 | |
| 125 | func 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 | |
| 138 | func TestContainerInvalidContainer(t *testing.T) { |
| 139 | kubeContainer := kube.Container{ |
nothing calls this directly
no test coverage detected