Checks if all deployments named in names have at least 1 living replica.
(ids: List[DeploymentID])
| 22 | |
| 23 | |
| 24 | def assert_deployments_live(ids: List[DeploymentID]): |
| 25 | """Checks if all deployments named in names have at least 1 living replica.""" |
| 26 | |
| 27 | running_actor_names = [actor["name"] for actor in list_actors()] |
| 28 | |
| 29 | for deployment_id in ids: |
| 30 | prefix = f"{deployment_id.app_name}#{deployment_id.name}" |
| 31 | msg = f"Deployment {deployment_id} is not live" |
| 32 | assert any(prefix in actor_name for actor_name in running_actor_names), msg |
| 33 | |
| 34 | |
| 35 | def check_http_response( |
no test coverage detected
searching dependent graphs…