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:
Timothy Messier committed 2023-02-03 17:00:34 +00:00
1 parent e66ea15fef
commit f9a2f44f5b
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"
}