e92ec69f61
Update tests to use gotest.tools 👼
...
Signed-off-by: Vincent Demeester <vincent@sbr.pm >
Upstream-commit: 2c4de4fb5e
Component: cli
2018-06-08 18:24:26 +02:00
ef941c7ad3
Convert assert.Check(t, is.Error()) to assert.Error
...
git grep -l -P '^\s+assert\.Check\(t, is\.Error\(' | \
xargs perl -pi -e 's/^(\s+assert\.)Check\(t, is\.Error\((.*)\)$/\1Error(t, \2/'
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: e15b208e96
Component: cli
2018-03-06 16:00:28 -05:00
b52b42c8db
Convert assert.Check with
...
git grep -l -P '^\s+assert\.Check\(t, ' | \
xargs perl -pi -e 's/^(\s+assert)\.Check(\(t, (?!is).*(\.Execute\(|\.Set\(|\.Write\(|\.Close\(|\.Untar\(|\.WriteFile\(|Validate\().*\)$)/\1.NilError\2/'
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 078cbc9c4b
Component: cli
2018-03-06 15:43:53 -05:00
ad1a2c9e1d
Automated migration
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 39c2ca57c1
Component: cli
2018-03-05 19:41:17 -05:00
b141cbce57
Move internal/test package out of cli.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: b3f843afe2
Component: cli
2017-08-22 10:14:25 -04:00
79c79c9b8f
Update node command tests to the new golden
...
Also remove some superfluous tests that are now covered by a strict golden.Assert
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 0e2bf7420a
Component: cli
2017-08-16 14:23:15 -04:00
1e5fbb03aa
Update FakeCli to remove duplication in tests.
...
Use byte buffers by default, since that is what is done most of the time.
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 69b142b52a
Component: cli
2017-07-11 14:49:30 -04:00
e2861e049e
add unit tests to stack package
...
Signed-off-by: Arash Deshmeh <adeshmeh@ca.ibm.com >
Upstream-commit: 535af2d868
Component: cli
2017-06-20 14:31:00 -04:00
82309a74cd
Update imports.
...
Signed-off-by: Daniel Nephin <dnephin@docker.com >
Upstream-commit: 10641c2aae
Component: cli
2017-04-17 18:07:56 -04:00
b2d0c4c107
Import docker/docker/cli
...
Signed-off-by: Daniel Nephin <dnephin@gmail.com >
Upstream-commit: 1630fc40f8
Component: cli
2017-04-17 17:40:59 -04:00