0.29.7
This commit is contained in:
1 parent
ad95bfb050
commit
1431dd47f0
62 files changed
+1360
-198
No files matched your search
@@ -60,6 +60,7 @@ mod cache_revision_tests {
|
||||
wire_only.cache.expose_hits = !wire_only.cache.expose_hits;
|
||||
wire_only.cache.expose_cache_status = !wire_only.cache.expose_cache_status;
|
||||
wire_only.cache.expose_resident_age = !wire_only.cache.expose_resident_age;
|
||||
wire_only.cache.expose_only_hits = !wire_only.cache.expose_only_hits;
|
||||
wire_only.cache.via_header = Some("RustProxy edge".into());
|
||||
assert_eq!(cache_revision(&wire_only), identity);
|
||||
assert!(matches!(
|
||||
@@ -67,6 +68,11 @@ mod cache_revision_tests {
|
||||
CacheInvalidation::None
|
||||
));
|
||||
|
||||
let mut vhost_diagnostics = base.clone();
|
||||
vhost_diagnostics.vhosts[0].cache.expose_only_hits = Some(true);
|
||||
assert_eq!(cache_revision(&vhost_diagnostics), identity);
|
||||
assert!(matches!(cache_invalidation(&base, &vhost_diagnostics), CacheInvalidation::None));
|
||||
|
||||
let mut cache = base.clone();
|
||||
cache.cache.max_entries += 1;
|
||||
let cache_identity = cache_revision(&cache);
|
||||
|
||||
Reference in new issue
Block a user