Tim Gross
a5c48b886f
e2e: test infra for client node restarts ( #6313 )
...
Add a test helper that restarts a specific client node running under
systemd using a `raw_exec` job.
2019-09-18 10:10:14 -04:00
Tim Gross
00c24fcc29
e2e: move consul status check helpers to e2eutil ( #6314 )
2019-09-18 08:18:19 -04:00
Tim Gross
31f91cf4c8
e2e: fixes for race conditions in testing ( #6300 )
...
- In script checks, ensure we're running `Exec` against the new running
allocation and not the earlier stopped one.
- In script checks, allow `Exec` calls to error due to lack of pty when
we use the exec to kill the task.
- In `utils.go/RegisterAllocs`, force query for allocations to wait on
wait index returned by registration call.
2019-09-10 13:45:16 -04:00
Lang Martin
4b8c9428f4
e2e/deployment DeploymentsForJob fail instead of nil, error passing
2019-06-04 14:31:42 -04:00
Lang Martin
22b6c2e6ad
e2e/deployment find the second deployment, use its status
2019-06-04 13:41:52 -04:00
Lang Martin
dd2f16a031
e2e add deployment to the list of e2e tests, minor fixes
2019-05-22 12:34:57 -04:00
Lang Martin
3a3c4426bb
e2e utils remove ineffectual assignment of allocs
2019-05-22 12:34:57 -04:00
Lang Martin
1a99a0f771
e2e utils error format arg match
2019-05-22 12:32:08 -04:00
Lang Martin
8b64574721
e2e util split new alloc and await placement, new WaitForDeployment
2019-05-22 12:32:08 -04:00
Michael Schurter
91d36f9f6a
e2e: add NomadAgent and basic client state test
...
The e2e test code is absolutely hideous and leaks processes and files
on disk. NomadAgent seems useful, but the clientstate e2e tests are very
messy and slow. The last test "Corrupt" is probably the most useful as
it explicitly corrupts the state file whereas the other tests attempt to
reproduce steps thought to cause corruption in earlier releases of
Nomad.
2019-03-21 07:14:34 -07:00
Michael Schurter
35eff08386
Apply suggestions from code review
...
Co-Authored-By: nickethier <ncethier@gmail.com >
2019-01-23 14:09:49 -05:00
Nick Ethier
6191fe3f2c
e2e: add tests for nomad driver upgrade path
2019-01-17 23:32:45 -05:00
Michael Schurter
c9dc5e4999
e2e: wait for at least N nodes to be ready
...
Before it was *exactly* N nodes which limited test portability between
clusters.
2019-01-08 14:39:37 -08:00
Mahmood Ali
bce7c9372d
goimport file
2019-01-04 08:53:50 -05:00
Preetha Appan
21810d0edd
Added waiting on client node ready state before running e2e tests
2019-01-03 16:16:20 -06:00
Preetha Appan
36b5435ed3
Increase alloc wait timeout in e2e test
2019-01-03 14:02:02 -06:00
Preetha Appan
1cfef83302
Increase timeout in e2e test
2019-01-03 11:22:21 -06:00
Danielle Tomlinson
002f19085a
e2e: goimports e2eutil/utils.go
2019-01-03 13:31:49 +01:00
Preetha Appan
7ad040166d
new e2e test for spread, and refactor affinity tests to share util methods
2018-12-19 21:25:32 -06:00