Remove phase vocabulary from Lazaret interfaces
This commit is contained in:
parent
3f9b1b3543
commit
e7dd95aea6
1 changed files with 547 additions and 579 deletions
|
|
@ -58,7 +58,7 @@ fn write_configuration(tree: &TestTree, body: &str) -> PathBuf {
|
|||
}
|
||||
|
||||
fn layout() -> SandboxLayoutV1 {
|
||||
SandboxLayoutV1::from_production_layout([
|
||||
SandboxLayoutV1::from_protected_destinations([
|
||||
"/workspace".to_owned(),
|
||||
"/proc".to_owned(),
|
||||
"/sys".to_owned(),
|
||||
|
|
@ -187,14 +187,14 @@ volumes = [{ host = "/source", container = "/root/source", kind = "socket" }]
|
|||
|
||||
#[test]
|
||||
fn sandbox_layout_is_closed_normalized_and_requires_workspace() {
|
||||
assert!(SandboxLayoutV1::from_production_layout(["/proc".into()]).is_err());
|
||||
assert!(SandboxLayoutV1::from_protected_destinations(["/proc".into()]).is_err());
|
||||
assert!(
|
||||
SandboxLayoutV1::from_production_layout(["/workspace".into(), "/workspace".into()])
|
||||
SandboxLayoutV1::from_protected_destinations(["/workspace".into(), "/workspace".into()])
|
||||
.is_err()
|
||||
);
|
||||
for invalid in ["workspace", "/", "/workspace/", "/workspace/../control"] {
|
||||
assert!(
|
||||
SandboxLayoutV1::from_production_layout(["/workspace".into(), invalid.into(),])
|
||||
SandboxLayoutV1::from_protected_destinations(["/workspace".into(), invalid.into(),])
|
||||
.is_err()
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue