Просмотр исходного кода

test(backup): Add release test at 24.5.0 (#71059)

The test for 24.3.0 has been removed, as it is not outside the support
window.
Alex Zaslavsky 9 месяцев назад
Родитель
Сommit
bee295a221

Разница между файлами не показана из-за своего большого размера
+ 209 - 382
tests/sentry/backup/snapshots/ReleaseTests/test_at_24_5_0.pysnap


Разница между файлами не показана из-за своего большого размера
+ 203 - 203
tests/sentry/backup/snapshots/ReleaseTests/test_at_head.pysnap


+ 8 - 8
tests/sentry/backup/test_releases.py

@@ -96,9 +96,9 @@ class ReleaseTests(BackupTestCase):
             # Check the export so that we can ensure that all models were seen.
             verify_models_in_output(expected_models, exported)
 
-    def test_at_24_4_2(self):
+    def test_at_24_5_0(self):
         with tempfile.TemporaryDirectory() as tmp_dir:
-            _, snapshot_refval = read_snapshot_file(self.get_snapshot_path("24.4.2"))
+            _, snapshot_refval = read_snapshot_file(self.get_snapshot_path("24.5.0"))
             snapshot_data = yaml.safe_load(snapshot_refval)
             tmp_path = Path(tmp_dir).joinpath(f"{self._testMethodName}.json")
             with open(tmp_path, "w") as f:
@@ -107,9 +107,9 @@ class ReleaseTests(BackupTestCase):
             with open(tmp_path, "rb") as f:
                 import_in_global_scope(f, printer=NOOP_PRINTER)
 
-    def test_at_24_4_1(self):
+    def test_at_24_4_2(self):
         with tempfile.TemporaryDirectory() as tmp_dir:
-            _, snapshot_refval = read_snapshot_file(self.get_snapshot_path("24.4.1"))
+            _, snapshot_refval = read_snapshot_file(self.get_snapshot_path("24.4.2"))
             snapshot_data = yaml.safe_load(snapshot_refval)
             tmp_path = Path(tmp_dir).joinpath(f"{self._testMethodName}.json")
             with open(tmp_path, "w") as f:
@@ -118,9 +118,9 @@ class ReleaseTests(BackupTestCase):
             with open(tmp_path, "rb") as f:
                 import_in_global_scope(f, printer=NOOP_PRINTER)
 
-    def test_at_24_4_0(self):
+    def test_at_24_4_1(self):
         with tempfile.TemporaryDirectory() as tmp_dir:
-            _, snapshot_refval = read_snapshot_file(self.get_snapshot_path("24.4.0"))
+            _, snapshot_refval = read_snapshot_file(self.get_snapshot_path("24.4.1"))
             snapshot_data = yaml.safe_load(snapshot_refval)
             tmp_path = Path(tmp_dir).joinpath(f"{self._testMethodName}.json")
             with open(tmp_path, "w") as f:
@@ -129,9 +129,9 @@ class ReleaseTests(BackupTestCase):
             with open(tmp_path, "rb") as f:
                 import_in_global_scope(f, printer=NOOP_PRINTER)
 
-    def test_at_24_3_0(self):
+    def test_at_24_4_0(self):
         with tempfile.TemporaryDirectory() as tmp_dir:
-            _, snapshot_refval = read_snapshot_file(self.get_snapshot_path("24.3.0"))
+            _, snapshot_refval = read_snapshot_file(self.get_snapshot_path("24.4.0"))
             snapshot_data = yaml.safe_load(snapshot_refval)
             tmp_path = Path(tmp_dir).joinpath(f"{self._testMethodName}.json")
             with open(tmp_path, "w") as f:

Некоторые файлы не были показаны из-за большого количества измененных файлов