test(os): cover recovery and private-network gates
This commit is contained in:
parent
44bccdd2be
commit
143457cec1
1 changed files with 14 additions and 0 deletions
|
|
@ -349,6 +349,13 @@ fn rejects_unregistered_schema_continuity_and_native_exit_contracts() {
|
|||
.to_string()
|
||||
.contains("GHNRP"));
|
||||
|
||||
let mut manifest = load_world_manifest(&world_seed()).expect("world seed should parse");
|
||||
manifest.native_recovery.beacon_sector_count = 1;
|
||||
assert!(validate_world_manifest(&manifest)
|
||||
.expect_err("the recovery beacon must remain exactly two sectors")
|
||||
.to_string()
|
||||
.contains("1024-byte beacon"));
|
||||
|
||||
let mut manifest = load_world_manifest(&world_seed()).expect("world seed should parse");
|
||||
manifest.native_recovery.beacon_lba_start = 67;
|
||||
assert!(validate_world_manifest(&manifest)
|
||||
|
|
@ -356,6 +363,13 @@ fn rejects_unregistered_schema_continuity_and_native_exit_contracts() {
|
|||
.to_string()
|
||||
.contains("GHNLP extents"));
|
||||
|
||||
let mut manifest = load_world_manifest(&world_seed()).expect("world seed should parse");
|
||||
manifest.native_network.public_nat_address_recorded_in_world = true;
|
||||
assert!(validate_world_manifest(&manifest)
|
||||
.expect_err("public NAT addressing must not enter the world manifest")
|
||||
.to_string()
|
||||
.contains("private virtio facts"));
|
||||
|
||||
let mut manifest = load_world_manifest(&world_seed()).expect("world seed should parse");
|
||||
manifest.persona_birth.persona_state = "BORN".to_owned();
|
||||
assert!(validate_world_manifest(&manifest)
|
||||
|
|
|
|||
Loading…
Reference in a new issue