(t *testing.T)
| 42 | } |
| 43 | |
| 44 | func TestPodHook(t *testing.T) { |
| 45 | spec, err := os.ReadFile("testdata/pod_hook.yaml") |
| 46 | require.NoError(t, err) |
| 47 | |
| 48 | require.Equal(t, |
| 49 | []string{"default, nginx, Pod (v1)"}, |
| 50 | foundObjects(Parse(spec, "default", false)), |
| 51 | ) |
| 52 | |
| 53 | require.Equal(t, |
| 54 | []string{"default, nginx, Pod (v1)"}, |
| 55 | foundObjects(Parse(spec, "default", false, "test-success")), |
| 56 | ) |
| 57 | |
| 58 | require.Equal(t, |
| 59 | []string{}, |
| 60 | foundObjects(Parse(spec, "default", false, "test")), |
| 61 | ) |
| 62 | } |
| 63 | |
| 64 | func TestDeployV1(t *testing.T) { |
| 65 | spec, err := os.ReadFile("testdata/deploy_v1.yaml") |
nothing calls this directly
no test coverage detected