Frank Schroeder
8f943542b0
test: use cli.NewMockUi instead of new(cli.MockUi)
...
Use the constructor function to prevent a nil panic
if there was no write to the output buffers.
2017-05-31 00:29:26 +02:00
Frank Schroeder
9509ab463c
test: run command tests in parallel
2017-05-31 00:29:25 +02:00
Frank Schroeder
53c1c86ab3
test: refactor command tests to use TestAgent
2017-05-31 00:29:24 +02:00
Frank Schroeder
65b5c51ec7
test: add helper for ioutil.TempDir/TempFile
...
This creates a simplified helper for temporary directories and files.
All path names are prefixed with the name of the current test.
All files and directories are stored either in /tmp/consul-test
or /tmp if the former could not be created.
Using the system temp dir breaks some tests on macOS where the unix
socket path becomes too long.
2017-05-12 22:12:47 +02:00
Frank Schroeder
cf3ec1cf5c
golint: Rename fields and structs
2017-04-25 09:26:13 -07:00
Kyle Havlovitz
14415741a3
Convert members command to use base.Command
2017-02-09 17:12:47 -05:00
Adam Renberg
ed3b0dd9ee
Include DC in the members command output
2015-05-15 23:26:34 +02:00
Armon Dadgar
3847db27b5
command/members: Remove tests for old role filter
2014-06-08 14:02:24 -07:00
William Tisäter
b278d1de94
Return exit code 2 if member filter doesn't match any node
2014-05-04 11:54:45 +02:00
Armon Dadgar
6fd3f81c48
command: Fixing more tests
2014-04-11 16:34:29 -07:00
Armon Dadgar
356dff3ec6
Adding the various CLI commands
2013-12-31 13:06:33 -08:00