(profile: str, *, with_base_url: Optional[str])
| 373 | bound = "https://bound.example" |
| 374 | |
| 375 | def write(profile: str, *, with_base_url: Optional[str]) -> None: |
| 376 | cfg: Dict[str, Any] = { |
| 377 | "type": "workload_identity", |
| 378 | "identity_token": {"source": "file", "path": str(jwt_path)}, |
| 379 | "federation_rule_id": "fdrl_x", |
| 380 | "organization_id": "org", |
| 381 | } |
| 382 | if with_base_url is not None: |
| 383 | cfg["base_url"] = with_base_url |
| 384 | _write_profile(tmp_path, profile, config=cfg) |
| 385 | |
| 386 | # config omits base_url, no bind → DEFAULT_BASE_URL |
| 387 | write("p0", with_base_url=None) |
no test coverage detected