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
@@ -60,11 +60,11 @@ func Test_TestCredentialLibrary(t *testing.T) {
|
||||
assert.Len(libs, 2)
|
||||
|
||||
rw := db.New(conn)
|
||||
foundLibs, err := fetchLibraries(context.Background(), rw, target.PublicId)
|
||||
foundSources, err := fetchCredentialSources(context.Background(), rw, target.PublicId)
|
||||
require.NoError(err)
|
||||
foundIds := make([]string, 0, len(foundLibs))
|
||||
for _, s := range foundLibs {
|
||||
foundIds = append(foundIds, s.CredentialLibraryId)
|
||||
foundIds := make([]string, 0, len(foundSources))
|
||||
for _, s := range foundSources {
|
||||
foundIds = append(foundIds, s.Id())
|
||||
}
|
||||
require.Equal(libIds, foundIds)
|
||||
}
|
||||
Reference in new issue
Block a user