common_commands_test.go | |
---|---|
|
|
Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-cli/packages/tests/commoncommandstest.html |
|
TestCheckQuitCommand check whether the client can be started and stopped using the 'quit', 'exit' or 'bye' command. |
|
all commands that can be used to quit the CLI client |
|
try all quit-like commands |
|
start the CLI client |
|
send quit-like command to it |
|
and check if the client has been stopped |
|
TestCheckVersionCommand check the output of 'version' command. |
|
start the CLI client |
|
client needs to be shut down at the end of this test |
|
send the 'version' command to the CLI client and check its basic output |
|
TODO: more thorought check of 'version' value |
|
TODO: more thorought check of 'compiled' value |
|
at the end, the standard prompt has to be displayed |
|