Open britram opened 5 years ago
Do this before #101: uncovered swaths of code might be ripe for paring down.
Question: do we want this test to verify that things are cached in the second level, and how?
Note: Use rainspub to publish to a bootstrapped authoritative server
Implement testing with reasonable coverage, and add continuous integration for commits the repository, for implementation components of rainsd and rainspub.
Unit testing on individual components does not make a great deal of sense for most of RAINS, but adequate system-level testing coverage can probably be achieved by:
testdata/
)rainsd
instance and publishing zones to itrainsd
instance and preloading its cacherainsd
instance and pushing queries to it, so that it populates its cache from the firstrainsd
testdata
)Running this test three times using three different connection methods can fully exercise the switchboard, as well:
ISTM a lot of the integration testing / simulation work can be repurposed to make this easier.