summaryrefslogtreecommitdiff
path: root/test/integration/targets/ansible-vault/runme.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/ansible-vault/runme.sh')
-rwxr-xr-xtest/integration/targets/ansible-vault/runme.sh32
1 files changed, 0 insertions, 32 deletions
diff --git a/test/integration/targets/ansible-vault/runme.sh b/test/integration/targets/ansible-vault/runme.sh
index 98399eca..50720ea9 100755
--- a/test/integration/targets/ansible-vault/runme.sh
+++ b/test/integration/targets/ansible-vault/runme.sh
@@ -47,18 +47,6 @@ echo $?
# view the vault encrypted password file
ansible-vault view "$@" --vault-id vault-password encrypted-vault-password
-# check if ansible-vault fails when destination is not writable
-NOT_WRITABLE_DIR="${MYTMPDIR}/not_writable"
-TEST_FILE_EDIT4="${NOT_WRITABLE_DIR}/testfile"
-mkdir "${NOT_WRITABLE_DIR}"
-touch "${TEST_FILE_EDIT4}"
-chmod ugo-w "${NOT_WRITABLE_DIR}"
-ansible-vault encrypt "$@" --vault-password-file vault-password "${TEST_FILE_EDIT4}" < /dev/null > log 2>&1 && :
-grep "not writable" log && :
-WRONG_RC=$?
-echo "rc was $WRONG_RC (1 is expected)"
-[ $WRONG_RC -eq 1 ]
-
# encrypt with a password from a vault encrypted password file and multiple vault-ids
# should fail because we dont know which vault id to use to encrypt with
ansible-vault encrypt "$@" --vault-id vault-password --vault-id encrypted-vault-password "${TEST_FILE_ENC_PASSWORD}" && :
@@ -586,23 +574,3 @@ ansible-playbook realpath.yml "$@" --vault-password-file symlink/get-password-sy
# using symlink
ansible-playbook symlink.yml "$@" --vault-password-file script/vault-secret.sh 2>&1 |grep "${ER}"
-
-### SALT TESTING ###
-# prep files for encryption
-for salted in test1 test2 test3
-do
- echo 'this is salty' > "salted_${salted}"
-done
-
-# encrypt files
-ANSIBLE_VAULT_ENCRYPT_SALT=salty ansible-vault encrypt salted_test1 --vault-password-file example1_password "$@"
-ANSIBLE_VAULT_ENCRYPT_SALT=salty ansible-vault encrypt salted_test2 --vault-password-file example1_password "$@"
-ansible-vault encrypt salted_test3 --vault-password-file example1_password "$@"
-
-# should be the same
-out=$(diff salted_test1 salted_test2)
-[ "${out}" == "" ]
-
-# shoudl be diff
-out=$(diff salted_test1 salted_test3 || true)
-[ "${out}" != "" ]