(profile: str, *, with_base_url: Optional[str])
| 358 | bound = "https://bound.example" |
| 359 | |
| 360 | def write(profile: str, *, with_base_url: Optional[str]) -> None: |
| 361 | cfg: Dict[str, Any] = { |
| 362 | "type": "workload_identity", |
| 363 | "identity_token": {"source": "file", "path": str(jwt_path)}, |
| 364 | "federation_rule_id": "fdrl_x", |
| 365 | "organization_id": "org", |
| 366 | } |
| 367 | if with_base_url is not None: |
| 368 | cfg["base_url"] = with_base_url |
| 369 | _write_profile(tmp_path, profile, config=cfg) |
| 370 | |
| 371 | # config omits base_url, no bind → DEFAULT_BASE_URL |
| 372 | write("p0", with_base_url=None) |
no test coverage detected