v0.43.1
This commit is contained in:
1 parent
5b6d4a7903
commit
4d1087e357
160 files changed
+2407
-1933
No files matched your search
@@ -21,7 +21,6 @@ mod routing_conditions_tests {
|
||||
compile(cfg, 0, &policy())
|
||||
}
|
||||
|
||||
/// The panel routing tester (routing.js) must agree with these cases.
|
||||
#[test]
|
||||
fn fixture_cases_select_the_expected_location() {
|
||||
let fixture: serde_json::Value = serde_json::from_str(FIXTURE).unwrap();
|
||||
@@ -74,7 +73,6 @@ mod routing_conditions_tests {
|
||||
.filter(|r| r.get("conditions").is_some())
|
||||
.count();
|
||||
assert!(conditional >= 5);
|
||||
// A conditional location never uses the cache.
|
||||
let headers = {
|
||||
let mut h = http::HeaderMap::new();
|
||||
h.insert("x-beta", "1".parse().unwrap());
|
||||
@@ -130,8 +128,6 @@ mod routing_conditions_tests {
|
||||
] {
|
||||
assert!(config(vhost(routes.clone())).is_err(), "{routes} should be rejected");
|
||||
}
|
||||
// A conditional copy before the unconditional regex is fine, and two
|
||||
// conditional prefixes may share a path.
|
||||
assert!(config(vhost(serde_json::json!([
|
||||
{"id":"y","match_type":"regex","path_prefix":"\\.js$","conditions":[{"source":"method","values":["GET"]}]},
|
||||
{"id":"x","match_type":"regex","path_prefix":"\\.js$"},
|
||||
|
||||
Reference in new issue
Block a user