-
Notifications
You must be signed in to change notification settings - Fork 347
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add domainname test Signed-off-by: higuruchi <[email protected]> * Fix error message from binary to string Signed-off-by: higuruchi <[email protected]> * Update runc binary to v1.1.8 from 1.1.0 for domainname test Signed-off-by: higuruchi <[email protected]> * Move missing domainname test Signed-off-by: Yashodhan Joshi <[email protected]> * Add TODO comments for self-notes Signed-off-by: Yashodhan Joshi <[email protected]> --------- Signed-off-by: higuruchi <[email protected]> Signed-off-by: Yashodhan Joshi <[email protected]> Co-authored-by: Yashodhan Joshi <[email protected]>
- Loading branch information
Showing
7 changed files
with
88 additions
and
18 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use crate::utils::test_inside_container; | ||
use oci_spec::runtime::{ProcessBuilder, Spec, SpecBuilder}; | ||
use test_framework::{Test, TestGroup, TestResult}; | ||
|
||
fn get_spec(domainname: &str) -> Spec { | ||
SpecBuilder::default() | ||
.domainname(domainname) | ||
.process( | ||
ProcessBuilder::default() | ||
.args(vec![ | ||
"runtimetest".to_string(), | ||
"domainname_test".to_string(), | ||
]) | ||
.build() | ||
.expect("error in creating process config"), | ||
) | ||
.build() | ||
.unwrap() | ||
} | ||
|
||
fn set_domainname_test() -> TestResult { | ||
let spec = get_spec("domainname"); | ||
test_inside_container(spec, &|_| Ok(())) | ||
} | ||
|
||
pub fn get_domainname_tests() -> TestGroup { | ||
let mut tg = TestGroup::new("domainname_test"); | ||
let set_domainname_test = Test::new("set_domainname_test", Box::new(set_domainname_test)); | ||
tg.add(vec![Box::new(set_domainname_test)]); | ||
|
||
tg | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
pub mod cgroups; | ||
pub mod domainname; | ||
pub mod example; | ||
pub mod hooks; | ||
pub mod hostname; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters