(t *testing.T)
| 82 | } |
| 83 | |
| 84 | func TestList(t *testing.T) { |
| 85 | spec, err := os.ReadFile("testdata/list.yaml") |
| 86 | require.NoError(t, err) |
| 87 | |
| 88 | require.Equal(t, |
| 89 | []string{ |
| 90 | "default, prometheus-operator-example, PrometheusRule (monitoring.coreos.com)", |
| 91 | "default, prometheus-operator-example2, PrometheusRule (monitoring.coreos.com)", |
| 92 | }, |
| 93 | foundObjects(Parse(spec, "default", false)), |
| 94 | ) |
| 95 | } |
| 96 | |
| 97 | func TestConfigMapList(t *testing.T) { |
| 98 | spec, err := os.ReadFile("testdata/configmaplist_v1.yaml") |
nothing calls this directly
no test coverage detected