Files
@ c8d4251a6ea5
Branch filter:
Location: majic-ansible-roles/roles/ldap_server/molecule/default/tests/test_client.py - annotation
c8d4251a6ea5
598 B
text/x-python
MAR-131: Added support for specifying Python version in wsgi_website role:
- Introduced additional role parameter for specifying the Python
version.
- Updated tests to verify new functionality.
- Fixed existing tests to account for differences between Python 2 and
Python 3 - including changes to WSGI test applications.
- Updated documentation, documenting new parameter and fixing one
minor typo.
- Updated release notes.
- Bumped default version of Gunicorn/futures used.
- Introduced additional role parameter for specifying the Python
version.
- Updated tests to verify new functionality.
- Fixed existing tests to account for differences between Python 2 and
Python 3 - including changes to WSGI test applications.
- Updated documentation, documenting new parameter and fixing one
minor typo.
- Updated release notes.
- Bumped default version of Gunicorn/futures used.
c082a26b62ff c082a26b62ff ec4e3e91c4d3 ec4e3e91c4d3 c082a26b62ff ec4e3e91c4d3 c082a26b62ff ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 ec4e3e91c4d3 | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts(['client'])
def test_connectivity(host):
with host.sudo():
ping = host.run('hping3 -S -p 389 -c 1 10.31.127.20')
assert ping.rc == 0
ping = host.run('hping3 -S -p 636 -c 1 10.31.127.20')
assert ping.rc == 0
ping = host.run('hping3 -S -p 389 -c 1 10.31.127.21')
assert ping.rc == 0
ping = host.run('hping3 -S -p 636 -c 1 10.31.127.21')
assert ping.rc == 0
|