feat(delivery): expose dispatch channel readback
This commit is contained in:
@@ -34,6 +34,16 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
|
||||
data["summary"]["production_deploy_authorized_dispatch_channel_ready"]
|
||||
is False
|
||||
)
|
||||
assert data["summary"]["production_deploy_manual_run_button_visible"] is False
|
||||
assert data["summary"]["production_deploy_gitea_sign_in_required"] is True
|
||||
assert (
|
||||
data["summary"]["production_deploy_dispatch_without_token_http_status"]
|
||||
== 401
|
||||
)
|
||||
assert (
|
||||
data["summary"]["production_deploy_dispatch_without_token_message"]
|
||||
== "token is required"
|
||||
)
|
||||
assert data["summary"]["production_deploy_hard_blocker_count"] == 3
|
||||
assert data["summary"]["production_deploy_latest_visible_cd_run_id"] == "3853"
|
||||
assert data["summary"]["production_deploy_latest_visible_cd_run_status"] == (
|
||||
@@ -127,7 +137,7 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
|
||||
assert lanes["production_deploy"]["blocker_count"] == 3
|
||||
assert lanes["production_deploy"]["metric"][
|
||||
"observed_source_control_main_short_sha"
|
||||
] == "666454212ac9"
|
||||
] == "b754e8a1a46a"
|
||||
assert lanes["production_deploy"]["metric"][
|
||||
"production_image_tag_short_sha"
|
||||
] == "af45811e87"
|
||||
@@ -140,6 +150,18 @@ def test_delivery_closure_workbench_endpoint_returns_product_summary():
|
||||
lanes["production_deploy"]["metric"]["authorized_dispatch_channel_ready"]
|
||||
is False
|
||||
)
|
||||
assert lanes["production_deploy"]["metric"]["manual_run_button_visible"] is False
|
||||
assert lanes["production_deploy"]["metric"]["gitea_sign_in_required"] is True
|
||||
assert (
|
||||
lanes["production_deploy"]["metric"][
|
||||
"dispatch_without_token_http_status"
|
||||
]
|
||||
== 401
|
||||
)
|
||||
assert (
|
||||
lanes["production_deploy"]["metric"]["dispatch_without_token_message"]
|
||||
== "token is required"
|
||||
)
|
||||
assert lanes["production_deploy"]["metric"]["latest_visible_cd_run_id"] == "3853"
|
||||
assert (
|
||||
lanes["production_deploy"]["metric"]["latest_visible_cd_run_status"]
|
||||
|
||||
Reference in New Issue
Block a user