mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Added integration tests for encrypted vars
This commit is contained in:
parent
0593473389
commit
926755c3cf
3 changed files with 18 additions and 0 deletions
11
test/integration/test_var_in_vault.yml
Normal file
11
test/integration/test_var_in_vault.yml
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
- hosts: testhost
|
||||||
|
vars_files:
|
||||||
|
- vars/test_var_encrypted.yml
|
||||||
|
|
||||||
|
gather_facts: False
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
- assert:
|
||||||
|
that:
|
||||||
|
- 'secret_var == "secret"'
|
||||||
|
|
6
test/integration/vars/test_var_encrypted.yml
Normal file
6
test/integration/vars/test_var_encrypted.yml
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
$ANSIBLE_VAULT;1.1;AES256
|
||||||
|
66316432306130656439343231643731643637663362643633316161663034353135333661393064
|
||||||
|
3533653862643531613737323332393862396430396633610a363330646130373966393830623738
|
||||||
|
33616137323034333830663164326666613839366533326531396636323030636435393866613437
|
||||||
|
3634386461363430310a333330326166626363393039363739363730366234393634333431346436
|
||||||
|
33323132373035663965306166313761343432303962623962323531653934616130
|
1
test/integration/vault-password
Normal file
1
test/integration/vault-password
Normal file
|
@ -0,0 +1 @@
|
||||||
|
test-vault-password
|
Loading…
Reference in a new issue