summaryrefslogtreecommitdiff
path: root/test/integration/targets/ansible-test-sanity-validate-modules/runme.sh
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/ansible-test-sanity-validate-modules/runme.sh')
-rwxr-xr-xtest/integration/targets/ansible-test-sanity-validate-modules/runme.sh12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/integration/targets/ansible-test-sanity-validate-modules/runme.sh b/test/integration/targets/ansible-test-sanity-validate-modules/runme.sh
index e0299969..5e2365ab 100755
--- a/test/integration/targets/ansible-test-sanity-validate-modules/runme.sh
+++ b/test/integration/targets/ansible-test-sanity-validate-modules/runme.sh
@@ -6,7 +6,17 @@ set -eux
ansible-test sanity --test validate-modules --color --truncate 0 --failure-ok --lint "${@}" 1> actual-stdout.txt 2> actual-stderr.txt
diff -u "${TEST_DIR}/expected.txt" actual-stdout.txt
-grep -f "${TEST_DIR}/expected.txt" actual-stderr.txt
+grep -F -f "${TEST_DIR}/expected.txt" actual-stderr.txt
+
+cd ../col
+ansible-test sanity --test runtime-metadata
+
+cd ../failure
+if ansible-test sanity --test runtime-metadata 2>&1 | tee out.txt; then
+ echo "runtime-metadata in failure should be invalid"
+ exit 1
+fi
+grep out.txt -e 'extra keys not allowed'
cd ../ps_only