assertNotContains checks that the output does NOT contain the substring.
(t *testing.T, output string, substr string)
| 206 | |
| 207 | // assertNotContains checks that the output does NOT contain the substring. |
| 208 | func assertNotContains(t *testing.T, output string, substr string) { |
| 209 | t.Helper() |
| 210 | if strings.Contains(output, substr) { |
| 211 | t.Errorf("expected output NOT to contain %q, but it does.\nOutput:\n%s", substr, output) |
| 212 | } |
| 213 | } |
| 214 | |
| 215 | func TestLegacyCozystack_ControlPlane(t *testing.T) { |
| 216 | output := renderChartTemplate(t, "../../charts/cozystack", "templates/controlplane.yaml") |
no outgoing calls
no test coverage detected