|
|
@ -9,8 +9,8 @@ export ANSIBLE_DEPRECATION_WARNINGS=True
|
|
|
|
# check for entry key valid, no deprecation
|
|
|
|
# check for entry key valid, no deprecation
|
|
|
|
[ "$(ANSIBLE_CONFIG='entry_key_not_deprecated.cfg' ansible -m meta -a 'noop' localhost 2>&1 | grep -c 'DEPRECATION')" -eq "0" ]
|
|
|
|
[ "$(ANSIBLE_CONFIG='entry_key_not_deprecated.cfg' ansible -m meta -a 'noop' localhost 2>&1 | grep -c 'DEPRECATION')" -eq "0" ]
|
|
|
|
|
|
|
|
|
|
|
|
# check for entry key deprecation, must be defined to trigger
|
|
|
|
# check for entry key deprecation including the name of the option, must be defined to trigger
|
|
|
|
[ "$(ANSIBLE_CONFIG='entry_key_deprecated.cfg' ansible -m meta -a 'noop' localhost 2>&1 | grep -c 'DEPRECATION')" -eq "1" ]
|
|
|
|
[ "$(ANSIBLE_CONFIG='entry_key_deprecated.cfg' ansible -m meta -a 'noop' localhost 2>&1 | grep -c "\[DEPRECATION WARNING\]: \[testing\]deprecated option.")" -eq "1" ]
|
|
|
|
|
|
|
|
|
|
|
|
# check for deprecation of entry itself, must be consumed to trigger
|
|
|
|
# check for deprecation of entry itself, must be consumed to trigger
|
|
|
|
[ "$(ANSIBLE_TEST_ENTRY2=1 ansible -m debug -a 'msg={{q("config", "_Z_TEST_ENTRY_2")}}' localhost 2>&1 | grep -c 'DEPRECATION')" -eq "1" ]
|
|
|
|
[ "$(ANSIBLE_TEST_ENTRY2=1 ansible -m debug -a 'msg={{q("config", "_Z_TEST_ENTRY_2")}}' localhost 2>&1 | grep -c 'DEPRECATION')" -eq "1" ]
|
|
|
|