Migrate credential-library nomenclature around targets to credential-source (#1413)
See the CHANGELOG entry for more information. Co-authored-by: Jim <jlambert@hashicorp.com> Co-authored-by: Michael Gaffney <mgaffney@users.noreply.github.com>
This commit is contained in:
36 files changed
+3284
-673
No files matched your search
@@ -35,9 +35,9 @@ func TestTcpTarget(t *testing.T, conn *gorm.DB, scopeId, name string, opt ...Opt
|
||||
err := rw.CreateItems(context.Background(), newHostSets)
|
||||
require.NoError(err)
|
||||
}
|
||||
if len(opts.withCredentialLibraries) > 0 {
|
||||
newCredLibs := make([]interface{}, 0, len(opts.withCredentialLibraries))
|
||||
for _, cl := range opts.withCredentialLibraries {
|
||||
if len(opts.withCredentialSources) > 0 {
|
||||
newCredLibs := make([]interface{}, 0, len(opts.withCredentialSources))
|
||||
for _, cl := range opts.withCredentialSources {
|
||||
newCl, err := NewCredentialLibrary(target.PublicId, cl)
|
||||
require.NoError(err)
|
||||
newCredLibs = append(newCredLibs, newCl)
|
||||
|
||||
Reference in new issue
Block a user