Commit 2460bd8c authored by Matt Butcher's avatar Matt Butcher Committed by GitHub

Merge pull request #1619 from technosophos/fix/convert-plugin-format-on-tests

fix(hel): fix plugin format on tests
parents ac628a82 a9f3de84
......@@ -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]
......
name: args
usage: "echo args"
description: "This echos args"
command: "$HELM_HOME/plugins/args.sh"
command: "$HELM_PLUGIN_DIR/args.sh"
#!/bin/sh
echo $HELM_PLUGIN_SHORTNAME
echo $HELM_PLUGIN_NAME
echo $HELM_PLUGIN_DIR
echo $HELM_PLUGIN
echo $HELM_HOME
echo $HELM_PATH_REPOSITORY
......
name: fullenv
usage: "show env vars"
description: "show all env vars"
command: "$HELM_HOME/plugins/fullenv.sh"
command: "$HELM_PLUGIN_DIR/fullenv.sh"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment