fixed tests for molecule/default
This commit is contained in:
parent
9d9aa9088a
commit
07172620cd
1
Pipfile
1
Pipfile
@ -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"
|
||||
|
||||
@ -57,7 +57,7 @@ scenario:
|
||||
- create
|
||||
- prepare
|
||||
- converge
|
||||
# - idempotence
|
||||
- idempotence
|
||||
- side_effect
|
||||
- verify
|
||||
- cleanup
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user