Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions crates/pixi_config/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ const EXPERIMENTAL: &str = "experimental";
#[serde(rename_all = "lowercase")]
pub enum TlsRootCerts {
/// Use bundled Mozilla root certificates
#[default]
Webpki,
/// Use the system's native certificate store
Native,
/// Use both webpki and native certificates
#[default]
All,
}

Expand Down Expand Up @@ -2791,14 +2791,6 @@ UNUSED = "unused"
config.set("unknown-key", None).unwrap_err();
}

#[test]
fn test_tls_root_certs_default() {
let config = Config::default();
// Default should be Webpki (bundled Mozilla roots)
assert_eq!(config.tls_root_certs(), TlsRootCerts::Webpki);
assert_eq!(config.tls_root_certs, None);
}

#[rstest]
#[case("pinning-strategy", None, None)]
#[case("pinning-strategy", Some("semver".to_string()), Some(PinningStrategy::Semver))]
Expand Down
Loading