Add a test module against a real running server #131
Add a test module against a real running server #131
Conversation
shutil.rmtree(self.influxd_temp_dir_base) | ||
|
||
|
||
class TestClientWithNoServer(unittest.TestCase): |
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.
Those tests already exist.
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.
effectively, had done a copy of client_test.py to start this one.. ;)
how about making client_test.py
renamed to client_tests_without_server.py
, and this one renamed to client_tests_with_server.py
and also effectively remove this from here ?
or just rename this one to client_tests_with_server.py to insist enough ?
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.
I would prefer if you renamed the new file to client_tests_with_server.py and keep the current one as it is.
Very good job @gst :) This is awesome.
|
don't merge this already so, I'll also do a slight change in real_client_test (among its probable rename). |
I wanted to be sure to also have some tests against the latest master server version here, so that's the reason.
Right, but this greatly helps to keep up to date with influxdb server master so, that's what I simply wanted to get at the initial stage in fact, and I've added this to the PR so to have it right there for the (near) future ;)
relative complexity ;) that's just an install of ruby and few others packages, a gem install and a build & deb install finally, and within the tests a creation and start of a fresh server instance also. Advanced but not complex :p
That's the other possibility I've also think about. Not sure it's better.. |
I have also missed that the deb fails to install damn.. will check that also.. |
@@ -12,6 +12,7 @@ env: | |||
install: | |||
- sudo pip install tox | |||
- sudo pip install coveralls | |||
- ./build_influxdb_server.sh || true |
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.
Why the || true
?
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.
Cause wasn t sure of need of command to return exit code of true (0) to continue test run..
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.
Can you remove it?
The tests now work on Travis :) |
Next time, please don't put unrelated changes in the same PR. The ''Random python fixes" should not be in the same PR as the integration tests. |
You would make separate pr for each "pythonic" change ? (There was about 3 hère) |
Yes If its not too much trouble for you, one PR for each change is best, but one PR for the integration tests and one pr for "pythonic changes" would have been fine. Don't worry about it for this PR tho. |
ok then ;) I'm splitting this one in 2 PR : this one but "cleaned" ; and one for each "pythonic" change unrelated to this test_client_with_server.py and I'll rebase this one without thoses changes so. stay tuned.. |
I'll be merging #133 in a few mins when the tests are done. |
715f8e4
to
9ae38d3
Compare
You should be able to rebase now. |
By *real* we mean : one which really connect to a server instance.
So to be able to run client_test_with_server.py.
9ae38d3
to
b00409a
Compare
rebased, |
Oh yeah! Thats a clean PR ;) |
that's better/cleaner effectively ;) |
don't worry about it. For some reason GitHub history can be pretty hard to read. I still don't know if they list commits in "author" or in "apply" order. |
Add a test module against a real running server (Thanks @gst!)
Thank you! :) |
This PR brings basically 2 things:
any comments ?
client_test_with_server.py could now easily be extended with others (more complex) test cases..