test: expect the codewhale-hq repo in encoded work-target URLs

59e941a51 rewrote the git remotes these tests feed in
([email protected]:codewhale-hq/CodeWhale.git) but not the URL-encoded
expectations (Hmbown%2FCodeWhale), so
control_hosted_work_target_resolves_and_never_echoes_credentials and
remote_env_open_encodes_branch_and_never_echoes_credentials failed.

Validation: RUST_MIN_STACK=8388608 cargo test -p codewhale-tui --lib --
commands:: session_manager:: session_export:: persistence_actor::
work_graph:: thread_history: 1403 passed; 0 failed; 2 ignored (also covers
the #6842 slice 91ad8c57a). No Hmbown%2F references remain.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: CodeWhale Bot <[email protected]>
This commit is contained in:
CodeWhale BotandClaude Opus 5.5 committed 2026-10-04 20:34:11 -07:00
1 parent 91ad8c57ac
commit 54f2b1a691
2 files changed
+6 -6

No files matched your search

+1 -1
View File
@@ -7078,7 +7078,7 @@ mod tests {
assert_eq!(target.branch, "main");
assert_eq!(
target.url,
"https://app.codewhale.net/work?repo=Hmbown%2FCodeWhale&branch=main"
"https://app.codewhale.net/work?repo=codewhale-hq%2FCodeWhale&branch=main"
);
assert!(!target.url.contains(secret));
assert!(!target.repo.contains(secret));
@@ -447,7 +447,7 @@ fn remote_env_open_encodes_branch_and_never_echoes_credentials() {
assert!(!result.is_error, "{result:?}");
assert_eq!(
external_url(&result),
"https://app.codewhale.net/work?repo=Hmbown%2FCodeWhale&branch=feature%2Fmobile%26cloud-%7Burl%7D"
"https://app.codewhale.net/work?repo=codewhale-hq%2FCodeWhale&branch=feature%2Fmobile%26cloud-%7Burl%7D"
);
assert!(result_text(&result).contains("feature/mobile&cloud-{url}"));
assert!(!external_url(&result).contains(secret));
@@ -459,17 +459,17 @@ fn remote_env_supported_https_ssh_and_cnb_origins_remain_accepted() {
for (origin, expected) in [
(
"https://github.com/codewhale-hq/CodeWhale.git",
"Hmbown%2FCodeWhale",
"codewhale-hq%2FCodeWhale",
),
(
"https://user:[email protected]/codewhale-hq/CodeWhale",
"Hmbown%2FCodeWhale",
"codewhale-hq%2FCodeWhale",
),
(
"ssh://[email protected]/codewhale-hq/CodeWhale.git",
"Hmbown%2FCodeWhale",
"codewhale-hq%2FCodeWhale",
),
("[email protected]:codewhale-hq/CodeWhale.git", "Hmbown%2FCodeWhale"),
("[email protected]:codewhale-hq/CodeWhale.git", "codewhale-hq%2FCodeWhale"),
("https://cnb.cool/whale/codewhale.git", "whale%2Fcodewhale"),
(
"ssh://[email protected]:2222/whale/codewhale.git",