Fix flaky HTTP redact test (#6583)

This commit is contained in:
Charlie Marsh 2024-08-24 09:49:29 -04:00 committed by GitHub
parent 8ee53a9e38
commit 1fc45db082
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -5521,8 +5521,9 @@ fn lock_redact_https() -> Result<()> {
Resolved 2 packages in [TIME] Resolved 2 packages in [TIME]
"###); "###);
// Installing from the lockfile should fail without credentials. // Installing from the lockfile should fail without credentials. Omit the root, so that we fail
uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--index-url").arg("https://pypi-proxy.fly.dev/basic-auth/simple"), @r###" // when installing `iniconfig`, rather than when building `foo`.
uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--index-url").arg("https://pypi-proxy.fly.dev/basic-auth/simple").arg("--no-install-project"), @r###"
success: false success: false
exit_code: 2 exit_code: 2
----- stdout ----- ----- stdout -----
@ -5534,7 +5535,7 @@ fn lock_redact_https() -> Result<()> {
"###); "###);
// Installing from the lockfile should fail without an index. // Installing from the lockfile should fail without an index.
uv_snapshot!(context.filters(), context.sync().arg("--frozen"), @r###" uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--no-install-project"), @r###"
success: false success: false
exit_code: 2 exit_code: 2
----- stdout ----- ----- stdout -----
@ -5573,7 +5574,7 @@ fn lock_redact_https() -> Result<()> {
"###); "###);
// Installing without credentials will fail without a cache. // Installing without credentials will fail without a cache.
uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--reinstall").arg("--no-cache"), @r###" uv_snapshot!(context.filters(), context.sync().arg("--frozen").arg("--reinstall").arg("--no-cache").arg("--no-install-project"), @r###"
success: false success: false
exit_code: 2 exit_code: 2
----- stdout ----- ----- stdout -----