Molecule test for infrastructure playbook.
[oom/offline-installer.git] / ansible / test / play-infrastructure / molecule / default / tests / test_nodes.py
1 import os
2
3 import testinfra.utils.ansible_runner
4
5 testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
6     os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('kubernetes')
7
8
9 def test_registry_access(host):
10     assert host.run(
11       'docker login -u admin -p admin123 nexus3.onap.org:10001').rc == 0