publik_dump: update test as we now dump .invalid directories
This commit is contained in:
parent
bcc80e5641
commit
40ad517322
|
@ -251,19 +251,19 @@ def test_dump_tenant_files(mocked_tenant_info, mocked_run, publik_dump):
|
|||
# hobo
|
||||
assert mocked_run.mock_calls[0][1][0].replace(publik_dump.host_folder, 'HF') == \
|
||||
"ssh hobo.node2.test.saas.entrouvert.org '" \
|
||||
"sudo tar -C /var/lib/hobo/tenants -Jcf - hobo-eurelien.test.entrouvert.org" \
|
||||
"sudo tar -C /var/lib/hobo/tenants -Jcf - hobo-eurelien.test.entrouvert.org.invalid" \
|
||||
"' > HF/hobo-eurelien.test.entrouvert.org/hobo-eurelien.test.entrouvert.org.tar.xz"
|
||||
|
||||
# authentic
|
||||
assert mocked_run.mock_calls[1][1][0].replace(publik_dump.host_folder, 'HF') == \
|
||||
"ssh authentic.node2.test.saas.entrouvert.org '"\
|
||||
"sudo tar -C /var/lib/authentic2-multitenant/tenants -Jcf - connexion-eurelien.test.entrouvert.org" \
|
||||
"sudo tar -C /var/lib/authentic2-multitenant/tenants -Jcf - connexion-eurelien.test.entrouvert.org.invalid" \
|
||||
"' > HF/connexion-eurelien.test.entrouvert.org/connexion-eurelien.test.entrouvert.org.tar.xz"
|
||||
|
||||
# wcs
|
||||
assert mocked_run.mock_calls[2][1][0].replace(publik_dump.host_folder, 'HF') == \
|
||||
"ssh wcs.node2.test.saas.entrouvert.org '" \
|
||||
"sudo tar -C /var/lib/wcs -Jcf - demarches-eurelien.test.entrouvert.org" \
|
||||
"sudo tar -C /var/lib/wcs -Jcf - demarches-eurelien.test.entrouvert.org.invalid" \
|
||||
"' > HF/demarches-eurelien.test.entrouvert.org/demarches-eurelien.test.entrouvert.org.tar.xz"
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue