Commit Graph

41 Commits

Author SHA1 Message Date
Alex Dadgar
9415ef5b47 Use LookupPath to add the exe extension 2017-07-25 17:42:36 -07:00
Alex Dadgar
8c9234e319 Make test Vault pick random ports 2017-07-25 17:40:59 -07:00
Michael Schurter
55bd0c8df7 Use go-testing-interface instead of testing
This drops the testings stdlib pkg from our dependencies. Saves a
whopping 46kb on our binary (was really hoping for more of a win there),
but also avoids potential ugliness with how testing sets flags.
2017-07-25 15:35:19 -07:00
Alex Dadgar
08c2ba9bc6 Parallel client tests (#2890)
* alloc_runner

* Random tests

* parallel task_runner and no exec compatible check

* Parallel client

* Fail fast and use random ports

* Fix docker port mapping

* Make concurrent pull less timing dependant

* up parallel

* Fixes

* don't build chroots in parallel on travis

* Reduce parallelism on travis with lxc/rkt

* make java test app not run forever

* drop parallelism a little

* use docker ports that are out of the os's ephemeral port range

* Limit even more on travis

* rkt deadline
2017-07-22 19:04:36 -07:00
Alex Dadgar
a56f67b76d Parallel 2017-07-21 16:33:04 -07:00
Alex Dadgar
d72e86cbe3 Use a lock to increment the vault port 2017-05-16 13:25:07 -04:00
Michael Schurter
df30a110fb Create AssertUntil helper func 2017-04-06 17:05:09 -07:00
Alex Dadgar
67175cc47c vault testutil changes bin name based on OS 2017-04-04 15:14:35 -07:00
Alex Dadgar
fc78bf8bc5 Change testserver binary lookup 2017-04-04 14:45:29 -07:00
Alex Dadgar
8099478f2f Cleanup and skip test 2017-01-27 15:06:01 -08:00
Alex Dadgar
723f8f0343 Benchmark 2016-12-09 14:44:50 -08:00
Michael Schurter
0c5bfec2c7 Advertise a non-loopback ip in tests 2016-11-14 14:42:59 -08:00
Alex Dadgar
9ff2bf0bff Fix Vault parsing of booleans 2016-10-10 18:04:39 -07:00
Alex Dadgar
f7d74b6fe4 Use tomb to shutdown
Token revocation

Remove from the statestore

Revoke tokens

Don't error when Vault is disabled as this could cause issue if the operator ever goes from enabled to disabled

update server interface to allow enable/disable and config loading

test the new functions

Leader revoke

Use active
2016-08-28 14:06:25 -07:00
Alex Dadgar
31367a7abf Merge pull request #1629 from hashicorp/f-derive-token
Server Deriving Tokens on behalf of Clients
2016-08-23 13:58:47 -07:00
Alex Dadgar
d1c30800c4 Fix command tests that wait for client to be registered 2016-08-23 11:17:31 -07:00
Alex Dadgar
4c8dcca59a fixes 2016-08-19 20:02:32 -07:00
Alex Dadgar
b082bdd52f test fixes 2016-08-18 10:30:47 -07:00
Alex Dadgar
828fc8b022 test renewal 2016-08-17 16:25:38 -07:00
Alex Dadgar
418339dddd Token renewal and beginning of tests 2016-08-17 16:25:38 -07:00
Abhishek Chanda
4f33b57327 Use the CI env variable
Travis exports this variable to all builds. We don't need out own.
A number of other CI systems use this variable too.
2016-02-06 01:11:44 -08:00
Alex Dadgar
fb010e2c5d Small fixes 2016-02-04 14:19:27 -08:00
Alex Dadgar
417c70c10c ordering issue 2016-01-21 13:28:48 -08:00
Alex Dadgar
85a2c05697 Time Duration fixes 2016-01-21 12:29:13 -08:00
Alex Dadgar
e91abac0f6 Fix a bunch of tests
Up timeouts

trusty travis beta

Increase timeouts
2016-01-20 16:03:53 -08:00
Chris Hines
0cb341adfb Make testutil.TestServer work correctly on Windows. 2015-12-01 12:16:21 -05:00
Chris Hines
95bd6b4ae2 Make golint happy. 2015-12-01 12:14:39 -05:00
Jeff Mitchell
b13df73ee8 Update the location of cleanhttp 2015-10-22 14:21:07 -04:00
Jeff Mitchell
b0aac09da8 Use cleanhttp for truly clean clients and transports. 2015-10-22 10:58:23 -04:00
Jeff Mitchell
38db63f7f4 Remove usage of http.DefaultClient 2015-10-16 16:56:43 -04:00
Ryan Uber
7a6e633028 testutil: fix boostrap mode after flag change 2015-09-24 21:16:52 -07:00
Ryan Uber
c9bb562ec1 testutil: fix bootstrap on test server 2015-09-14 13:52:19 -07:00
Ryan Uber
29f3fc3005 testutil: enable dev mode using a config flag.
This flag is not normally supported in Nomad, but we really need
to use it for testing to lower the timing values for registration
retries et. al. Instead of just enabling it on all tests, we
provide a bool flag in the config, which just makes the test
server pass the extra CLI arg when true.
2015-09-11 21:25:46 -07:00
Ryan Uber
8e32daec1d testutil: re-enable dev mode for short timing values 2015-09-11 20:50:08 -07:00
Ryan Uber
276165344d agent: test listener from config 2015-09-11 11:10:55 -07:00
Ryan Uber
cb97c5f14c testutil: test server uses offset ports 2015-09-10 18:57:53 -07:00
Ryan Uber
c59695d769 testutil: server uses dynamic ports 2015-09-09 21:43:11 -07:00
Armon Dadgar
580fd12425 nomad: allow region forwarding for status endpoints 2015-09-06 18:07:05 -07:00
Armon Dadgar
ddf83409f1 api: Adding basic skeleton 2015-09-06 13:29:51 -07:00
Armon Dadgar
3ee5d2dce2 nomad: testing status endpoint 2015-06-04 13:26:16 +02:00
Armon Dadgar
0fcaba9439 nomad: testing remove peer 2015-06-04 13:02:39 +02:00