fix(recovery): bind host112 closure artifacts
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m35s
CD Pipeline / build-and-deploy (push) Failing after 7m35s
CD Pipeline / post-deploy-checks (push) Has been skipped
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 16s
Some checks failed
CD Pipeline / workflow-shape (push) Successful in 0s
CD Pipeline / cancel-stale-cd (push) Has been skipped
CD Pipeline / tests (push) Successful in 2m35s
CD Pipeline / build-and-deploy (push) Failing after 7m35s
CD Pipeline / post-deploy-checks (push) Has been skipped
AWOOOI Harbor 110 Local Repair / workflow-shape (push) Successful in 1s
AWOOOI Harbor 110 Local Repair / harbor-110-local-repair (push) Successful in 16s
This commit is contained in:
@@ -126,15 +126,21 @@ def test_agent99_host112_recovery_is_allowlisted_and_independently_verified() ->
|
||||
function = source[source.index("function Convert-AgentHost112GuestReadback") :]
|
||||
function = function[: function.index("function Test-HostReachability")]
|
||||
|
||||
assert '"/usr/local/sbin/awoooi-host112-guest-readiness --check --trace-id $effectiveTraceId --run-id $effectiveRunId --work-item-id $effectiveWorkItemId"' in function
|
||||
assert '"sudo -n /usr/local/sbin/awoooi-host112-guest-readiness --apply --trace-id $effectiveTraceId --run-id $effectiveRunId --work-item-id $effectiveWorkItemId"' in function
|
||||
assert function.count("Invoke-HostSshText $targetHost $checkCommand") == 2
|
||||
assert 'schemaVersion = "agent99_host112_guest_recovery_v2"' in function
|
||||
assert '$before.managerPreflightStatus -eq "ready"' in function
|
||||
assert "/usr/local/sbin/awoooi-host112-guest-readiness --check --trace-id {0} --run-id {1} --work-item-id {2}" in function
|
||||
assert "sudo -n /usr/local/sbin/awoooi-host112-guest-readiness --dry-run --trace-id {0} --run-id {1} --work-item-id {2}" in function
|
||||
assert "sudo -n /usr/local/sbin/awoooi-host112-guest-readiness --apply --trace-id {0} --run-id {1} --work-item-id {2}" in function
|
||||
assert function.count("Invoke-AgentHost112SshText $checkCommand") == 2
|
||||
assert function.count("Invoke-AgentHost112SshText $dryRunCommand") == 2
|
||||
assert 'schemaVersion = "agent99_host112_guest_recovery_v3"' in function
|
||||
assert '$dryRun.managerPreflightStatus -eq "ready"' in function
|
||||
assert '$before.transportOk -and' in function
|
||||
assert '$before.identityMatches -and' in function
|
||||
assert "Invoke-HostSshText $targetHost $applyCommand 590 1" in function
|
||||
assert 'receiptStatus -eq "written"' in function
|
||||
assert "Invoke-AgentHost112SshText $applyCommand $script:Agent99Host112ApplyTransportTimeoutSeconds 1" in function
|
||||
assert 'receiptStatus -eq "written_immutable"' in function
|
||||
assert "$applyReceipt.durableReadbackReceiptLinkMatch" in function
|
||||
assert "$applyReceipt.durableReadbackTerminalMatch" in function
|
||||
assert "$before.durableReadbackReceiptLinkMatch" in function
|
||||
assert "$before.durableReadbackTerminalMatch" in function
|
||||
assert 'verifier = "wazuh_manager_service_process_agent_event_1514_enrollment_1515_and_api_55000"' in function
|
||||
for verifier_field in (
|
||||
"wazuhAnalysisdProcessCount",
|
||||
|
||||
Reference in New Issue
Block a user