blob: eab7d06517838998411864a7c3fe30f75aa9464a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('kubernetes-node-1')
def test_onap_repo(host):
fc = host.file('/etc/yum.repos.d/moleculetestapp.repo').content_string
expected_content = """[moleculetestapp]
baseurl = http://repo.infra-server/rhel
enabled = 1
gpgcheck = 0
name = MOLECULETESTAPP offline repository"""
assert fc == expected_content
|