Mahmood Ali
8b688cc70e
tests: enable raw_exec driver
2019-08-29 20:26:50 -04:00
Mahmood Ali
e14619da45
raw_exec: be defensive when disabled
...
Ensure that no raw_exec task can run on a client where it's disabled,
even if a flaw lead to client being assigned a raw_exec task
unexpectedly.
2019-08-29 09:09:40 -04:00
Mahmood Ali
d6250ec0d6
tests: IsTravis() -> IsCI()
...
Replace IsTravis() references that is intended for more CI environments
rather than for Travis environment specifically.
2019-02-20 08:21:03 -05:00
Mahmood Ali
941f89e0fe
tests: add hcl task driver config parsing tests ( #5314 )
...
* drivers: add config parsing tests
Add basic tests for parsing and encoding task config.
* drivers/docker: fix some config declarations
* refactor and document config parse helpers
2019-02-12 14:46:37 -05:00
Alex Dadgar
e46d67a889
Driver tests do not use hcl2/hcl, hclspec, or hclutils
2019-01-22 15:43:34 -08:00
Danielle Tomlinson
0ecef70715
rawexec: Fix Exec test on windows
2019-01-17 18:43:14 +01:00
Danielle Tomlinson
ffcd76f03f
rawexec: SIGINT is not available on Windows
2019-01-17 18:43:14 +01:00
Alex Dadgar
437f03d877
recover
2019-01-07 14:49:40 -08:00
Preetha Appan
26594aa31e
Standardize driver health description messages for all drivers
2019-01-06 22:06:38 -06:00
Alex Dadgar
ed4f8eac6e
Add plugin API versioning to plugin loader and plugins
2018-12-18 16:48:00 -08:00
Mahmood Ali
d31e52b1f6
tests: update stop/kill tests with new pattern
...
Update rawexec and rkt stop/kill tests with the patterns introduced in
7a49e9b68e . This implementation should be
more resilient to discrepancy between task stopping and task being marked as exited.
2018-12-11 09:35:26 -05:00
Danielle Tomlinson
1c98fdf935
plugins: Move driver testing support to subpackage
...
this allows us to drop a cyclical import, but is subobptimal as it
requires BaseDriver tests to move. This falls firmly into the realm of
being a hack. Alternatives welcome.
2018-12-01 17:29:39 +01:00
Preetha Appan
829bf74aa8
modify fingerprint interface to use typed attribute struct
2018-11-28 10:01:03 -06:00
Michael Schurter
0d1a8bf7fd
rawexec: fix fingerprint results and tests
...
In tests:
* always cleanup (Kill) the harness
* don't call SetConfig more than once (a race)
* avoid cgroups to allow running without being root
2018-10-30 17:16:22 -07:00
Nick Ethier
95d381cff7
rename NomadConfig to ClientAgentConfig
2018-10-29 21:34:34 -04:00
Preetha Appan
53381035db
Get raw exec tests compiling and passing again
2018-10-16 16:56:56 -07:00
Alex Dadgar
627e20801d
Fix lints
2018-10-16 16:56:56 -07:00
Nick Ethier
207522be55
drivers/rawexec: PR comments and feedback
2018-10-16 16:56:55 -07:00