fix(hel): fix plugin format on tests

Test plugins were in the original format. Updated to current format and
fixed the tests to stop silently ignoring the broken test.
pull/1619/head
Matt Butcher 8 years ago
parent 190dafbc8e
commit a9f3de84e1
No known key found for this signature in database
GPG Key ID: DCD5F5E5EF32C345

@ -77,7 +77,7 @@ func TestLoadPlugins(t *testing.T) {
envs := strings.Join([]string{
"fullenv",
"fullenv.yaml",
hh.Plugins() + "/fullenv",
hh.Plugins(),
hh.String(),
hh.Repository(),
@ -102,6 +102,11 @@ func TestLoadPlugins(t *testing.T) {
}
plugins := cmd.Commands()
if len(plugins) != len(tests) {
t.Fatalf("Expected %d plugins, got %d", len(tests), len(plugins))
}
for i := 0; i < len(plugins); i++ {
out.Reset()
tt := tests[i]

@ -1,4 +1,4 @@
name: args
usage: "echo args"
description: "This echos args"
command: "$HELM_HOME/plugins/args.sh"
command: "$HELM_PLUGIN_DIR/args.sh"

@ -1,6 +1,6 @@
#!/bin/sh
echo $HELM_PLUGIN_SHORTNAME
echo $HELM_PLUGIN_NAME
echo $HELM_PLUGIN_DIR
echo $HELM_PLUGIN
echo $HELM_HOME
echo $HELM_PATH_REPOSITORY

@ -1,4 +1,4 @@
name: fullenv
usage: "show env vars"
description: "show all env vars"
command: "$HELM_HOME/plugins/fullenv.sh"
command: "$HELM_PLUGIN_DIR/fullenv.sh"
Loading…
Cancel
Save