fix(reboot): expose windows99 vmx repair action chain
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m25s
CD Pipeline / build-and-deploy (push) Successful in 4m43s
CD Pipeline / post-deploy-checks (push) Successful in 1m49s
All checks were successful
CD Pipeline / workflow-shape (push) Successful in 1s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m25s
CD Pipeline / build-and-deploy (push) Successful in 4m43s
CD Pipeline / post-deploy-checks (push) Successful in 1m49s
This commit is contained in:
@@ -74,6 +74,22 @@ def test_package_routes_missing_vmx_to_source_repair_check_mode() -> None:
|
||||
"192.168.0.111_Ubuntu_64-bit\\192.168.0.111_Ubuntu_64-bit.vmx'"
|
||||
)
|
||||
]
|
||||
assert payload["work_order_id"] == "windows99-vmx-source-repair-111"
|
||||
assert payload["action_stage"] == "source_repair_check_mode_ready"
|
||||
assert (
|
||||
payload["next_executable_step"]
|
||||
== "locate_or_relink_missing_vmx_source_check_mode"
|
||||
)
|
||||
assert payload["check_mode_allowed_by_this_package"] is True
|
||||
assert payload["rollback_required"] is True
|
||||
assert payload["vm_power_change_allowed"] is False
|
||||
assert payload["destructive_restore_allowed"] is False
|
||||
action_chain = payload["action_chain"]
|
||||
assert action_chain["target_selector"]["vm_aliases"] == ["111"]
|
||||
assert action_chain["source_of_truth_diff"][0]["current_state"] == (
|
||||
"expected_vmx_source_missing"
|
||||
)
|
||||
assert action_chain["check_mode"]["probe_command_count"] == 1
|
||||
assert row_by_alias["188"]["missing_vmx_source"] is False
|
||||
assert payload["operation_boundaries"]["vm_power_change_performed"] is False
|
||||
assert payload["operation_boundaries"]["secret_value_read"] is False
|
||||
@@ -110,6 +126,10 @@ def test_package_routes_power_only_to_autostart_check_mode() -> None:
|
||||
)
|
||||
assert payload["vm_rows"][0]["powered_off"] is True
|
||||
assert payload["apply_allowed_by_this_package"] is False
|
||||
assert payload["action_stage"] == "power_readback_check_mode_ready"
|
||||
assert payload["next_executable_step"] == (
|
||||
"build_vmware_autostart_power_readback_check_mode"
|
||||
)
|
||||
|
||||
|
||||
def test_cli_writes_package_file(tmp_path: Path) -> None:
|
||||
|
||||
Reference in New Issue
Block a user