clusters_test.go | |
---|---|
|
|
Documentation in literate-programming-style is available at: https://redhatinsights.github.io/insights-operator-cli/packages/tests/clusters_test.html |
|
generateClusterName generates cluster name in expected GUID-like format |
|
random data generation |
|
format random data as proper cluster name |
|
TestListClustersCommand function checks the 'list clusters' command |
|
start the CLI client |
|
client needs to be shut down at the end of this test |
|
at the end, the standard prompt has to be displayed |
|
TestAddClusterCommand function checks the 'add cluster' command followed by 'list clusters' one |
|
start the CLI client |
|
client needs to be shut down at the end of this test |
|
try to add (register) new cluster |
|
now list clusters and check if the new cluster has been really added |
|
at the end, the standard prompt has to be displayed |
|