Skip to content
Snippets Groups Projects
Commit 3de87251 authored by Cédric Moreau's avatar Cédric Moreau
Browse files

test: OK for most public maps (no double maps)

parent be0eb560
No related branches found
No related tags found
No related merge requests found
Pipeline #32913 waiting for manual action
......@@ -44,7 +44,7 @@ pub fn compare_with_storage(tested: &Vec<Box<dyn StorageCheck>>) {
actual.push_str(t.to_golden_for_value(v).0.as_str());
}
}
assert_eq!(actual, expect);
assert_eq!(expect, actual);
}
fn read_storage(t: &Box<dyn StorageCheck>) -> Option<Bytes> {
......
......@@ -86,12 +86,17 @@ impl StorageIterativeChecker {
Key::UniversalDividendMonetaryMass(0),
Key::UniversalDividendNextReeval(100),
Key::UniversalDividendPastReevals(4),
Key::IdentityIdentitiesNames(btreemap!(
"Alice".to_string() => (),
"Charlie".to_string() => (),
"Bob".to_string() => (),
"Dave".to_string() => (),
)),
Key::_ManualKey(
"Identity".to_string(),
"IdentitiesNames".to_string(),
"[
\"Alice\" = ()
\"Bob\" = ()
\"Charlie\" = ()
\"Dave\" = ()
]"
.to_string(),
),
Key::IdentityIdentities(btreemap!(
1 => IdtyValue {
data: IdtyData {
......@@ -208,6 +213,107 @@ impl StorageIterativeChecker {
]".to_string()),
Key::_ManualKey("System".to_string(), "BlockHash".to_string(), "[
0 = 0x4545454545454545454545454545454545454545454545454545454545454545
]".to_string()),
Key::_ManualKey("Identity".to_string(), "IdentityIndexOf".to_string(), "[
306721211d5404bd9da88e0204360a1a9ab8b87c66c1bc2fcdd37f3c2222cc20 (5DAAnrj7...) = 4
8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...) = 2
90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...) = 3
d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...) = 1
]".to_string()),
Key::_ManualKey("Scheduler".to_string(), "Agenda".to_string(), "[
]".to_string()),
Key::_ManualKey("Balances".to_string(), "Account".to_string(), "[
]".to_string()),
Key::_ManualKey("Balances".to_string(), "Locks".to_string(), "[
]".to_string()),
Key::_ManualKey("Balances".to_string(), "Reserves".to_string(), "[
]".to_string()),
Key::_ManualKey("OneshotAccount".to_string(), "OneshotAccounts".to_string(), "[
]".to_string()),
Key::_ManualKey("AuthorityMembers".to_string(), "AccountIdOf".to_string(), "[
]".to_string()),
Key::_ManualKey("AuthorityMembers".to_string(), "Members".to_string(), "[
1 = MemberData { expire_on_session: 0, must_rotate_keys_before: 1500, owner_key: d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...) }
2 = MemberData { expire_on_session: 0, must_rotate_keys_before: 1500, owner_key: 8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...) }
3 = MemberData { expire_on_session: 0, must_rotate_keys_before: 1500, owner_key: 90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...) }
]".to_string()),
// TODO: curious that this is empty on current GDev
Key::_ManualKey("AuthorityMembers".to_string(), "MustRotateKeysBefore".to_string(), "[
1500 = [1]
]".to_string()),
Key::_ManualKey("Offences".to_string(), "Reports".to_string(), "[
]".to_string()),
Key::_ManualKey("Session".to_string(), "NextKeys".to_string(), "[
8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...) = SessionKeys { grandpa: Public(d17c2d7823ebf260fd138f2d7e27d114c0145d968b5ff5006125f2414fadae69 (5GoNkf6W...)), babe: Public(8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)), im_online: Public(8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)), authority_discovery: Public(8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)) }
90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...) = SessionKeys { grandpa: Public(439660b36c6c03afafca027b910b4fecf99801834c62a5e6006f27d978de234f (5DbKjhNL...)), babe: Public(90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...)), im_online: Public(90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...)), authority_discovery: Public(90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...)) }
d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...) = SessionKeys { grandpa: Public(88dc3417d5058ec4b4503e0c12ea1a0a89be200fe98922423d4334014fa6b0ee (5FA9nQDV...)), babe: Public(d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)), im_online: Public(d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)), authority_discovery: Public(d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)) }
]".to_string()),
Key::_ManualKey("Session".to_string(), "KeyOwner".to_string(), "[
(KeyTypeId([103, 114, 97, 110]), [136, 220, 52, 23, 213, 5, 142, 196, 180, 80, 62, 12, 18, 234, 26, 10, 137, 190, 32, 15, 233, 137, 34, 66, 61, 67, 52, 1, 79, 166, 176, 238]) = d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)
(KeyTypeId([103, 114, 97, 110]), [209, 124, 45, 120, 35, 235, 242, 96, 253, 19, 143, 45, 126, 39, 209, 20, 192, 20, 93, 150, 139, 95, 245, 0, 97, 37, 242, 65, 79, 173, 174, 105]) = 8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)
(KeyTypeId([103, 114, 97, 110]), [67, 150, 96, 179, 108, 108, 3, 175, 175, 202, 2, 123, 145, 11, 79, 236, 249, 152, 1, 131, 76, 98, 165, 230, 0, 111, 39, 217, 120, 222, 35, 79]) = 90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...)
(KeyTypeId([105, 109, 111, 110]), [142, 175, 4, 21, 22, 135, 115, 99, 38, 201, 254, 161, 126, 37, 252, 82, 135, 97, 54, 147, 201, 18, 144, 156, 178, 38, 170, 71, 148, 242, 106, 72]) = 8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)
(KeyTypeId([105, 109, 111, 110]), [144, 181, 171, 32, 92, 105, 116, 201, 234, 132, 27, 230, 136, 134, 70, 51, 220, 156, 168, 163, 87, 132, 62, 234, 207, 35, 20, 100, 153, 101, 254, 34]) = 90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...)
(KeyTypeId([105, 109, 111, 110]), [212, 53, 147, 199, 21, 253, 211, 28, 97, 20, 26, 189, 4, 169, 159, 214, 130, 44, 133, 88, 133, 76, 205, 227, 154, 86, 132, 231, 165, 109, 162, 125]) = d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)
(KeyTypeId([97, 117, 100, 105]), [142, 175, 4, 21, 22, 135, 115, 99, 38, 201, 254, 161, 126, 37, 252, 82, 135, 97, 54, 147, 201, 18, 144, 156, 178, 38, 170, 71, 148, 242, 106, 72]) = 8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)
(KeyTypeId([97, 117, 100, 105]), [144, 181, 171, 32, 92, 105, 116, 201, 234, 132, 27, 230, 136, 134, 70, 51, 220, 156, 168, 163, 87, 132, 62, 234, 207, 35, 20, 100, 153, 101, 254, 34]) = 90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...)
(KeyTypeId([97, 117, 100, 105]), [212, 53, 147, 199, 21, 253, 211, 28, 97, 20, 26, 189, 4, 169, 159, 214, 130, 44, 133, 88, 133, 76, 205, 227, 154, 86, 132, 231, 165, 109, 162, 125]) = d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)
(KeyTypeId([98, 97, 98, 101]), [142, 175, 4, 21, 22, 135, 115, 99, 38, 201, 254, 161, 126, 37, 252, 82, 135, 97, 54, 147, 201, 18, 144, 156, 178, 38, 170, 71, 148, 242, 106, 72]) = 8eaf04151687736326c9fea17e25fc5287613693c912909cb226aa4794f26a48 (5FHneW46...)
(KeyTypeId([98, 97, 98, 101]), [144, 181, 171, 32, 92, 105, 116, 201, 234, 132, 27, 230, 136, 134, 70, 51, 220, 156, 168, 163, 87, 132, 62, 234, 207, 35, 20, 100, 153, 101, 254, 34]) = 90b5ab205c6974c9ea841be688864633dc9ca8a357843eeacf2314649965fe22 (5FLSigC9...)
(KeyTypeId([98, 97, 98, 101]), [212, 53, 147, 199, 21, 253, 211, 28, 97, 20, 26, 189, 4, 169, 159, 214, 130, 44, 133, 88, 133, 76, 205, 227, 154, 86, 132, 231, 165, 109, 162, 125]) = d43593c715fdd31c61141abd04a99fd6822c8558854ccde39a5684e7a56da27d (5GrwvaEF...)
]".to_string()),
Key::_ManualKey("TechnicalCommittee".to_string(), "ProposalOf".to_string(), "[
]".to_string()),
Key::_ManualKey("TechnicalCommittee".to_string(), "Voting".to_string(), "[
]".to_string()),
Key::_ManualKey("Identity".to_string(), "IdentitiesRemovableOn".to_string(), "[
]".to_string()),
Key::_ManualKey("Membership".to_string(), "Membership".to_string(), "[
1 = MembershipData { expire_on: 100 }
2 = MembershipData { expire_on: 100 }
3 = MembershipData { expire_on: 100 }
4 = MembershipData { expire_on: 100 }
]".to_string()),
Key::_ManualKey("Membership".to_string(), "MembershipsExpireOn".to_string(), "[
100 = [1, 2, 3, 4]
]".to_string()),
Key::_ManualKey("Membership".to_string(), "PendingMembership".to_string(), "[
]".to_string()),
Key::_ManualKey("Membership".to_string(), "PendingMembershipsExpireOn".to_string(), "[
]".to_string()),
Key::_ManualKey("Cert".to_string(), "CertsByReceiver".to_string(), "[
1 = [(2, 10000), (3, 10000), (4, 10000)]
2 = [(1, 10000), (3, 10000), (4, 10000)]
3 = [(1, 10000), (2, 10000), (4, 10000)]
4 = [(1, 10000), (2, 10000), (3, 10000)]
]".to_string()),
Key::_ManualKey("Cert".to_string(), "StorageCertsRemovableOn".to_string(), "[
10000 = [(2, 1), (3, 1), (4, 1), (1, 2), (3, 2), (4, 2), (1, 3), (2, 3), (4, 3), (1, 4), (2, 4), (3, 4)]
]".to_string()),
Key::_ManualKey("SmithMembership".to_string(), "Membership".to_string(), "[
1 = MembershipData { expire_on: 1000 }
2 = MembershipData { expire_on: 1000 }
3 = MembershipData { expire_on: 1000 }
]".to_string()),
Key::_ManualKey("SmithMembership".to_string(), "MembershipsExpireOn".to_string(), "[
1000 = [1, 2, 3]
]".to_string()),
Key::_ManualKey("SmithMembership".to_string(), "PendingMembership".to_string(), "[
]".to_string()),
Key::_ManualKey("SmithMembership".to_string(), "PendingMembershipsExpireOn".to_string(), "[
]".to_string()),
Key::_ManualKey("SmithCert".to_string(), "StorageCertsRemovableOn".to_string(), "[
1000 = [(2, 1), (3, 1), (1, 2), (3, 2), (1, 3), (2, 3)]
]".to_string()),
Key::_ManualKey("ProvideRandomness".to_string(), "RequestsReadyAtEpoch".to_string(), "[
]".to_string()),
Key::_ManualKey("ProvideRandomness".to_string(), "RequestsIds".to_string(), "[
]".to_string()),
Key::_ManualKey("Proxy".to_string(), "Proxies".to_string(), "[
]".to_string()),
Key::_ManualKey("Proxy".to_string(), "Announcements".to_string(), "[
]".to_string()),
Key::_ManualKey("Treasury".to_string(), "Proposals".to_string(), "[
]".to_string())
]
},
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment