Update bats tests with new password paradigm

This commit is contained in:
Jeff Mitchell committed 2022-08-05 19:52:04 -04:00
1 parent fa17fdf9d7
commit 3f5d265cfd
2 files changed
+4 -2

No files matched your search

+2 -1
View File
@@ -1,5 +1,6 @@
function create_account() {
boundary accounts create password -login-name $1 -password $DEFAULT_PASSWORD -auth-method-id $DEFAULT_AMPW
export BP="${DEFAULT_PASSWORD}"
boundary accounts create password -login-name $1 -password env://BP -auth-method-id $DEFAULT_AMPW
}
function read_account() {
@@ -6,12 +6,13 @@ function create_username_password_credential() {
local user=$3
local pass=$4
export BP="${pass}"
boundary credentials create username-password \
-name $name \
-description 'test username password credential' \
-credential-store-id $sid \
-username $user \
-password $pass
-password env://BP
}
function read_credential() {