feat(target): Add support for static credential as target credential sources
This commit is contained in:
1 parent
58d546cdd4
commit
00dfea1244
27 files changed
+1951
-588
No files matched your search
@@ -23,6 +23,19 @@ func TestNewCredentialLibrary(targetId, credentialLibraryId string, purpose cred
|
||||
}
|
||||
}
|
||||
|
||||
// TestNewStaticCredential creates a new in memory StaticCredential
|
||||
// representing the relationship between targetId and credentialId with
|
||||
// the given purpose.
|
||||
func TestNewStaticCredential(targetId, credentialId string, purpose credential.Purpose) *StaticCredential {
|
||||
return &StaticCredential{
|
||||
StaticCredential: &store.StaticCredential{
|
||||
TargetId: targetId,
|
||||
CredentialId: credentialId,
|
||||
CredentialPurpose: string(purpose),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
// TestCredentialLibrary creates a CredentialLibrary for targetId and
|
||||
// libraryId with the credential purpose of application.
|
||||
func TestCredentialLibrary(t testing.TB, conn *db.DB, targetId, libraryId string) *CredentialLibrary {
|
||||
|
||||
Reference in new issue
Block a user