Merge pull request #2106 from nokia/fix-plugin-test

Fixing plugin test
pull/2041/merge
Adam Reese 9 years ago committed by GitHub
commit ca31b75a4c

@ -74,7 +74,7 @@ func TestLoadDir(t *testing.T) {
t.Errorf("Expected dir %q, got %q", dirname, plug.Dir)
}
expect := Metadata{
expect := &Metadata{
Name: "hello",
Version: "0.1.0",
Usage: "usage",
@ -84,8 +84,8 @@ func TestLoadDir(t *testing.T) {
IgnoreFlags: true,
}
if reflect.DeepEqual(expect, plug.Metadata) {
t.Errorf("Expected name %v, got %v", expect, plug.Metadata)
if !reflect.DeepEqual(expect, plug.Metadata) {
t.Errorf("Expected plugin metadata %v, got %v", expect, plug.Metadata)
}
}

@ -3,6 +3,6 @@ version: "0.1.0"
usage: "usage"
description: |-
description
command: "$HELM_PLUGIN_SELF/helm-hello"
command: "$HELM_PLUGIN_SELF/hello.sh"
useTunnel: true
ignoreFlags: true

Loading…
Cancel
Save