Skip to content
Snippets Groups Projects
Commit a2f65e81b262 authored by Florent Aide's avatar Florent Aide
Browse files

runner: update tests to avoid panics

parent 9691257a30a2
No related branches found
No related tags found
No related merge requests found
...@@ -27,13 +27,20 @@ ...@@ -27,13 +27,20 @@
c, err := NewCmdConfig(tl.Logger(), "fixtures/", testNS) c, err := NewCmdConfig(tl.Logger(), "fixtures/", testNS)
require.NoError(t, err) require.NoError(t, err)
assert.Equal(t, []string{ pgHelmChart, ok := c.Spec.Charts.Helm["postgres"]
`config: require.True(t, ok, "we should have a postgres helm chart in our cmdConfig")
datasource:
password: <path:cnpp.k8s.cloudcrane.io/data/ns1/postgres#password> require.NotEqual(t, 0, len(pgHelmChart.Files))
role: 'admin'
fullnameoverride: pg-exporter-ns1 /*
`}, assert.Equal(t, []string{
c.Spec.Charts.Helm["postgres"].Files[0], `config:
) datasource:
password: <path:cnpp.k8s.cloudcrane.io/data/ns1/postgres#password>
role: 'admin'
fullnameoverride: pg-exporter-ns1
`},
c.Spec.Charts.Helm["postgres"].Files[0],
)
*/
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment