()
| 3714 | |
| 3715 | #[test] |
| 3716 | fn apply_auth_uses_stored_token() { |
| 3717 | let tmp = tempfile::tempdir().unwrap(); |
| 3718 | with_tmp_xdg(tmp.path(), || { |
| 3719 | store_gateway_metadata( |
| 3720 | "edge-gateway", |
| 3721 | &edge_metadata("edge-gateway", "https://gw.example.com"), |
| 3722 | ) |
| 3723 | .unwrap(); |
| 3724 | store_edge_token("edge-gateway", "token-123").unwrap(); |
| 3725 | |
| 3726 | let mut tls = TlsOptions::default(); |
| 3727 | apply_auth(&mut tls, "edge-gateway"); |
| 3728 | |
| 3729 | assert_eq!(tls.edge_token.as_deref(), Some("token-123")); |
| 3730 | }); |
| 3731 | } |
| 3732 | |
| 3733 | /// Verify the flag names the TUI uses to build its `ProxyCommand` are |
| 3734 | /// accepted by the `SshProxy` subcommand and land in the right fields. |
nothing calls this directly
no test coverage detected