(t *testing.T)
| 118 | } |
| 119 | |
| 120 | func TestPluginVerifyCmd_DirectoryNotSupported(t *testing.T) { |
| 121 | ensure.HelmHome(t) |
| 122 | |
| 123 | // Create a plugin directory |
| 124 | pluginDir := createTestPluginDir(t) |
| 125 | |
| 126 | out := &bytes.Buffer{} |
| 127 | cmd := newPluginVerifyCmd(out) |
| 128 | cmd.SetArgs([]string{pluginDir}) |
| 129 | |
| 130 | err := cmd.Execute() |
| 131 | if err == nil { |
| 132 | t.Error("expected error when verifying directory") |
| 133 | } |
| 134 | if !strings.Contains(err.Error(), "directory verification not supported") { |
| 135 | t.Errorf("expected 'directory verification not supported' error, got: %v", err) |
| 136 | } |
| 137 | } |
| 138 | |
| 139 | func TestPluginVerifyCmd_KeyringFlag(t *testing.T) { |
| 140 | ensure.HelmHome(t) |
nothing calls this directly
no test coverage detected
searching dependent graphs…