forge
Explore
Log in

Don't you dare go Hollow

Use a private repo for the suspended-token clone

Browse files at this commit

67a464bebcfaa5ffbd5ab77c8d55fa81957cd453Ahmet Kaan GümüşParent: 5863bbd
  • test
    • use a private repo for the suspended-token clone
Show full message
✅ test: use a private repo for the suspended-token clone
crates/forge-web/tests/git_e2e.rsmodified+2 -2
@@ -585,7 +585,7 @@ async fn suspended_user_token_is_refused_over_http_git() {
585 let (_server, ports) = launch(&dir, ports).await;585 let (_server, ports) = launch(&dir, ports).await;
586 let http = Http::new(ports.http);586 let http = Http::new(ports.http);
587 587
588- // Bob makes a token and a public repo of his own, and can push to it.588+ // Bob makes a token and a private repo (a public one would still clone anonymously) of his own, and can push to it.
589 let bob = login(&http, "bob", BOB_PW).await;589 let bob = login(&http, "bob", BOB_PW).await;
590 let bob_token = create_token(&http, &bob, "suspend-token").await;590 let bob_token = create_token(&http, &bob, "suspend-token").await;
591 let page = http.get_cookie("/new", &bob).await;591 let page = http.get_cookie("/new", &bob).await;
@@ -597,7 +597,7 @@ async fn suspended_user_token_is_refused_over_http_git() {
597 ("csrf", &csrf),597 ("csrf", &csrf),
598 ("name", "bobrepo"),598 ("name", "bobrepo"),
599 ("description", ""),599 ("description", ""),
600- ("visibility", "public"),600+ ("visibility", "private"),
601 ("default_branch", "main"),601 ("default_branch", "main"),
602 ],602 ],
603 Some(&bob),603 Some(&bob),