(profile: str, *, with_base_url: Optional[str])
| 391 | bound = "https://bound.example" |
| 392 | |
| 393 | def write(profile: str, *, with_base_url: Optional[str]) -> None: |
| 394 | cfg: Dict[str, Any] = { |
| 395 | "type": "workload_identity", |
| 396 | "identity_token": {"source": "file", "path": str(jwt_path)}, |
| 397 | "federation_rule_id": "fdrl_x", |
| 398 | "organization_id": "org", |
| 399 | } |
| 400 | if with_base_url is not None: |
| 401 | cfg["base_url"] = with_base_url |
| 402 | _write_profile(tmp_path, profile, config=cfg) |
| 403 | |
| 404 | # config omits base_url, no bind → DEFAULT_BASE_URL |
| 405 | write("p0", with_base_url=None) |
no test coverage detected