Matthew Jaffee
82592adf64
add MustRunMainWithCluster test func to have api compatibility with cluster resize
...
this will allow some pdk code which only works with cluster-resize to work
against master (i think)
2018-02-20 11:50:06 -06:00
Travis Turner
668689e119
ensure that the license is prepended to all source files
2018-02-05 16:35:28 -06:00
Cody Soyland
6756d97089
Enable diagnostics via build constraint to prevent from running in tests
2018-02-02 17:32:14 -06:00
Yuce Tekol
be24428367
Uses NewServerCluster method in tests
2018-01-17 14:43:58 +03:00
Matthew Jaffee
5799c10cd1
rename openPort, and some small refactors
2018-01-16 09:41:03 -06:00
Matthew Jaffee
673a290255
make diagnostics false in cluster test
2018-01-15 10:40:36 -06:00
Matthew Jaffee
0ac8648ea9
add NewServerCluster(size int) method to pilosa/test
2018-01-12 16:29:32 -06:00
Matthew Jaffee
e72d596ad6
Merge pull request #923 from jaffee/test-helpers
...
add test helper for starting a new pilosa instance
2017-12-29 16:46:48 -06:00
Todd Gruben
e7d64c4f48
limit httpclient instances on executor tests
2017-12-04 12:17:41 -06:00
Todd Gruben
f051f7ccea
refactored httpclient handling
2017-12-01 16:00:12 -06:00
Matthew Jaffee
05254ad11e
add test helper for starting a new pilosa instance
...
Pilosa runs on ephemeral ports with temporrary storage.
2017-11-01 13:21:06 -05:00
Yuce Tekol
66650ec1f7
NewExecutor doesn't return an error; renamed NewClient to NewInternalHTTPClient
2017-10-18 17:38:20 +03:00
Yuce Tekol
838d56011c
Renamed Client to InternalHTTPClient
2017-10-17 16:04:42 +03:00
Yuce Tekol
48c0dbaee7
Initial client refactoring
2017-10-17 11:35:01 +03:00
Yuce Tekol
e223ec3f9a
Rename Host -> URI
2017-10-12 15:49:34 +03:00
Yuce Tekol
65ad94c376
clusters with https + self signed certificates work (using --tls.skip-verify)
2017-10-10 04:48:15 +03:00
Yuce Tekol
3501732b19
https with signed certificates work
2017-10-08 21:11:19 +03:00
Yuce Tekol
a95b09d30d
more host string to uri changes
2017-10-04 15:29:00 +03:00
Yuce Tekol
1bedfd6585
use URI instead of host
2017-10-04 08:20:00 +03:00
Travis
52428ee6ac
Correct a comment in the tests
2017-08-26 11:47:59 -05:00
Michael Baird
f5832cda02
Clarify that Holder Reopen requires Close to be run beforehand.
2017-08-22 15:13:21 -05:00
Michael Baird
2dfa689d71
Fragment.Close now returns an error.
...
This required changing the Holder test utility Reopen, since in those cases we needed to close the file before making permission changes that Close() was failing silently on.
2017-08-22 14:52:07 -05:00
Michael Baird
867af19f9b
removed duplicate test
2017-06-29 15:52:57 -05:00
Cody Soyland
0631a63de2
Refactor additional test utilities into pilosa.test
2017-06-26 16:30:04 -05:00
Cody Soyland
85b1a73b73
Refactor test utilities into importable package.
...
Remove duplicate instances of test utilities from pilosa.ctl.
Now subpackages such as pilosa.ctl may import test utilities.
2017-06-23 09:10:15 -05:00
Ben Johnson
ca29f7692b
Fix failing tests when IPv6 is disabled.
...
Turning off IPv6 causes the tests to fail because the Go
`net.Listen()` function obtains a `[::]` address when using
a `localhost:0` bind address. Looking through the Go source
code, I don't see a good way to fix that.
This change adds a test flag to allow users to specify the
network name when running the test:
```sh
go test github.com/pilosa/pilosa/server -network tcp4
```
2017-06-01 14:43:59 -06:00