From 0cb4941b2dd830f975cff9fa9178beed2600ccd0 2020-01-06 14:37:16 From: Branko Majic Date: 2020-01-06 14:37:16 Subject: [PATCH] MAR-148: Fix handling of newlines in asserts for backup role tests. --- diff --git a/roles/backup/molecule/default/tests/test_parameters_optional.py b/roles/backup/molecule/default/tests/test_parameters_optional.py index 82c254ef3fa08965f67e056ff101d1dda954e750..2735ebc8edd01e50a1660b5a7ab03d0345d1aba3 100644 --- a/roles/backup/molecule/default/tests/test_parameters_optional.py +++ b/roles/backup/molecule/default/tests/test_parameters_optional.py @@ -16,7 +16,7 @@ def test_backup_patterns_content(host): backup_pattern = host.file('/etc/duply/main/patterns/test') - assert backup_pattern.content == "/etc/hosts\n/etc/ethers\n/var/log" + assert backup_pattern.content == "/etc/hosts\n/etc/ethers\n/var/log\n" def test_include_content(host): @@ -29,4 +29,4 @@ def test_include_content(host): include = host.file('/etc/duply/main/include') - assert include.content == "/etc/hosts\n/etc/ethers\n/var/log" + assert include.content == "/etc/hosts\n/etc/ethers\n/var/log\n"