Update configutil/pluginutil deps (#2346)

Fixes #2343
This commit is contained in:
Jeff Mitchell authored and GitHub committed 2022-08-10 16:32:02 -04:00
1 parent ad9a47a7f9
commit 7df1331e93
9 files changed
+800 -42

No files matched your search

@@ -7,7 +7,6 @@ import (
"sync"
"testing"
"github.com/google/go-cmp/cmp"
"github.com/hashicorp/boundary/internal/cmd/base"
"github.com/hashicorp/boundary/internal/cmd/config"
"github.com/hashicorp/boundary/internal/iam"
@@ -264,10 +263,15 @@ func TestController_NewPluginsConfig(t *testing.T) {
files, err := os.ReadDir(tmpDir)
require.NoError(err)
require.Len(files, 2)
var pluginNames []string
for _, file := range files {
pluginNames = append(pluginNames, filepath.Base(file.Name()))
name := filepath.Base(file.Name())
// Remove random chars and hyphen
name = name[0 : len(name)-6]
switch name {
case host_plugin_assets.HostPluginPrefix + "aws",
host_plugin_assets.HostPluginPrefix + "azure":
default:
require.Fail("unexpected name", name)
}
}
expectedPluginNames := []string{host_plugin_assets.HostPluginPrefix + "aws.gz", host_plugin_assets.HostPluginPrefix + "azure.gz"}
require.Empty(cmp.Diff(expectedPluginNames, pluginNames))
}