v0.37.3
This commit is contained in:
1 parent
5e57e48c6a
commit
df0e39b899
25 files changed
+319
-97
No files matched your search
@@ -61,6 +61,35 @@ mod renewal_regressions {
|
||||
app.tunnels.wait().await;
|
||||
app.store.close().await;
|
||||
}
|
||||
#[tokio::test]
|
||||
async fn docker_reconcile_skips_unchanged_effective_configuration() {
|
||||
let (app, directory, _original, _output) = configured(true).await;
|
||||
app.reconcile_docker().await.unwrap();
|
||||
let first = app.config.load_full();
|
||||
app.reconcile_docker().await.unwrap();
|
||||
assert!(Arc::ptr_eq(&first, &app.config.load_full()));
|
||||
std::thread::sleep(Duration::from_millis(20));
|
||||
let certs = directory.path().join("certs");
|
||||
for extension in ["pem", "key"] {
|
||||
std::fs::copy(
|
||||
certs.join(format!("acme-next.{extension}")),
|
||||
certs.join(format!("acme-old.{extension}")),
|
||||
)
|
||||
.unwrap();
|
||||
}
|
||||
app.reconcile_docker().await.unwrap();
|
||||
let reloaded = app.config.load_full();
|
||||
assert!(!Arc::ptr_eq(&first, &reloaded));
|
||||
app.reconcile_docker().await.unwrap();
|
||||
assert!(Arc::ptr_eq(&reloaded, &app.config.load_full()));
|
||||
app.reload_certificates().await.unwrap();
|
||||
let explicit = app.config.load_full();
|
||||
assert!(!Arc::ptr_eq(&reloaded, &explicit));
|
||||
app.reconcile_docker().await.unwrap();
|
||||
assert!(Arc::ptr_eq(&explicit, &app.config.load_full()));
|
||||
stop(app).await;
|
||||
}
|
||||
|
||||
#[tokio::test]
|
||||
async fn renewed_pair_publishes_one_revision_and_preserves_bindings_and_old_files() {
|
||||
let (app, _directory, original, output) = configured(true).await;
|
||||
|
||||
Reference in new issue
Block a user