fix(reboot): surface windows99 vmx execution readiness
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / build-and-deploy (push) Has been cancelled
CD Pipeline / post-deploy-checks (push) Has been cancelled
CD Pipeline / tests (push) Has been cancelled
This commit is contained in:
@@ -23,7 +23,27 @@ def _scorecard() -> dict:
|
||||
"readback": {
|
||||
"windows99_no_secret_collector_status": (
|
||||
"collected_windows99_vmware_verify_stdout"
|
||||
)
|
||||
),
|
||||
"windows99_no_secret_collector_readback_present": True,
|
||||
"windows99_no_secret_collector_ssh_batchmode_auth_ready": True,
|
||||
"windows99_no_secret_collector_remote_verify_attempted": True,
|
||||
"windows99_no_secret_collector_safe_next_step": (
|
||||
"commit_no_secret_verify_artifact_then_rerun_reboot_auto_"
|
||||
"recovery_slo_scorecard"
|
||||
),
|
||||
},
|
||||
"windows99_management_channel": {
|
||||
"remote_execution_channel_ready": False,
|
||||
"can_collect_vmware_verify_without_secret": False,
|
||||
"winrm_http_open": False,
|
||||
"winrm_https_open": False,
|
||||
"local_console_channel_reachable": True,
|
||||
"console_collection_channels": ["rdp_console", "hyperv_vmconnect"],
|
||||
"ssh_batch": {
|
||||
"checked": True,
|
||||
"ready": False,
|
||||
"status": "permission_denied",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -94,6 +114,27 @@ def test_windows99_vmx_source_repair_package_builder_is_check_mode_only() -> Non
|
||||
assert payload["operation_boundaries"]["secret_value_read"] is False
|
||||
assert payload["operation_boundaries"]["remote_write_performed"] is False
|
||||
assert payload["operation_boundaries"]["vm_power_change_performed"] is False
|
||||
assert payload["collector_status"] == "collected_windows99_vmware_verify_stdout"
|
||||
assert payload["collector_readback_present"] is True
|
||||
assert payload["collector_ssh_batchmode_auth_ready"] is True
|
||||
assert payload["collector_remote_verify_attempted"] is True
|
||||
assert payload["collector_safe_next_step"] == (
|
||||
"commit_no_secret_verify_artifact_then_rerun_reboot_auto_recovery_"
|
||||
"slo_scorecard"
|
||||
)
|
||||
assert payload["management_channel_ready"] is False
|
||||
assert payload["can_collect_vmware_verify_without_secret"] is False
|
||||
assert payload["ssh_batch_ready"] is False
|
||||
assert payload["ssh_batch_status"] == "permission_denied"
|
||||
assert payload["winrm_http_open"] is False
|
||||
assert payload["winrm_https_open"] is False
|
||||
assert payload["local_console_channel_reachable"] is True
|
||||
assert payload["console_collection_channels"] == [
|
||||
"rdp_console",
|
||||
"hyperv_vmconnect",
|
||||
]
|
||||
assert payload["collector_management_channel_conflict"] is True
|
||||
assert payload["effective_check_mode_execution_ready"] is False
|
||||
assert "read_windows_password_or_secret" in payload["forbidden_actions"]
|
||||
assert "vm_power_change" in payload["forbidden_actions"]
|
||||
|
||||
@@ -138,6 +179,10 @@ def test_windows99_vmx_source_repair_package_endpoint_returns_readback(
|
||||
assert payload["redacted_public_display_only"] is True
|
||||
assert payload["check_mode_probe_commands_executable"] is False
|
||||
assert payload["internal_console_package_required_for_execution"] is True
|
||||
assert payload["management_channel_ready"] is False
|
||||
assert payload["ssh_batch_status"] == "permission_denied"
|
||||
assert payload["collector_management_channel_conflict"] is True
|
||||
assert payload["effective_check_mode_execution_ready"] is False
|
||||
assert "192.168.0." not in response.text
|
||||
assert "host:dev-a_Ubuntu_64-bit" in response.text
|
||||
vm_rows = {row["alias"]: row for row in payload["vm_rows"]}
|
||||
|
||||
Reference in New Issue
Block a user