Fix tests using multiple controllers (#1734)
The previous PR only initialized plugins if they were required, which meant that there may not actually be a plugin manager running because a second node would not actually create the dev database, which is where the plugin was being added. The assumption that a plugin manager is running is still a fine one at the moment, but we just need to make sure it's running in _all_ cases.
This commit is contained in:
1 parent
ad8ce50f69
commit
95568ef07f
5 files changed
+17
-17
No files matched your search
@@ -16,7 +16,6 @@ import (
|
||||
"github.com/hashicorp/boundary/internal/auth/password"
|
||||
"github.com/hashicorp/boundary/internal/cmd/base"
|
||||
"github.com/hashicorp/boundary/internal/cmd/config"
|
||||
"github.com/hashicorp/boundary/internal/host/plugin"
|
||||
"github.com/hashicorp/boundary/internal/host/static"
|
||||
"github.com/hashicorp/boundary/internal/iam"
|
||||
"github.com/hashicorp/boundary/internal/intglobals"
|
||||
@@ -561,7 +560,8 @@ func (c *Command) Run(args []string) int {
|
||||
|
||||
var opts []base.Option
|
||||
if c.flagCreateLoopbackHostPlugin {
|
||||
opts = append(opts, base.WithHostPlugin("pl_1234567890", plugin.NewWrappingPluginClient(plugin.NewLoopbackPlugin())))
|
||||
c.DevLoopbackHostPluginId = "pl_1234567890"
|
||||
c.EnabledPlugins = append(c.EnabledPlugins, base.EnabledPluginHostLoopback)
|
||||
c.Config.Controller.SchedulerRunJobInterval = 100 * time.Millisecond
|
||||
}
|
||||
switch c.flagDatabaseUrl {
|
||||
|
||||
Reference in new issue
Block a user