MCPcopy Create free account
hub / github.com/apache/openwhisk-cli / TestShowCLIBuildVersion

Function TestShowCLIBuildVersion

tests/src/integration/command_test.go:65–73  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

63}
64
65func TestShowCLIBuildVersion(t *testing.T) {
66 stdout, err := wsk.RunCommand("property", "get", "--cliversion")
67 assert.Equal(t, nil, err, "The command property get --cliversion failed to run.")
68 output := common.RemoveRedundantSpaces(string(stdout))
69 assert.NotContains(t, output, common.PropDisplayCLIVersion+" not set",
70 "The output of the command property get --cliversion contains "+common.PropDisplayCLIVersion+" not set")
71 assert.Contains(t, output, common.PropDisplayCLIVersion,
72 "The output of the command property get --cliversion does not contain "+common.PropDisplayCLIVersion)
73}
74
75func TestShowAPIVersion(t *testing.T) {
76 stdout, err := wsk.RunCommand("property", "get", "--apiversion")

Callers

nothing calls this directly

Calls 2

RemoveRedundantSpacesFunction · 0.92
RunCommandMethod · 0.80

Tested by

no test coverage detected