mirror of
				https://github.com/optim-enterprises-bv/vault.git
				synced 2025-10-31 10:37:56 +00:00 
			
		
		
		
	Make API not depend on SDK (#18962)
This commit is contained in:
		| @@ -6,7 +6,6 @@ import ( | ||||
|  | ||||
| 	"github.com/hashicorp/vault/api" | ||||
| 	"github.com/hashicorp/vault/helper/testhelpers/corehelpers" | ||||
| 	"github.com/hashicorp/vault/sdk/helper/consts" | ||||
| 	"github.com/mitchellh/cli" | ||||
| ) | ||||
|  | ||||
| @@ -90,14 +89,14 @@ func TestPluginReloadCommand_Run(t *testing.T) { | ||||
| 		defer closer() | ||||
|  | ||||
| 		pluginName := "my-plugin" | ||||
| 		_, sha256Sum := testPluginCreateAndRegister(t, client, pluginDir, pluginName, consts.PluginTypeCredential, "") | ||||
| 		_, sha256Sum := testPluginCreateAndRegister(t, client, pluginDir, pluginName, api.PluginTypeCredential, "") | ||||
|  | ||||
| 		ui, cmd := testPluginReloadCommand(t) | ||||
| 		cmd.client = client | ||||
|  | ||||
| 		if err := client.Sys().RegisterPlugin(&api.RegisterPluginInput{ | ||||
| 			Name:    pluginName, | ||||
| 			Type:    consts.PluginTypeCredential, | ||||
| 			Type:    api.PluginTypeCredential, | ||||
| 			Command: pluginName, | ||||
| 			SHA256:  sha256Sum, | ||||
| 		}); err != nil { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Nick Cabatoff
					Nick Cabatoff