Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#114 fix KV1 cp on data #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions test/suites/past-issues/114_cp-kv1-data-field-bug.bats
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
load ../../util/common
load ../../util/standard-setup
load ../../bin/plugins/bats-support/load
load ../../bin/plugins/bats-assert/load

@test "vault-${VAULT_VERSION} - test issue https://github.com/fishi0x01/vsh/issues/114" {
#######################################
echo "==== case: https://github.com/fishi0x01/vsh/issues/114 ===="
run ${APP_BIN} -c "cp KV1/src/data KV1/dest/data"
assert_success

echo "ensure the file got copied to destination"
run get_vault_value "data" "KV1/dest/data"
assert_success
assert_output "2"
}
1 change: 1 addition & 0 deletions test/util/standard-setup.bash
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ setup() {
vault kv put ${kv_backend}/src/a/foo/bar value=2;
vault kv put ${kv_backend}/src/b/foo value=1;
vault kv put ${kv_backend}/src/b/foo/bar value=2;
vault kv put ${kv_backend}/src/data data=2;
echo -n \"a spaced value\" | vault kv put ${kv_backend}/src/spaces/foo bar=-;
vault kv put ${kv_backend}/src/apostrophe/foo bar=steve\'s;
echo -n 'a \"quoted\" value' | vault kv put ${kv_backend}/src/quoted/foo bar=-"
Expand Down
Loading