Fix tests
This commit is contained in:
parent
798fc922d1
commit
30b06b593c
|
@ -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…
Reference in New Issue