fix(ci): add crl_path to test TlsConfig and fix clippy field_reassign_with_default
This commit is contained in:
@ -401,9 +401,15 @@ mod tests {
|
||||
let initial = shared.load();
|
||||
assert_eq!(initial.status, CrlStatus::Missing);
|
||||
|
||||
let mut new_state = CrlState::default();
|
||||
new_state.status = CrlStatus::Valid;
|
||||
new_state.revoked_serials.insert("abc".to_string());
|
||||
let new_state = CrlState {
|
||||
status: CrlStatus::Valid,
|
||||
revoked_serials: {
|
||||
let mut set = HashSet::new();
|
||||
set.insert("abc".to_string());
|
||||
set
|
||||
},
|
||||
..Default::default()
|
||||
};
|
||||
shared.store(Arc::new(new_state));
|
||||
|
||||
let updated = shared.load();
|
||||
|
||||
@ -78,6 +78,7 @@ fn build_tls_config(cert_dir: &std::path::Path) -> TlsConfig {
|
||||
.to_string_lossy()
|
||||
.to_string(),
|
||||
min_tls_version: "1.3".to_string(),
|
||||
crl_path: String::new(), // No CRL in E2E tests
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user