fixed tests for molecule/default

This commit is contained in:
Rshad Zhran 2019-08-19 11:37:58 +02:00
parent 9d9aa9088a
commit 07172620cd
3 changed files with 5 additions and 6 deletions

View File

@ -15,7 +15,6 @@ python_version = "2.7"
[scripts]
test ="molecule test --destroy=never"
verify_test ="molecule verify"
agent ="molecule test -s wazuh-agent"
elasticsearch ="molecule test -s elasticsearch"
filebeat ="molecule test -s filebeat"

View File

@ -57,7 +57,7 @@ scenario:
- create
- prepare
- converge
# - idempotence
- idempotence
- side_effect
- verify
- cleanup

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://0.0.0.0:1515").is_listening
assert not host.socket("tcp://0.0.0.0:1514").is_listening
assert host.socket("tcp://127.0.0.1:1515").is_listening
assert host.socket("tcp://127.0.0.1:1514").is_listening
elif distribution == 'centos':
assert host.socket("tcp://:::1515").is_listening
assert not host.socket("tcp://:::1514").is_listening
assert host.socket("tcp://127.0.0.1:1515").is_listening
assert host.socket("tcp://127.0.0.1:1514").is_listening