Commit Graph

52 Commits (c2fb3f85900b61caee177bc394505d17a89a5084)

Author SHA1 Message Date
Philip O'Toole c3928b243b Tweak expected test output for client timeouts
Need to understand further why this fails on Circle, but passes fine
with Go 1.5.2 on the branch. Unblocking builds for now, test code only.
2015-12-09 17:29:38 -08:00
Philip O'Toole 7bae79cb71 Move to Go 1.5.2 2015-12-09 11:53:00 -08:00
Miguel Xavier Penha Neto 9051451e00 Fix ipv6 parsing in client
Old implementation of function ParseConnectionString would parse ipv6 incorrectly

Added a unit test for this
2015-11-01 19:38:54 -02:00
Philip O'Toole 841319e8a0 Account for older-style response in tests
It appears this response may still be emitted sometimes.
2015-08-27 16:23:59 -07:00
Philip O'Toole 55d71a075c Explicit sync with test server to avoid races
From
516f0d1c90

"Note that we use a channel send here and not a close.
The race detector doesn't know that we're waiting for a timeout
and thinks that the waitgroup inside httptest.Server is added to
concurrently with us closing it. If we timed out immediately, we could close
the testserver before we entered the handler. We're not timing out immediately
and there's no way we would be done before we entered the handler, but the
race detector doesn't know this, so synchronize explicitly.
2015-08-27 11:51:02 -07:00
Philip O'Toole 191163c7c7 Move to Go 1.5 2015-08-27 09:58:15 -07:00
Cory LaNou 765509bd68 revert breaking change to `client.NewClient` function 2015-08-06 11:46:25 -05:00
Cory LaNou c2f90ed887 update client tests 2015-08-06 09:19:34 -05:00
Todd Persen dd9c04ad89 Rename `influxdb` => `client` 2015-06-05 14:46:42 -07:00
Todd Persen 202e420e91 Fixing merge conflict. 2015-06-05 14:23:13 -07:00
Ben Johnson 44d38cb430 Merge branch 'master' into alpha1 2015-06-02 10:40:52 -06:00
Ben Johnson 8c8a55a737 Removed 'failed' from test suite. 2015-05-30 08:59:27 -06:00
Ben Johnson 79fba95550 Merge remote-tracking branch 'origin/alpha1' into integrate-meta 2015-05-30 08:50:09 -06:00
Ben Johnson cdc5a47efa Clean up influxdb. 2015-05-30 08:14:10 -06:00
ben hockey cfbff1df08 s/values/fields/g in JSON Unmarshal benchmarks 2015-05-29 21:27:06 -05:00
Jason Wilder 53d78b5612 Add JSON unmarshal benchmarks
Similar to the ParsePoints benchmarks for the line protocol for
comparison.
2015-05-29 19:32:32 -06:00
Vladimir Lopes 3e03be358f Include client timeout configuration 2015-05-28 18:03:02 -03:00
David Norton 644fbdc1e8 fix #2564: fix client package 2015-05-22 07:22:35 -04:00
Vladimir Lopes d8e3de68c4 Check for nil response on Client write test 2015-05-13 16:13:37 -03:00
Vladimir Lopes 6d612c4d57 Return StatusNoContent on Client write test 2015-05-13 15:44:31 -03:00
ben hockey 9a3c28748c change timestamp to time 2015-05-11 12:28:47 -05:00
Jari Sukanen 704691454d server: rename influxdb.Results type to influxdb.Response (issue: #2050)
Rename influxdb.Results to influxdb.Response as it already has Results
property itself. Renaming it to Response makes code look much less
ugly.
2015-04-04 12:17:33 +03:00
derailed d02b08d252 Not sure if this was intended or not. Pt Precision is not getting marshaled correctly?? 2015-03-26 18:45:36 -06:00
Cory LaNou 3172f31416 version is a lie for the client library 2015-03-09 09:51:47 -06:00
Cory LaNou 6afa4fb083 update test to expect a default user agent 2015-03-09 09:08:14 -06:00
Cory LaNou d334bec35a more cleanup on client.Point. testing for json.Marshal(client.Point) 2015-03-07 07:12:22 -07:00
Cory LaNou 4f5ad7399e add tests for NormalizeBatchPoints. Remove custom type client.Timestamp 2015-03-07 07:12:22 -07:00
Cory LaNou bda9685526 Use BatchPoints for writing from client library 2015-03-07 07:12:21 -07:00
Mark Rushakoff e9d5b74738 Client user agent is configurable 2015-02-11 12:35:15 -08:00
Cory LaNou cc3a147421 Use time.Equal whenever comparing time 2015-01-30 13:45:07 -07:00
Cory LaNou cea1bfb8f6 update error message to ouput correct actual 2015-01-30 13:45:07 -07:00
Cory LaNou e2726f7b79 try testing with UTC time 2015-01-30 13:45:07 -07:00
Cory LaNou 173ad5899b trying time.Equal instead of == 2015-01-30 13:44:29 -07:00
Cory LaNou 72d73b9c6a show proper error message in test for debugging 2015-01-30 13:44:29 -07:00
Cory LaNou 98354e2877 raft test still failing, seeing if time tests fail on build, pass locally 2015-01-30 13:44:29 -07:00
Philip O'Toole fc89f741cb Skip time-related marshalling tests until fixed 2015-01-29 22:42:09 -08:00
Cory LaNou 88759a7ecc time should marshal into UTC and nanoseconds 2015-01-29 16:23:15 -07:00
Cory LaNou 4b84a2d174 Point/Results duplicated in Client package. Custom marshaling for timestamps 2015-01-29 16:23:15 -07:00
Cory LaNou 37aad6fd20 client utility function EpochToTime 2015-01-29 16:23:15 -07:00
Cory LaNou e7a031b0fa show version when connecting via cli 2015-01-26 14:12:58 -07:00
Cory LaNou ac9473374a refactoring some client config. staring cli client, lot of wip 2015-01-23 15:49:23 -07:00
Cory LaNou a8d398bd22 first pass at write for client library 2015-01-23 13:37:53 -07:00
Cory LaNou d67851922d basic auth added to client 2015-01-23 11:05:04 -07:00
Cory LaNou c943802c67 basic query 2015-01-22 17:18:24 -07:00
Cory LaNou 86d6324469 ping added to client. useful for testing/mocking 2015-01-22 16:40:32 -07:00
Cory LaNou 087f41c5e8 basic building blocks of a client library 2015-01-22 15:23:55 -07:00
John Shahid 9c31291ca0 Move the influxdb test to an examples directory
These tests weren't designed to be run automatically via the ci. They
were a proof of concept and to demonstrate the api in action
2014-10-27 17:57:22 -04:00
John Shahid f6ae65d134 Fix the package name of the client package 2014-07-17 14:49:07 -04:00
John Shahid fd45c9255b Remove more indirect references to the protocol package
Fix #756
2014-07-17 14:23:23 -04:00
John Shahid df7e4d2b92 fix the client test 2014-07-15 15:56:17 -04:00