test(cli): Add tests for vault-ssh-certificate credential library
This adds tests for updating specific fields of the credential library.
This commit is contained in:
3 files changed
+424
No files matched your search
@@ -31,3 +31,11 @@ function has_status_code() {
|
||||
diag() {
|
||||
echo "$@" | sed -e 's/^/# /' >&3 ;
|
||||
}
|
||||
|
||||
function field_eq() {
|
||||
local json=$1
|
||||
local field=$2
|
||||
local expected=$3
|
||||
echo "checking $field == $expected in $json"
|
||||
echo "$json" | jq -e "$field == $expected"
|
||||
}
|
||||
Reference in new issue
Block a user