Changeset - ef201fa5ec5f
14
1
17
MAR-128: Upgraded tests for backup_server role:
- Switch to new Molecule configuration.
- Updated set-up playbook to use become: yes.
- Moved some preparatory steps outside of the main playbook (eases
idempotence tests).
- Updated tests to reference the yml inventory file.
- Updated tests to use new fixture (host instead of individual ones).
- Switched to extracting IP address instead of hard-coding it in a
couple of tests.
- Moved test for checking available authentication mechanisms for
backup SSH server to be part of testing of parameters_optional only
for now (it was hard coded to that IP, and fails on
parameters-mandatory due to iptables not opening correct ports).
- Switch to new Molecule configuration.
- Updated set-up playbook to use become: yes.
- Moved some preparatory steps outside of the main playbook (eases
idempotence tests).
- Updated tests to reference the yml inventory file.
- Updated tests to use new fixture (host instead of individual ones).
- Switched to extracting IP address instead of hard-coding it in a
couple of tests.
- Moved test for checking available authentication mechanisms for
backup SSH server to be part of testing of parameters_optional only
for now (it was hard coded to that IP, and fails on
parameters-mandatory due to iptables not opening correct ports).
20 files changed with 449 insertions and 317 deletions:
0 comments (0 inline, 0 general)
file renamed from roles/backup_server/tests/data/ssh/client1 to roles/backup_server/molecule/default/tests/data/ssh/client1 |
file renamed from roles/backup_server/tests/data/ssh/client1.pub to roles/backup_server/molecule/default/tests/data/ssh/client1.pub |
file renamed from roles/backup_server/tests/data/ssh/client2 to roles/backup_server/molecule/default/tests/data/ssh/client2 |
file renamed from roles/backup_server/tests/data/ssh/client2.pub to roles/backup_server/molecule/default/tests/data/ssh/client2.pub |
file renamed from roles/backup_server/tests/data/ssh/known_hosts to roles/backup_server/molecule/default/tests/data/ssh/known_hosts |
file renamed from roles/backup_server/tests/data/ssh/server_dsa to roles/backup_server/molecule/default/tests/data/ssh/server_dsa |
file renamed from roles/backup_server/tests/data/ssh/server_ecdsa to roles/backup_server/molecule/default/tests/data/ssh/server_ecdsa |
file renamed from roles/backup_server/tests/data/ssh/server_ed25519 to roles/backup_server/molecule/default/tests/data/ssh/server_ed25519 |
file renamed from roles/backup_server/tests/data/ssh/server_rsa to roles/backup_server/molecule/default/tests/data/ssh/server_rsa |
0 comments (0 inline, 0 general)