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.
- Loading branch information
1 parent
7742d96
commit a985cae
Showing
7 changed files
with
151 additions
and
16 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
43 changes: 43 additions & 0 deletions
43
rs/tests/testing_verification/spec_compliance_system_api_system_subnet_test.rs
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,43 @@ | ||
/* tag::catalog[] | ||
Title:: Specification compliance test | ||
Goal:: Ensure that the replica implementation is compliant with the formal specification. | ||
Runbook:: | ||
. Set up system system and application subnet containing two nodes each | ||
. Run ic-ref-test against application subnet | ||
Success:: The ic-ref-test binary does not return an error. | ||
end::catalog[] */ | ||
|
||
use anyhow::Result; | ||
|
||
use ic_registry_subnet_type::SubnetType; | ||
use ic_tests::driver::group::SystemTestGroup; | ||
use ic_tests::driver::test_env::TestEnv; | ||
use ic_tests::spec_compliance::{config_impl, test_subnet}; | ||
use ic_tests::systest; | ||
|
||
pub fn config(env: TestEnv) { | ||
config_impl(env); | ||
} | ||
|
||
pub fn test(env: TestEnv) { | ||
test_subnet( | ||
env, | ||
None, | ||
Some(SubnetType::Application), | ||
vec![], | ||
vec!["($0 ~ /API availability/)"], | ||
); | ||
} | ||
|
||
fn main() -> Result<()> { | ||
SystemTestGroup::new() | ||
.with_setup(config) | ||
.add_test(systest!(test)) | ||
.execute_from_args()?; | ||
|
||
Ok(()) | ||
} |
43 changes: 43 additions & 0 deletions
43
rs/tests/testing_verification/spec_compliance_system_subnet_test.rs
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,43 @@ | ||
/* tag::catalog[] | ||
Title:: Specification compliance test | ||
Goal:: Ensure that the replica implementation is compliant with the formal specification. | ||
Runbook:: | ||
. Set up system system and application subnet containing two nodes each | ||
. Run ic-ref-test against application subnet | ||
Success:: The ic-ref-test binary does not return an error. | ||
end::catalog[] */ | ||
|
||
use anyhow::Result; | ||
|
||
use ic_registry_subnet_type::SubnetType; | ||
use ic_tests::driver::group::SystemTestGroup; | ||
use ic_tests::driver::test_env::TestEnv; | ||
use ic_tests::spec_compliance::{config_impl, test_subnet}; | ||
use ic_tests::systest; | ||
|
||
pub fn config(env: TestEnv) { | ||
config_impl(env); | ||
} | ||
|
||
pub fn test(env: TestEnv) { | ||
test_subnet( | ||
env, | ||
None, | ||
Some(SubnetType::Application), | ||
vec!["($0 ~ /API availability/)"], | ||
vec![], | ||
); | ||
} | ||
|
||
fn main() -> Result<()> { | ||
SystemTestGroup::new() | ||
.with_setup(config) | ||
.add_test(systest!(test)) | ||
.execute_from_args()?; | ||
|
||
Ok(()) | ||
} |