From 40ad517322afaaf08ce070e9aa24e2944d325f4d Mon Sep 17 00:00:00 2001 From: Nicolas ROCHE Date: Mon, 2 May 2022 12:26:00 +0200 Subject: [PATCH] publik_dump: update test as we now dump .invalid directories --- publik-dump/tests/test_publik_dump.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/publik-dump/tests/test_publik_dump.py b/publik-dump/tests/test_publik_dump.py index 0daa03d..c812897 100644 --- a/publik-dump/tests/test_publik_dump.py +++ b/publik-dump/tests/test_publik_dump.py @@ -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"