From 25aa757e80b98b2226756b2e165c67f28c92462a Mon Sep 17 00:00:00 2001 From: Adrian Likins Date: Tue, 22 Nov 2016 10:56:37 -0500 Subject: [PATCH] add a intg test for vault encrypted inventory (#18550) --- test/integration/targets/vault/runme.sh | 3 +++ test/integration/targets/vault/test_vaulted_inventory.yml | 5 +++++ test/integration/targets/vault/vaulted.inventory | 8 ++++++++ 3 files changed, 16 insertions(+) create mode 100644 test/integration/targets/vault/test_vaulted_inventory.yml create mode 100644 test/integration/targets/vault/vaulted.inventory diff --git a/test/integration/targets/vault/runme.sh b/test/integration/targets/vault/runme.sh index a78ee4d4b2c..facdfb962a7 100755 --- a/test/integration/targets/vault/runme.sh +++ b/test/integration/targets/vault/runme.sh @@ -2,9 +2,12 @@ set -eux + ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password --list-tasks ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password --list-hosts ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password --syntax-check ansible-playbook test_vault.yml -i ../../inventory -v "$@" --vault-password-file vault-password ansible-playbook test_vault_embedded.yml -i ../../inventory -v "$@" --vault-password-file vault-password --syntax-check ansible-playbook test_vault_embedded.yml -i ../../inventory -v "$@" --vault-password-file vault-password +ansible-playbook test_vaulted_inventory.yml -i vaulted.inventory -v "$@" --vault-password-file vault-password + diff --git a/test/integration/targets/vault/test_vaulted_inventory.yml b/test/integration/targets/vault/test_vaulted_inventory.yml new file mode 100644 index 00000000000..06b6582b04b --- /dev/null +++ b/test/integration/targets/vault/test_vaulted_inventory.yml @@ -0,0 +1,5 @@ +- hosts: vaulted_host + gather_facts: no + tasks: + - name: See if we knew vaulted_host + debug: msg="Found vaulted_host from vaulted.inventory" diff --git a/test/integration/targets/vault/vaulted.inventory b/test/integration/targets/vault/vaulted.inventory new file mode 100644 index 00000000000..1ed258b6fa4 --- /dev/null +++ b/test/integration/targets/vault/vaulted.inventory @@ -0,0 +1,8 @@ +$ANSIBLE_VAULT;1.1;AES256 +62663838646564656432633932396339666332653932656230356332316530613665336461653731 +3839393466623734663861313636356530396434376462320a623966363661306334333639356263 +37366332626434326537353562636139333835613961333635633333313832666432396361393861 +3538626339636634360a396239383139646438323662383637663138646439306532613732306263 +64666237366334663931363462313131323861613237613337366562373532373537613531636334 +64653938333938313539653539303031393936306432623862363263663438653932643338373338 +633436626431656361633934363263303962