Commit Graph

774 Commits

Author SHA1 Message Date
Jude Nelson
c11773c0b0 fix a couple bugs; do a subdomain replay on each test 2018-02-09 19:18:43 -05:00
Jude Nelson
4b88c7ed99 test large zone files with 100 subdomains each 2018-02-09 19:18:27 -05:00
Jude Nelson
0670ab4d31 add atlas_peer_exchange() to the atlas network simulator 2018-02-08 19:17:18 -05:00
Jude Nelson
cb54a26cc4 use the right function calls 2018-02-08 19:17:01 -05:00
Jude Nelson
172b41d09f version bump 2018-02-08 19:16:50 -05:00
Jude Nelson
4607063c98 make sure subdomain transfers can only happen on their domains 2018-02-07 19:06:29 -05:00
Jude Nelson
bdd448c496 verify that adding the "_missing" TXT RR stops a subdomain from showing up as pending if only the listed zone files are actually missing 2018-02-07 19:06:02 -05:00
Jude Nelson
708c1c002b make sure we can reorg a pending subdomain's owner history, but that it shows as not pending once reorged 2018-02-07 19:05:38 -05:00
Jude Nelson
b03a1f13e2 verify that domain names show up as pending if the domain name is missing any zone files 2018-02-07 19:05:20 -05:00
Jude Nelson
8f68a98edd verify that we can transfer subdomains via their domain names 2018-02-07 19:04:56 -05:00
Jude Nelson
18cfa89bf9 make sure we change the domain name on each update 2018-02-07 19:04:18 -05:00
Jude Nelson
7173c91e3b really test independence--change the domain name each time we send an update 2018-02-07 19:03:37 -05:00
Jude Nelson
3b4bdc1718 remove blockstack_client in a few places; be more judicious about how we compare subdomain databases 2018-02-02 18:41:22 -05:00
Jude Nelson
20097b00df make sure that when we give zone files sequentially, that subdomain updates spanning different names' zone files are still processed in the right order 2018-01-30 17:51:48 -05:00
Jude Nelson
dbe1dd78b4 verify that when we reorganize a subdomain's history, that regardless of which zone file contains its updates, we always rebuild its history off of the earliest-discovered name transfer 2018-01-30 17:51:20 -05:00
Jude Nelson
7361eb012e when reorganizing a subdomain's history, make sure that if an earlier transfer gets discovered, we invalidate the subsequent history and build off of the earliest transfer 2018-01-30 17:50:54 -05:00
Jude Nelson
c9732038ed verify that no matter which zone file a subdomain arrives in, we correctly reorganize its history to reflect the earliest valid sequence numbers for each update 2018-01-30 17:50:21 -05:00
Jude Nelson
3d8fb3d44a test that zone files that arrive out of order cause the subdomains' histories to be reorganized internally, selecting the earliest records with a given sequence 2018-01-30 17:49:46 -05:00
Jude Nelson
5e58703099 test that the arrival of multiple subdomain updates with the same sequence number selects the earliest valid one 2018-01-30 17:49:14 -05:00
Jude Nelson
8585237e29 verify that we do not create zone files until the initial zone file that created it arrives. verify that this works when subdomains are updated across domain names 2018-01-30 17:48:48 -05:00
Jude Nelson
33ab09f3ac test subdomain processing works when the initial subdomain records get lost, but subsequent ones arrive. verify that they are not processed until the initial subdomain record is discovered 2018-01-30 17:48:17 -05:00
Jude Nelson
cf06b77bb9 test subdomain db reindexing 2018-01-30 17:48:06 -05:00
Jude Nelson
43c5065478 verify that we cannot accept subdomain creation from names for which we do not have all zone files 2018-01-30 17:47:45 -05:00
Jude Nelson
90a32b7627 test when zone files arrive in different orders, leaving holes in the history. test that this also works when subdomain records are spread across multiple domains 2018-01-30 17:47:22 -05:00
Jude Nelson
4a3b19515e test subdomain processing when some zone files arrive but others do not, leaving holes in the history. 2018-01-30 17:46:56 -05:00
Jude Nelson
6a97e023ec test subdomain processing when zone files arrive in reverse order, and subdomains are spread across multiple domains 2018-01-30 17:46:38 -05:00
Jude Nelson
7ffc0ad97e test subdomain processing when zone files arrive in batches, and subdomain records are on different zone files than those belonging to their stem names 2018-01-30 17:45:53 -05:00
Jude Nelson
cf912947a8 test that we will "discover" zone files even if they're already present 2018-01-30 17:45:33 -05:00
Jude Nelson
8ba80dbd88 add method to reindex subdomains and verify that they are consistent with the subdomain db calculated by discovering zonefiles 2018-01-30 17:44:30 -05:00
Jude Nelson
46e544088d make sure we can reindex from scratch 2018-01-30 17:44:20 -05:00
Jude Nelson
2f8ffca1da make sure we can reindex from scratch 2018-01-30 17:44:09 -05:00
Jude Nelson
643fc62f23 make sure we can reindex from scratch 2018-01-30 17:43:50 -05:00
Jude Nelson
db95a49021 make sure the atlasdb and subdomaindb are preserved on fastsync 2018-01-30 17:43:35 -05:00
Jude Nelson
79fafe9b32 add some initial subdomain tests, including varying the quantity of subdomain updates and the order in which they arrive 2018-01-29 19:12:21 -05:00
Jude Nelson
36485f8a90 use blockstack's libraries for zonefile verification 2018-01-29 19:11:27 -05:00
Jude Nelson
b8972060ba test for having blockstackd report when its block information is stale 2018-01-22 19:12:31 -05:00
Jude Nelson
8633963c7a API sync 2018-01-22 19:12:22 -05:00
Jude Nelson
bdda580e04 TODO: do safety checks when exceeding quota 2018-01-22 16:57:20 -05:00
Jude Nelson
ee67be4987 test the name-transfer consensus hash quirk for various permutations of operations 2018-01-22 15:39:00 -05:00
Jude Nelson
df9c5b6a8f make sure that we check that the consensus hash quirk for name-transfers is preserved 2018-01-22 15:38:37 -05:00
Jude Nelson
caa59d0039 remove now-unnecessary (and incorrect) test conditions 2018-01-21 00:58:40 -05:00
Jude Nelson
791ca93188 fix name-transfer quirk test to reflect the desired behavior 2018-01-20 16:18:19 -05:00
Jude Nelson
6501d2bffd check name-transfer quirk to make sure we're using the right previous consensus hash when calculating the snapshot of the operation 2018-01-19 17:14:22 -05:00
Jude Nelson
a405519dd0 removea dead code 2018-01-19 17:14:16 -05:00
Jude Nelson
ffe5fe0d47 Merge branch 'develop' into feature/clean-chainstate 2018-01-18 13:24:52 -05:00
Jude Nelson
c3484c0d7e bitcoind can reorder transactions. accomodate this 2018-01-17 22:31:57 -05:00
Jude Nelson
039f366cc7 don't care too much about noncanonical fields 2018-01-17 18:59:22 -05:00
Jude Nelson
59d4f7d026 when type-comparing, coerse unicode to string 2018-01-17 17:20:41 -05:00
Jude Nelson
5d6be3c65a check types in DID queries; make sure to fetch canonical representation of a name when comparing final name states to DID queries 2018-01-17 17:02:23 -05:00
Jude Nelson
b5a19ea46c use test framework's expected snapshots when starting atlas peers (helps test this functionality) 2018-01-17 15:29:49 -05:00