Generalize benchmark qualification environment
This commit is contained in:
parent
c1b40f923a
commit
2d4ec2ed8b
1 changed files with 91 additions and 52 deletions
|
|
@ -203,7 +203,7 @@ fn repository_example_loads_with_ipv4_normalization_and_private_denies() {
|
|||
resolved
|
||||
.effective_allow_prefixes()
|
||||
.iter()
|
||||
.any(|prefix| prefix.address() == [1, 1, 1, 1] && prefix.prefix_length() == 32)
|
||||
.any(|prefix| prefix.address() == [192, 0, 2, 53] && prefix.prefix_length() == 32)
|
||||
);
|
||||
for (address, length) in [
|
||||
([10, 0, 0, 0], 8),
|
||||
|
|
@ -281,9 +281,11 @@ fn selected_profile_loads_into_confined_nonserializable_authority() {
|
|||
let resolved = load_trusted_configuration(request(&tree, config, environment)).unwrap();
|
||||
|
||||
assert_eq!(resolved.selected_profile(), "default");
|
||||
assert_eq!(
|
||||
resolved.effective_allow_prefixes()[0].address(),
|
||||
[1, 2, 3, 0]
|
||||
assert!(
|
||||
resolved
|
||||
.effective_allow_prefixes()
|
||||
.iter()
|
||||
.any(|prefix| prefix.address() == [192, 0, 2, 0] && prefix.prefix_length() == 24)
|
||||
);
|
||||
assert!(
|
||||
resolved
|
||||
|
|
|
|||
Loading…
Reference in a new issue