Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing and CI for internal components of rainsd / rainspub #100

Open
6 of 7 tasks
britram opened this issue Oct 24, 2018 · 3 comments
Open
6 of 7 tasks

Testing and CI for internal components of rainsd / rainspub #100

britram opened this issue Oct 24, 2018 · 3 comments
Assignees

Comments

@britram
Copy link
Contributor

britram commented Oct 24, 2018

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:

  • creating a test root zone, a test TLD, and a test RLD (in testdata/)
  • standing up a rainsd instance and publishing zones to it
  • standing up a rainsd instance and preloading its cache
  • standing up a second rainsd instance and pushing queries to it, so that it populates its cache from the first rainsd
  • checking positive/negative responses to test queries against the list of expected results (with this test vector also to live in testdata)

Running this test three times using three different connection methods can fully exercise the switchboard, as well:

  • via @fehlmach's simulation channels
  • via local TLS/TCP/IP

ISTM a lot of the integration testing / simulation work can be repurposed to make this easier.

@britram
Copy link
Contributor Author

britram commented Oct 29, 2018

Do this before #101: uncovered swaths of code might be ripe for paring down.

@britram
Copy link
Contributor Author

britram commented Dec 3, 2018

Question: do we want this test to verify that things are cached in the second level, and how?

@britram
Copy link
Contributor Author

britram commented Dec 3, 2018

Note: Use rainspub to publish to a bootstrapped authoritative server

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants