summaryrefslogtreecommitdiffstats
path: root/test/integration/targets/ansible-galaxy
diff options
context:
space:
mode:
Diffstat (limited to 'test/integration/targets/ansible-galaxy')
-rwxr-xr-xtest/integration/targets/ansible-galaxy/runme.sh14
1 files changed, 14 insertions, 0 deletions
diff --git a/test/integration/targets/ansible-galaxy/runme.sh b/test/integration/targets/ansible-galaxy/runme.sh
index 97b04234f6..7eff3fd6b7 100755
--- a/test/integration/targets/ansible-galaxy/runme.sh
+++ b/test/integration/targets/ansible-galaxy/runme.sh
@@ -107,6 +107,20 @@ EOF
popd # ${galaxy_testdir}
rm -fr "${galaxy_testdir}"
+
+# Galaxy role list test case
+#
+# Basic tests to ensure listing roles works
+
+f_ansible_galaxy_status \
+ "role list"
+
+ ansible-galaxy role list | tee out.txt
+ ansible-galaxy role list test-role | tee -a out.txt
+
+ [[ $(grep -c '^- test-role' out.txt ) -eq 2 ]]
+
+
#################################
# ansible-galaxy collection tests
#################################