-
Notifications
You must be signed in to change notification settings - Fork 53
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 #46
Testing #46
Conversation
Thank you for your work. I will go through this next week. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! If you can address the comment about Python3.4 and this should be good to go. Thanks!
- "3.5" | ||
- "3.6" | ||
- "3.7" | ||
- "3.8" | ||
install: | ||
- pip install -r requirements.txt | ||
- pip install . | ||
script: airctrl -h && cloudctrl -h | ||
- pip install coveralls flask pytest | ||
- sudo iptables -t nat -I OUTPUT -p tcp -o lo --dport 80 -j REDIRECT --to-ports 5000 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is a nice hack but I think it'd be better to add an optional port
argument to the HTTP client which defaults to 80 and change it only when running tests; this will also allow running tests locally without messing with iptables
; we can do this in a separate PR though
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
plain_coap and coap take port as init-argument, you are right, we should implement this too with http, but I didn't want to change too much for now.
I think we should do this in a separate PR.
I've adjusted everything, except the iptables-hack (see the comment) |
Information about this PR: