INNER CODE UNIT · Go
TestJsonnetImplementationFlag
grafana/tanka · acceptance-tests/flag_test.go:10
func TestJsonnetImplementationFlag(t *testing.T) {
// The jsonnet implementation flag should be present for the following sub-commands
supportedSubCommands := []string{
"eval",
"export",
"status",
"apply",
"diff",
"delete",
"show",
// https://github.com/grafana/tanka/pull/1208
"env list",
}
tmpDir := t.TempDir()
for _, subcommand := range supportedSubCommands {
t.Run(subcommand, func(t *testing.T) {
args := []string{}
command := strings.Split(subcommand, " ")