summaryrefslogtreecommitdiffstats
path: root/ansible/test/play-infrastructure/molecule/default/tests/test_nodes.py
diff options
context:
space:
mode:
authorSamuli Silvius <s.silvius@partner.samsung.com>2019-04-21 19:24:18 +0300
committerMichal Ptacek <m.ptacek@partner.samsung.com>2019-05-29 10:44:06 +0000
commit2353ca7b38acbd7246adbf23b7d92723bc083dcf (patch)
tree577e2a90e67954778f757d1a25bab2eaaba9d4e4 /ansible/test/play-infrastructure/molecule/default/tests/test_nodes.py
parent14f47a0f47990a7e51123fcabd6c124285ebdc45 (diff)
Molecule test for infrastructure playbook.
These tests execute the whole infrastructure playbook. Issue-ID: OOM-1816 Change-Id: I793191e05cb0b527c3da6d820c1916231e69d865 Signed-off-by: Samuli Silvius <s.silvius@partner.samsung.com> Signed-off-by: Michal Zegan <m.zegan@samsung.com>
Diffstat (limited to 'ansible/test/play-infrastructure/molecule/default/tests/test_nodes.py')
-rw-r--r--ansible/test/play-infrastructure/molecule/default/tests/test_nodes.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/ansible/test/play-infrastructure/molecule/default/tests/test_nodes.py b/ansible/test/play-infrastructure/molecule/default/tests/test_nodes.py
new file mode 100644
index 00000000..c0ce64f2
--- /dev/null
+++ b/ansible/test/play-infrastructure/molecule/default/tests/test_nodes.py
@@ -0,0 +1,11 @@
+import os
+
+import testinfra.utils.ansible_runner
+
+testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
+ os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('kubernetes')
+
+
+def test_registry_access(host):
+ assert host.run(
+ 'docker login -u admin -p admin123 nexus3.onap.org:10001').rc == 0