summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ansible/roles/nexus/molecule/default/tests/test_default.py11
-rw-r--r--ansible/roles/nexus/molecule/ubuntu/molecule.yml1
2 files changed, 12 insertions, 0 deletions
diff --git a/ansible/roles/nexus/molecule/default/tests/test_default.py b/ansible/roles/nexus/molecule/default/tests/test_default.py
new file mode 100644
index 00000000..ede53150
--- /dev/null
+++ b/ansible/roles/nexus/molecule/default/tests/test_default.py
@@ -0,0 +1,11 @@
+def test_dir(host):
+ f = host.file('/nexus_data')
+ assert f.exists
+ assert f.is_directory
+ assert f.uid == 200
+ assert f.gid == 200
+
+
+def test_nexus_container(host):
+ c = host.docker('nexus')
+ assert c.is_running
diff --git a/ansible/roles/nexus/molecule/ubuntu/molecule.yml b/ansible/roles/nexus/molecule/ubuntu/molecule.yml
index 1c1eaa9b..8555a902 100644
--- a/ansible/roles/nexus/molecule/ubuntu/molecule.yml
+++ b/ansible/roles/nexus/molecule/ubuntu/molecule.yml
@@ -31,3 +31,4 @@ provisioner:
cleanup: ../default/cleanup.yml
verifier:
name: testinfra
+ directory: ../default/tests/