(t *testing.T)
| 63 | } |
| 64 | |
| 65 | func 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 | |
| 75 | func TestShowAPIVersion(t *testing.T) { |
| 76 | stdout, err := wsk.RunCommand("property", "get", "--apiversion") |
nothing calls this directly
no test coverage detected