summaryrefslogtreecommitdiffstats
path: root/ansible/test/play-infrastructure/molecule/default/tests/test_nodes.py
blob: c0ce64f20d8a2cb7b627cd6c9dd832ed98eed4cf (plain)
1
2
3
4
5
6
7
8
9
10
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