Chainspec validation (#6197)

* chainspec validation

* better error formatting for chainspec

* lint validate_chainspecs.sh

* quit takes &str instead of S: AsRef<str>

* push CI

* don't double check spec validity
This commit is contained in:
Marek Kotewicz
2017-08-02 12:50:36 +02:00
committed by Arkadiy Paronyan
parent 8de1e92b99
commit 0c7c34e609
10 changed files with 95 additions and 35 deletions

View File

@@ -529,19 +529,6 @@ mod tests {
assert!(Spec::load(::std::env::temp_dir(), &[] as &[u8]).is_err());
}
#[test]
fn all_spec_files_valid() {
Spec::new_test();
Spec::new_null();
Spec::new_test_constructor();
Spec::new_instant();
Spec::new_test_round();
Spec::new_test_tendermint();
Spec::new_validator_safe_contract();
Spec::new_validator_contract();
Spec::new_validator_multi();
}
#[test]
fn test_chain() {
let test_spec = Spec::new_test();