Merge pull request #1071 from monopole/standaloneChartInflatorTest

Standalone ChartInflator plugin test.
This commit is contained in:
Jeff Regan
2019-05-13 12:09:57 -07:00
committed by GitHub
6 changed files with 120 additions and 14 deletions

View File

@@ -41,24 +41,24 @@ import (
//
// TODO: Download and inflate the chart, and check that
// in for the test.
func TestChartInflatorExecPlugin(t *testing.T) {
func TestChartInflatorPlugin(t *testing.T) {
tc := plugintest_test.NewPluginTestEnv(t).Set()
defer tc.Reset()
tc.BuildExecPlugin(
"someteam.example.com", "v1", "ChartInflatorExec")
"someteam.example.com", "v1", "ChartInflator")
th := kusttest_test.NewKustTestHarnessWithPluginConfig(
t, "/app", plugin.ActivePluginConfig())
th.WriteK("/app", `
generators:
- chartInflatorExec.yaml
- chartInflator.yaml
namePrefix: LOOOOOOOONG-
`)
th.WriteF("/app/chartInflatorExec.yaml", `
th.WriteF("/app/chartInflator.yaml", `
apiVersion: someteam.example.com/v1
kind: ChartInflatorExec
kind: ChartInflator
metadata:
name: notImportantHere
chartName: minecraft