Commit Graph

13 Commits

Author SHA1 Message Date
Frank Schroeder 5bbef3b47e Revert "test: Run command/agent tests in parallel"
This reverts commit 17be40a73310e1a0d2461b175f6214381ac41039.
2017-04-27 14:39:04 -07:00
Frank Schroeder 58e0b5cb70 test: Run command/agent tests in parallel 2017-04-27 10:34:30 -07:00
Frank Schroeder 9f8f258d4d Remove duplicate constants
This patch removes duplicate internal copies of constants in the structs
package which are also defined in the api package. The api.KVOp type
with all its values for the TXN endpoint and the api.HealthXXX constants
are now used throughout the codebase.

This resulted in some circular dependencies in the testutil package
which have been resolved by copying code and constants and moving the
WaitForLeader function into a separate testrpc package.
2017-04-20 09:54:49 -07:00
Sean Chittenden 5ac7b893cc Use panic instead of returning a sentinel UUID values in unit tests 2016-02-01 16:42:04 -08:00
Sean Chittenden c470553b6b Factor out duplicate functions into a lib package
Consolidate code duplication and tests into a single lib package.  Most of these functions were from various **/util.go functions that couldn't be imported due to cyclic imports.  The consul/lib package is intended to be a terminal node in an import DAG and a place to stash various consul-only helper functions.  Pulled in hashicorp/go-uuid instead of consolidating UUID access.
2016-01-29 16:57:45 -08:00
Ryan Uber 6ecca376e4 agent: pass locally configured token during remote exec 2015-01-29 10:42:46 -08:00
William Tisäter 554fc14f7d Go format fix 2014-09-19 10:51:03 +02:00
Soren Hansen 63946e04c4 Also change the call sites. *sigh* 2014-09-18 12:55:09 +02:00
Soren Hansen 6f50f5d789 Fix style issue in remote_exec_test 2014-09-18 11:04:20 +02:00
Soren Hansen 2d77553be4 Remove test code duplication 2014-09-17 21:33:03 +02:00
Soren Hansen df2959ce42 Pass exitCode by reference
Arguments to defer statements are evaluated when the defer statement is
evaluated, so pass exitCode by reference instead.

Fixes issue #346
2014-09-17 21:17:51 +02:00
Armon Dadgar 7214fc37ea agent: Testing remote exec 2014-09-01 14:46:22 -07:00
Armon Dadgar 9cbc3986c5 agent: testing remote exec writer 2014-09-01 14:46:21 -07:00