fix(agent99): verify host112 and dynamic replicas
This commit is contained in:
@@ -590,6 +590,8 @@ def test_unhealthy_executor_exit_one_is_delivered_readback_not_transport_failure
|
||||
synthetic = read(ROOT / "agent99-synthetic-tests.ps1")
|
||||
|
||||
assert function.count('case "$executor_exit" in 0|1) exit 0') == 3
|
||||
assert function.count("printf ''executor_exit_code=%s\\n''") == 3
|
||||
assert 'printf "executor_exit_code=%s\\n"' not in function
|
||||
assert "$before.executorExitCode -in @(\"0\", \"1\")" in function
|
||||
assert "$before.readbackPresent -and" in function
|
||||
assert "$before.identityMatches -and" in function
|
||||
@@ -598,6 +600,17 @@ def test_unhealthy_executor_exit_one_is_delivered_readback_not_transport_failure
|
||||
assert "host112_general_candidate_not_blocked_by_healthy_manager" in synthetic
|
||||
|
||||
|
||||
def test_ssh_transport_materializes_process_handle_before_waiting() -> None:
|
||||
control = read(CONTROL)
|
||||
function = control[control.index("function Invoke-SshText") :]
|
||||
function = function[: function.index("function Quote-ShSingle")]
|
||||
|
||||
assert "$null = $process.Handle" in function
|
||||
assert function.index("$null = $process.Handle") < function.index(
|
||||
"$process.WaitForExit($TimeoutSeconds * 1000)"
|
||||
)
|
||||
|
||||
|
||||
def test_general_guest_candidate_is_not_blocked_by_manager_candidate() -> None:
|
||||
control = read(CONTROL)
|
||||
function = control[control.index("function Invoke-AgentHost112GuestRecovery") :]
|
||||
|
||||
Reference in New Issue
Block a user