use static localhost binding for molecule
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
9772748b17
commit
3782c14499
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user