forked from dfinity/ic
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dderler/malicious-test' into 'master'
System test: ensure certifications with maliciously altered root hash are rejected See merge request dfinity-lab/public/ic!10870
- Loading branch information
Showing
10 changed files
with
488 additions
and
100 deletions.
There are no files selected for viewing
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
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,23 @@ | ||
#[rustfmt::skip] | ||
|
||
use anyhow::Result; | ||
|
||
use ic_tests::driver::new::group::SystemTestGroup; | ||
use ic_tests::message_routing::malicious_slices::Config; | ||
use ic_tests::systest; | ||
use std::time::Duration; | ||
|
||
const PER_TASK_TIMEOUT: Duration = Duration::from_secs(5 * 60); | ||
const OVERALL_TIMEOUT: Duration = Duration::from_secs(10 * 60); | ||
|
||
fn main() -> Result<()> { | ||
let config = Config::new(); | ||
let test = config.clone().test(); | ||
SystemTestGroup::new() | ||
.with_setup(config.build()) | ||
.add_test(systest!(test)) | ||
.with_timeout_per_test(PER_TASK_TIMEOUT) // each task (including the setup function) may take up to `per_task_timeout`. | ||
.with_overall_timeout(OVERALL_TIMEOUT) // the entire group may take up to `overall_timeout`. | ||
.execute_from_args()?; | ||
Ok(()) | ||
} |
Oops, something went wrong.