style: rustfmt after the registry domain migration
The release gate failed cargo-fmt. The domain that replaced the IP-based registry is longer, pushing several test assertions past the width limit, so rustfmt wanted to re-wrap them. Pure line re-wrapping — no semantic change. Caught by the pre-flight gate rather than after tagging, which is what it is for. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
f6f455fa31
commit
f1b61731ec
@@ -368,10 +368,7 @@ mod tests {
|
||||
let stack = vec!["archy-btcpay-db".to_string(), "archy-nbxplorer".to_string()];
|
||||
assert_eq!(select_backend_container("btcpay-server", &stack), None);
|
||||
|
||||
let with_backend = vec![
|
||||
"archy-btcpay-db".to_string(),
|
||||
"btcpay-server".to_string(),
|
||||
];
|
||||
let with_backend = vec!["archy-btcpay-db".to_string(), "btcpay-server".to_string()];
|
||||
assert_eq!(
|
||||
select_backend_container("btcpay-server", &with_backend),
|
||||
Some("btcpay-server")
|
||||
@@ -403,11 +400,15 @@ mod tests {
|
||||
Some("28.4")
|
||||
);
|
||||
assert_eq!(
|
||||
image_tag("source.archipelago-foundation.org/lfg2025/bitcoin-knots:29.3.knots20260508").as_deref(),
|
||||
image_tag("source.archipelago-foundation.org/lfg2025/bitcoin-knots:29.3.knots20260508")
|
||||
.as_deref(),
|
||||
Some("29.3.knots20260508")
|
||||
);
|
||||
// No tag => None (don't mistake the registry port for a tag).
|
||||
assert_eq!(image_tag("source.archipelago-foundation.org/lfg2025/bitcoin"), None);
|
||||
assert_eq!(
|
||||
image_tag("source.archipelago-foundation.org/lfg2025/bitcoin"),
|
||||
None
|
||||
);
|
||||
assert_eq!(
|
||||
image_tag("docker.io/library/redis:7"),
|
||||
Some("7".to_string())
|
||||
|
||||
@@ -373,7 +373,9 @@ mod tests {
|
||||
#[test]
|
||||
fn test_extract_version() {
|
||||
assert_eq!(
|
||||
extract_version_from_image("source.archipelago-foundation.org/lfg2025/lnd:v0.18.4-beta"),
|
||||
extract_version_from_image(
|
||||
"source.archipelago-foundation.org/lfg2025/lnd:v0.18.4-beta"
|
||||
),
|
||||
"v0.18.4-beta"
|
||||
);
|
||||
assert_eq!(
|
||||
@@ -385,7 +387,9 @@ mod tests {
|
||||
"latest"
|
||||
);
|
||||
assert_eq!(
|
||||
extract_version_from_image("source.archipelago-foundation.org/lfg2025/bitcoin-knots:latest"),
|
||||
extract_version_from_image(
|
||||
"source.archipelago-foundation.org/lfg2025/bitcoin-knots:latest"
|
||||
),
|
||||
"latest"
|
||||
);
|
||||
}
|
||||
@@ -393,11 +397,15 @@ mod tests {
|
||||
#[test]
|
||||
fn strips_registry_and_tag_for_image_identity() {
|
||||
assert_eq!(
|
||||
image_without_registry_or_tag("source.archipelago-foundation.org/lfg2025/lnd:v0.18.4-beta"),
|
||||
image_without_registry_or_tag(
|
||||
"source.archipelago-foundation.org/lfg2025/lnd:v0.18.4-beta"
|
||||
),
|
||||
"lfg2025/lnd"
|
||||
);
|
||||
assert_eq!(
|
||||
image_without_registry_or_tag("source.archipelago-foundation.org/lfg2025/lnd:v0.18.4-beta"),
|
||||
image_without_registry_or_tag(
|
||||
"source.archipelago-foundation.org/lfg2025/lnd:v0.18.4-beta"
|
||||
),
|
||||
"lfg2025/lnd"
|
||||
);
|
||||
}
|
||||
|
||||
@@ -984,7 +984,9 @@ mod tests {
|
||||
let s = sample_unit().render();
|
||||
assert!(s.contains("[Container]"));
|
||||
assert!(s.contains("ContainerName=archy-bitcoin-ui"));
|
||||
assert!(s.contains("Image=source.archipelago-foundation.org/lfg2025/bitcoin-ui:1.7.84-alpha"));
|
||||
assert!(
|
||||
s.contains("Image=source.archipelago-foundation.org/lfg2025/bitcoin-ui:1.7.84-alpha")
|
||||
);
|
||||
assert!(s.contains("Pull=never"));
|
||||
assert!(s.contains("Network=host"));
|
||||
assert!(s.contains("DropCapability=ALL"));
|
||||
|
||||
Reference in New Issue
Block a user