use static localhost binding for molecule
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Robert Kaussow 2019-06-10 18:29:07 +02:00
parent 9772748b17
commit 3782c14499
2 changed files with 2 additions and 3 deletions

View File

@ -9,6 +9,7 @@
baseurl: "http://download.fedoraproject.org/pub/epel/$releasever/$basearch/"
gpgkey: "http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-$releasever/"
enabled: True
mosquitto_bind_address: "127.0.0.1"
roles:
- role: xoxys.yum

View File

@ -22,6 +22,4 @@ def test_mosquitto_running_and_enabled(host):
def test_mosquitto_socket(host):
# Verify the socket is listening for HTTP traffic
address = host.ansible("debug", "var=ansible_default_ipv4.address")
assert host.socket(
"tcp://{address}:8883".format(address=address)).is_listening
assert host.socket("tcp://127.0.0.1:8883").is_listening