Skip to content

Commit b42d451

Browse files
committed
orchestratord test: Change upgrade order
1 parent 13e7ec6 commit b42d451

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/orchestratord/mzcompose.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ def check() -> None:
505505
)
506506
expected = f"{image_registry}/environmentd:{self.value}"
507507
assert (
508-
image == expected
508+
image == expected or f"ghcr.io/materializeinc/{image}" == expected
509509
), f"Expected environmentd image {expected}, but found {image}"
510510

511511
retry(check, 240)
@@ -1806,18 +1806,14 @@ def run_scenario(
18061806
mod.modify(definition)
18071807
if mod.value in mod.failed_reconciliation_values():
18081808
expect_fail = True
1809-
if not initialize:
1810-
definition["materialize"]["spec"][
1811-
"rolloutStrategy"
1812-
] = "ImmediatelyPromoteCausingDowntime"
1813-
definition["materialize"]["spec"]["requestRollout"] = str(uuid.uuid4())
1814-
run(definition, expect_fail)
18151809
if initialize:
18161810
init(definition)
18171811
run(definition, expect_fail)
18181812
initialize = False # only initialize once
18191813
else:
18201814
upgrade(definition, expect_fail)
1815+
definition["materialize"]["spec"]["requestRollout"] = str(uuid.uuid4())
1816+
run(definition, expect_fail)
18211817
mod_dict = {mod.__class__: mod.value for mod in mods}
18221818
for subclass in all_subclasses(Modification):
18231819
if subclass not in mod_dict:

0 commit comments

Comments
 (0)