Files
threshold/internal/tests/cli/boundary/_credential_stores.bash
T

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

34 lines
794 B
Bash
Raw Normal View History

load _authorized_actions
function create_static_credential_store() {
local name=$1
local sid=$2
boundary credential-stores create static \
-name $name \
-description 'test static credential store' \
-scope-id $sid
}
function create_vault_credential_store() {
boundary credential-stores create vault $@
}
function read_credential_store() {
boundary credential-stores read -id $1 -format json
}
function delete_credential_store() {
2023-02-01 20:54:08 +00:00
boundary credential-stores delete -id $1 -format json
}
function list_credential_stores() {
boundary credential-stores list -scope-id $1 -format json
}
function credential_store_id() {
local name=$1
local sid=$2
strip $(list_credential_stores $sid | jq -c ".items[] | select(.name | contains(\"$name\")) | .[\"id\"]")
}