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:
authored and GitHub committed 2021-07-27 12:48:36 -04:00
1 parent 528d54b4ad
commit ab6f3eaeb4
36 files changed
+3284 -673

No files matched your search

+4 -4
View File
@@ -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)
}