Files
@ 5b102c4afcb3
Branch filter:
Location: majic-ansible-roles/roles/backup/molecule/default/tests/test_parameters_mandatory.py - annotation
5b102c4afcb3
726 B
text/x-python
MAR-170: Always enforce use of HTTPS in the php_server role:
- Dropped the enforce_https parameter.
- Updated tests.
- Updated release notes.
- Update role reference documentation.
- Update usage instructions.
- Dropped the enforce_https parameter.
- Updated tests.
- Updated release notes.
- Update role reference documentation.
- Update usage instructions.
19b29f0c7e7e 19b29f0c7e7e e1dd478473a2 e1dd478473a2 e1dd478473a2 e1dd478473a2 d62b3adec462 e1dd478473a2 e1dd478473a2 d0293eece376 e1dd478473a2 e1dd478473a2 e1dd478473a2 e1dd478473a2 d0293eece376 e1dd478473a2 d0293eece376 e1dd478473a2 d752715bb533 e1dd478473a2 e1dd478473a2 d0293eece376 e1dd478473a2 e1dd478473a2 e1dd478473a2 e1dd478473a2 e1dd478473a2 d0293eece376 e1dd478473a2 d0293eece376 e1dd478473a2 d752715bb533 | import os
import testinfra.utils.ansible_runner
testinfra_hosts = testinfra.utils.ansible_runner.AnsibleRunner(
os.environ['MOLECULE_INVENTORY_FILE']).get_hosts('parameters-mandatory')
def test_backup_patterns_content(host):
"""
Tests if content of file containing backup patterns is correct.
"""
with host.sudo():
backup_pattern = host.file('/etc/duply/main/patterns/test')
assert backup_pattern.content_string == ''
def test_include_content(host):
"""
Tests if content of assembled include file containing backup patterns is
correct.
"""
with host.sudo():
include = host.file('/etc/duply/main/include')
assert include.content_string == ''
|