mirror of
https://github.com/hashicorp/vault.git
synced 2026-05-05 04:16:31 +02:00
Fix tests
This commit is contained in:
parent
a3f6580a75
commit
9abc31ece7
@ -23,6 +23,7 @@ type MySQL struct {
|
||||
credsutil.CredentialsProducer
|
||||
}
|
||||
|
||||
// New implements builtinplugins.BuiltinFactory
|
||||
func New() (interface{}, error) {
|
||||
connProducer := &connutil.SQLConnectionProducer{}
|
||||
connProducer.Type = mySQLTypeName
|
||||
|
||||
@ -1122,8 +1122,6 @@ func TestSystemBackend_PluginCatalog_CRUD(t *testing.T) {
|
||||
t.Fatalf("error: %v", err)
|
||||
}
|
||||
c.pluginCatalog.directory = sym
|
||||
c.pluginCatalog.vaultCommand = "vault"
|
||||
c.pluginCatalog.vaultSHA256 = []byte{'1'}
|
||||
|
||||
req := logical.TestRequest(t, logical.ListOperation, "plugin-catalog/")
|
||||
resp, err := b.HandleRequest(req)
|
||||
|
||||
@ -21,8 +21,6 @@ func TestPluginCatalog_CRUD(t *testing.T) {
|
||||
t.Fatalf("error: %v", err)
|
||||
}
|
||||
core.pluginCatalog.directory = sym
|
||||
core.pluginCatalog.vaultCommand = "vault"
|
||||
core.pluginCatalog.vaultSHA256 = []byte{'1'}
|
||||
|
||||
// Get builtin plugin
|
||||
p, err := core.pluginCatalog.Get("mysql-database-plugin")
|
||||
@ -99,8 +97,6 @@ func TestPluginCatalog_List(t *testing.T) {
|
||||
t.Fatalf("error: %v", err)
|
||||
}
|
||||
core.pluginCatalog.directory = sym
|
||||
core.pluginCatalog.vaultCommand = "vault"
|
||||
core.pluginCatalog.vaultSHA256 = []byte{'1'}
|
||||
|
||||
// Get builtin plugins and sort them
|
||||
builtinKeys := builtinplugins.BuiltinPlugins.Keys()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user