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

Added unit tests under Zenodotus repository #9

Open
wants to merge 6 commits into
base: unittests
Choose a base branch
from
Open

Added unit tests under Zenodotus repository #9

wants to merge 6 commits into from

Conversation

XuefengHuang
Copy link

This PR adds two unit tests.
ut_zenodotus_queryzenodotus.py tests the advertise services (i.e. Zenodotus' "database") behave.
ut_zenodotus_checkadvertisedvalues.py tests what happend if we advertise "impossible" (i.e. non-IPv4) values under a Zenodotus name

This is my test result on Mac OS X 10.10.2.

Xuefengs-MacBook-Pro:desktop Xuefeng$ git clone https://github.com/XuefengHuang/zenodotus -b unittest
Cloning into 'zenodotus'...
remote: Counting objects: 93, done.
remote: Compressing objects: 100% (59/59), done.
remote: Total 93 (delta 44), reused 72 (delta 34)
Unpacking objects: 100% (93/93), done.
Checking connectivity... done.
Xuefengs-MacBook-Pro:desktop Xuefeng$ cd zenodotus/scripts
Xuefengs-MacBook-Pro:scripts Xuefeng$ python initialize.py
Checking out repo from https://github.com/SeattleTestbed/seattlelib_v2 ...
Done!
Checking out repo from https://github.com/SeattleTestbed/repy_v2 ...
Done!
Checking out repo from https://github.com/SeattleTestbed/nodemanager ...
Done!
Checking out repo from https://github.com/SeattleTestbed/portability ...
Done!
Checking out repo from https://github.com/SeattleTestbed/common ...
Done!
Checking out repo from https://github.com/SeattleTestbed/utf ...
Done!
Xuefengs-MacBook-Pro:scripts Xuefeng$ python build.py -t
Building into /Users/huangxuefeng/Desktop/zenodotus/RUNNABLE
Done building!
Xuefengs-MacBook-Pro:scripts Xuefeng$ cd ../runnable
Xuefengs-MacBook-Pro:runnable Xuefeng$ python utf.py -a
Testing module: zenodotus
    Running: ut_zenodotus_checkadvertisedvalues.py              [ PASS ]
    Running: ut_zenodotus_queryzenodotus.py                     [ PASS ]

This is an unit test script that will check advertised values work. We advertise "impossible" (i.e. non-IPv4) values under a Zenodotus name and see what happens.
This is an unit test script that will ensure Zenodotus respond properly.
Using two spaces per indent level instead of tab.
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

Successfully merging this pull request may close these issues.

1 participant