(t *testing.T)
| 62 | } |
| 63 | |
| 64 | func TestPodWithContainersImage(t *testing.T) { |
| 65 | pod, err := NewPod(testCreateKubePodSourcegraph("test"), kube.ObjectMeta{}, "has-containers") |
| 66 | assert.NoError(t, err, "valid pod") |
| 67 | |
| 68 | images := pod.Images() |
| 69 | assert.Len(t, images, 2, "there should only be 2 images") |
| 70 | |
| 71 | imageNames := []string{} |
| 72 | for _, image := range images { |
| 73 | imageNames = append(imageNames, image.KubeImage()) |
| 74 | } |
| 75 | |
| 76 | assert.Contains(t, imageNames, testKubeContainerPostgres.Image) |
| 77 | assert.Contains(t, imageNames, testKubeContainerSourcegraph.Image) |
| 78 | } |
| 79 | |
| 80 | func TestPodWithContainersKube(t *testing.T) { |
| 81 | pod, err := NewPod(testCreateKubePodSourcegraph("test"), kube.ObjectMeta{}, "with-containers") |
nothing calls this directly
no test coverage detected