bors 6ed64a7841 Auto merge of #14149 - eth3lbert:snapbox-registry, r=weihanglo
test: migrate registry and registry_auth to snapbox

### What does this PR try to resolve?

Part of https://github.com/rust-lang/cargo/issues/14039.

Migrate following to snapbox:

- `tests/testsuite/registry.rs`
- `tests/testsuite/registry_auth.rs`

### Additional information

Parameterize shared logic over inline snapshots to prevent the content from being appended multiple times in `str![]` when it's called multiple times within a reusable function.

Big thanks to `@weihanglo` for helping me out!
2024-06-27 18:09:02 +00:00
..