fixed tests for molecule/default ..

This commit is contained in:
Rshad Zhran 2019-08-19 11:52:54 +02:00
parent 07172620cd
commit c15a466912

View File

@ -73,8 +73,8 @@ def test_open_ports(host):
"""Test if the main port is open and the agent-auth is not open."""
distribution = host.system_info.distribution.lower()
if distribution == 'ubuntu':
assert host.socket("tcp://127.0.0.1:1515").is_listening
assert host.socket("tcp://127.0.0.1:1514").is_listening
assert host.socket("tcp://0.0.0.0:1515").is_listening
assert host.socket("tcp://0.0.0.0:1514").is_listening
elif distribution == 'centos':
assert host.socket("tcp://127.0.0.1:1515").is_listening
assert host.socket("tcp://127.0.0.1:1514").is_listening
assert host.socket("tcp://:::1515").is_listening
assert host.socket("tcp://:::1514").is_listening