a2a-source-edit: write tests/test_agent.py
This commit is contained in:
@@ -161,7 +161,7 @@ async def test_end_to_end_deterministic_crashing_image_scenario(ctx, workspace):
|
||||
assert workspace.exists("outputs/incidents/checkout-001/diagnosis.json")
|
||||
|
||||
plan = await agent.plan_remediation(ctx, "checkout-001", "rollback the deployment to the previous image")
|
||||
assert any(step.action_type == "kubernetes.rollback_deployment" for step in plan.steps)
|
||||
assert any(step["action_type"] == "kubernetes.rollback_deployment" for step in plan["steps"])
|
||||
|
||||
denied = await agent.execute_remediation(ctx, "checkout-001", "outputs/incidents/checkout-001/remediation-plan.json", [plan.steps[0].id], "NO")
|
||||
assert denied.status == "denied"
|
||||
|
||||
Reference in New Issue
Block a user