diff --git a/__fixtures__/basic/Chart.yaml b/__fixtures__/basic/Chart.yaml index a1e08f38..e1f597d2 100644 --- a/__fixtures__/basic/Chart.yaml +++ b/__fixtures__/basic/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 description: A basic example chart to demonstrate unittest plugin name: basic version: 0.1.0 diff --git a/__fixtures__/with-subchart/Chart.yaml b/__fixtures__/with-subchart/Chart.yaml index 54fff304..171837a3 100644 --- a/__fixtures__/with-subchart/Chart.yaml +++ b/__fixtures__/with-subchart/Chart.yaml @@ -1,4 +1,12 @@ -apiVersion: v1 +apiVersion: v2 description: An example chart with customized subchart name: parent-chart version: 0.1.0 +dependencies: + - name: postgresql + repository: https://kubernetes-charts.storage.googleapis.com + version: 0.8.3 + - name: postgresql + repository: https://kubernetes-charts.storage.googleapis.com + version: 0.8.3 + alias: another-postgresql \ No newline at end of file diff --git a/__fixtures__/with-subchart/charts/child-chart/Chart.yaml b/__fixtures__/with-subchart/charts/child-chart/Chart.yaml index d9b1bdee..f17d1a95 100644 --- a/__fixtures__/with-subchart/charts/child-chart/Chart.yaml +++ b/__fixtures__/with-subchart/charts/child-chart/Chart.yaml @@ -1,4 +1,4 @@ -apiVersion: v1 +apiVersion: v2 description: An customized subchart name: child-chart version: 0.1.0 diff --git a/__fixtures__/with-subchart/requirements.lock b/__fixtures__/with-subchart/requirements.lock deleted file mode 100644 index e8a2f091..00000000 --- a/__fixtures__/with-subchart/requirements.lock +++ /dev/null @@ -1,9 +0,0 @@ -dependencies: -- name: postgresql - repository: https://kubernetes-charts.storage.googleapis.com - version: 0.8.3 -- name: postgresql - repository: https://kubernetes-charts.storage.googleapis.com - version: 0.8.3 -digest: sha256:6ab78c0f011b833b1328a5d917c1761b12b17e662c405456f1dad869c1048a9c -generated: 2018-03-26T15:50:14.210943461+08:00 diff --git a/__fixtures__/with-subchart/requirements.yaml b/__fixtures__/with-subchart/requirements.yaml deleted file mode 100644 index 5ed21aaa..00000000 --- a/__fixtures__/with-subchart/requirements.yaml +++ /dev/null @@ -1,8 +0,0 @@ -dependencies: - - name: postgresql - repository: https://kubernetes-charts.storage.googleapis.com - version: 0.8.3 - - name: postgresql - repository: https://kubernetes-charts.storage.googleapis.com - version: 0.8.3 - alias: another-postgresql diff --git a/unittest/test_runner_test.go b/unittest/test_runner_test.go index 1ea565b0..42aedb3e 100644 --- a/unittest/test_runner_test.go +++ b/unittest/test_runner_test.go @@ -2,6 +2,7 @@ package unittest_test import ( "bytes" + "fmt" "regexp" "sort" "strings" @@ -64,6 +65,7 @@ func TestRunnerOkWithPassedTests(t *testing.T) { }, } passed := runner.Run([]string{"../__fixtures__/basic"}) + fmt.Println(buffer.String()) assert.True(t, passed) cupaloy.SnapshotT(t, makeOutputSnapshotable(buffer.String())...) } @@ -91,6 +93,7 @@ func TestRunnerWithTestsInSubchart(t *testing.T) { }, } passed := runner.Run([]string{"../__fixtures__/with-subchart"}) + fmt.Println(buffer.String()) assert.True(t, passed) cupaloy.SnapshotT(t, makeOutputSnapshotable(buffer.String())...) } @@ -105,6 +108,7 @@ func TestRunnerWithTestsInSubchartButFlagFalse(t *testing.T) { }, } passed := runner.Run([]string{"../__fixtures__/with-subchart"}) + fmt.Println(buffer.String()) assert.True(t, passed) cupaloy.SnapshotT(t, makeOutputSnapshotable(buffer.String())...) }