Verify offline data backup without containers
CI / tests-and-images (pull_request) Has been cancelled

This commit is contained in:
agent committed 2026-10-11 22:51:44 +03:00
1 parent d6d029d98c
commit f6c9b9883a
1 file changed
+5 -1
+5 -1
View File
@@ -187,12 +187,16 @@ class BackupArchiveTests(unittest.TestCase):
raise AssertionError(command)
with patch("archive.subprocess.run", side_effect=run):
sources, _revision, images, _deployment_files = compose_sources(
sources, revision, images, deployment_files = compose_sources(
Path.cwd() / "deploy/production/compose.yaml", env_file
)
archive = self.private / "offline-backup.tar.gz"
create_backup(archive, sources, revision, images, deployment_files)
manifest = verify_archive(archive)
self.assertEqual(set(sources), COMPONENTS)
self.assertEqual(images, {})
self.assertEqual(sources["opensearch"], volume_paths["akyldash_os-data"])
self.assertEqual(manifest["git_revision"], "abc123")
def test_missing_persistent_mount_state_is_rejected(self):
config, volume_paths, env_file, _secret = self.compose_fixture()