summaryrefslogtreecommitdiff
path: root/cmd/kpod/create_cli_test.go
Commit message (Collapse)AuthorAge
* Fix up handling of environment variablesDaniel J Walsh2017-11-20
| | | | | | | | | | | | | | The way docker works is if a user specifies a non `-e Name=Value`, IE just a `-e Name`, then the environment variable Name from the clients OS.ENV is used. Also by default Docker containers run with the HOSTNAME environment set to the HOSTNAME specified for the container. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com> Closes: #21 Approved by: baude
* util_test.go: Unittests for util.gobaude2017-11-03
| | | | | | Add unit tests for func StringInSlice. Signed-off-by: baude <bbaude@redhat.com>
* create_cli_test.go: Unittestsbaude2017-11-03
Create unittests for the create_cli helper functions. As such, remove cli context usage from the functions to further divide between cli input and parsing. Also, simplifies unit testing. Signed-off-by: baude <bbaude@redhat.com>