Skip to content

Commit fcac2ac

Browse files
authored
chore: fix spelling (#499)
1 parent 2d98247 commit fcac2ac

File tree

6 files changed

+22
-22
lines changed

6 files changed

+22
-22
lines changed

commands/activation.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func lastFlag(args []string) ([]string, error) {
272272
Skip: 0,
273273
}
274274
activations, _, err := Client.Activations.List(options)
275-
if err != nil { // Checks Activations.List for errors when retrieving latest activaiton
275+
if err != nil { // Checks Activations.List for errors when retrieving latest activation
276276
whisk.Debug(whisk.DbgError, "Client.Activations.List(%#v) error during lastFlag: %s\n", options, err)
277277
return args, err
278278
}

commands/util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -322,7 +322,7 @@ func printSummary(collection interface{}) {
322322
}
323323
}
324324

325-
// Used to print Action, Tigger, Package, and Rule lists
325+
// Used to print Action, Trigger, Package, and Rule lists
326326
// Param: Takes in a array of Printable interface, and the name of the command
327327
// being sent to it
328328
// **Note**: The name should be an empty string for APIs.

tests/src/integration/command_test.go

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ func TestHelpUsageInfoCommandLanguage(t *testing.T) {
6565
func TestShowCLIBuildVersion(t *testing.T) {
6666
stdout, err := wsk.RunCommand("property", "get", "--cliversion")
6767
assert.Equal(t, nil, err, "The command property get --cliversion failed to run.")
68-
output := common.RemoveRedundentSpaces(string(stdout))
68+
output := common.RemoveRedundantSpaces(string(stdout))
6969
assert.NotContains(t, output, common.PropDisplayCLIVersion+" not set",
7070
"The output of the command property get --cliversion contains "+common.PropDisplayCLIVersion+" not set")
7171
assert.Contains(t, output, common.PropDisplayCLIVersion,
@@ -89,7 +89,7 @@ func TestDefaultNamespace(t *testing.T) {
8989

9090
stdout, err := wsk.RunCommand("property", "get", "-i", "--namespace")
9191
assert.Equal(t, nil, err, "The command property get -i --namespace failed to run.")
92-
assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)), common.PropDisplayNamespace+" _",
92+
assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)), common.PropDisplayNamespace+" _",
9393
"The output of the command does not contain "+common.PropDisplayCLIVersion+" _")
9494
common.DeleteFile(tmpProp)
9595
}
@@ -113,12 +113,12 @@ func TestValidateDefaultProperties(t *testing.T) {
113113

114114
stdout, err = wsk.RunCommand("property", "get", "--auth")
115115
assert.Equal(t, nil, err, "The command property get --auth failed to run.")
116-
assert.Equal(t, common.PropDisplayAuth, common.RemoveRedundentSpaces(string(stdout)),
116+
assert.Equal(t, common.PropDisplayAuth, common.RemoveRedundantSpaces(string(stdout)),
117117
"The output of the command does not equal to "+common.PropDisplayAuth)
118118

119119
stdout, err = wsk.RunCommand("property", "get", "--apihost")
120120
assert.Equal(t, nil, err, "The command property get --apihost failed to run.")
121-
assert.Equal(t, common.PropDisplayAPIHost, common.RemoveRedundentSpaces(string(stdout)),
121+
assert.Equal(t, common.PropDisplayAPIHost, common.RemoveRedundantSpaces(string(stdout)),
122122
"The output of the command does not equal to "+common.PropDisplayAPIHost)
123123

124124
common.DeleteFile(tmpProp)
@@ -180,7 +180,7 @@ func TestRejectCommAPIHostNotSet(t *testing.T) {
180180

181181
stdout, err := wsk.RunCommand("property", "get")
182182
assert.NotEqual(t, nil, err, "The command property get --apihost --apiversion should fail to run.")
183-
assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)),
183+
assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)),
184184
"The API host is not valid: An API host must be provided",
185185
"The output of the command does not contain \"The API host is not valid: An API host must be provided\".")
186186
common.DeleteFile(tmpProp)
@@ -548,7 +548,7 @@ func TestRejectCommandsNotEnoughParamsArgs(t *testing.T) {
548548
}
549549

550550
// Test case to reject commands that are executed with a missing or invalid parameter or annotation file.
551-
func TestRejectCommandsMissingIvalidParamsAnno(t *testing.T) {
551+
func TestRejectCommandsMissingInvalidParamsAnno(t *testing.T) {
552552
initInvalidArgsMissingInvalidParamsAnno()
553553
for _, invalidArg := range invalidArgs {
554554
stdout, err := wsk.RunCommand(invalidArg.Cmd...)

tests/src/integration/common/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ func DeleteFile(filePath string) {
9393
checkError(err)
9494
}
9595

96-
func RemoveRedundentSpaces(in string) (out string) {
96+
func RemoveRedundantSpaces(in string) (out string) {
9797
white := false
9898
for _, c := range in {
9999
if unicode.IsSpace(c) {

tests/src/integration/integration_test.go

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -363,12 +363,12 @@ func TestShowAPIBuildVersion(t *testing.T) {
363363
assert.Equal(t, nil, err, "The command property set --apihost --apiversion failed to run.")
364364
stdout, err = wsk.RunCommand("property", "get", "-i", "--apibuild")
365365
assert.Equal(t, nil, err, "The command property get -i --apibuild failed to run.")
366-
println(common.RemoveRedundentSpaces(string(stdout)))
367-
assert.NotContains(t, common.RemoveRedundentSpaces(string(stdout)), common.PropDisplayAPIBuild+" Unknown",
366+
println(common.RemoveRedundantSpaces(string(stdout)))
367+
assert.NotContains(t, common.RemoveRedundantSpaces(string(stdout)), common.PropDisplayAPIBuild+" Unknown",
368368
"The output of the command property get --apibuild does not contain "+common.PropDisplayAPIBuild+" Unknown")
369-
assert.NotContains(t, common.RemoveRedundentSpaces(string(stdout)), "Unable to obtain API build information",
369+
assert.NotContains(t, common.RemoveRedundantSpaces(string(stdout)), "Unable to obtain API build information",
370370
"The output of the command property get --apibuild does not contain \"Unable to obtain API build information\".")
371-
assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)), common.PropDisplayAPIBuild+" 20",
371+
assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)), common.PropDisplayAPIBuild+" 20",
372372
"The output of the command property get --apibuild does not contain"+common.PropDisplayAPIBuild+" 20")
373373
common.DeleteFile(tmpProp)
374374
}
@@ -384,9 +384,9 @@ func TestFailShowAPIBuildVersion(t *testing.T) {
384384
assert.Equal(t, nil, err, "The command property set --apihost failed to run.")
385385
stdout, err := wsk.RunCommand("property", "get", "-i", "--apibuild")
386386
assert.NotEqual(t, nil, err, "The command property get -i --apibuild does not raise any error.")
387-
assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)), common.PropDisplayAPIBuild+" Unknown",
387+
assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)), common.PropDisplayAPIBuild+" Unknown",
388388
"The output of the command property get --apibuild does not contain"+common.PropDisplayAPIBuild+" Unknown")
389-
assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)), "Unable to obtain API build information",
389+
assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)), "Unable to obtain API build information",
390390
"The output of the command property get --apibuild does not contain \"Unable to obtain API build information\".")
391391
}
392392

@@ -401,13 +401,13 @@ func TestShowAPIBuildVersionHTTP(t *testing.T) {
401401
stdout, err := wsk.RunCommand("property", "set", "--apihost", apihost)
402402
assert.Equal(t, nil, err, "The command property set --apihost failed to run.")
403403
stdout, err = wsk.RunCommand("property", "get", "-i", "--apibuild")
404-
println(common.RemoveRedundentSpaces(string(stdout)))
404+
println(common.RemoveRedundantSpaces(string(stdout)))
405405
//assert.Equal(t, nil, err, "The command property get -i --apibuild failed to run.")
406-
assert.NotContains(t, common.RemoveRedundentSpaces(string(stdout)), common.PropDisplayAPIBuild+" Unknown",
406+
assert.NotContains(t, common.RemoveRedundantSpaces(string(stdout)), common.PropDisplayAPIBuild+" Unknown",
407407
"The output of the command property get --apibuild does not contain "+common.PropDisplayAPIBuild+" Unknown")
408-
assert.NotContains(t, common.RemoveRedundentSpaces(string(stdout)), "Unable to obtain API build information",
408+
assert.NotContains(t, common.RemoveRedundantSpaces(string(stdout)), "Unable to obtain API build information",
409409
"The output of the command property get --apibuild does not contain \"Unable to obtain API build information\".")
410-
assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)), common.PropDisplayAPIBuild+" 20",
410+
assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)), common.PropDisplayAPIBuild+" 20",
411411
"The output of the command property get --apibuild does not contain "+common.PropDisplayAPIBuild+" 20")
412412
common.DeleteFile(tmpProp)
413413
}
@@ -422,9 +422,9 @@ func TestRejectAuthCommNoKey(t *testing.T) {
422422
stdout, err := wsk.RunCommand("list", "--apihost", wsk.Wskprops.APIHost,
423423
"--apiversion", wsk.Wskprops.Apiversion)
424424
assert.NotEqual(t, nil, err, "The command list should fail to run.")
425-
assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)), "usage.",
425+
assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)), "usage.",
426426
"The output of the command does not contain \"usage.\".")
427-
assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)), "--auth is required",
427+
assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)), "--auth is required",
428428
"The output of the command does not contain \"--auth is required\".")
429429
common.DeleteFile(tmpProp)
430430
}

wski18n/resources/en_US.all.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1585,7 +1585,7 @@
15851585
},
15861586
{
15871587
"id": "CMD_DESC_LONG_DEPLOY",
1588-
"translation": "To begin working with deploy, run the 'wsk project deploy' command:\n\n\t$ wsk project deploy\n\nThis will deploy OpenWhisk assets specified in manifest.yaml or manifest.yml.\nIf the working directory doesn't contain a manifest file, wsk project deploy prints this help message.\n\nThe most common ways of using wsk project deploy to deploy and/or undeploy OpenWhisk assets are:\n\n$ wsk project deploy\n$ wsk project deploy --manifest path/to/manifest.yaml\n$ wsk project deploy --manifest path/to/manifest.yaml --deployment path/to/deployment.yaml\n$ wsk project undeploy\n$ wsk project undeploy --manifest path/to/manifest.yaml\n$ wsk project undeploy --manifest path/to/manifest.yaml --deployment path/to/deployment.yaml\n\nAunthentication:\nwsk project deploy reads credentials from $HOME/.wskprops by default.\nOverwrite default config file on CLI:\n $ wsk project deploy --config <config file> --manifest path/to/manifest.yaml\nOr specify all three on CLI:\n $ wsk project deploy --apihost HOST --auth KEY --namespace NAMESPACE --manifest path/to/manifest.yaml"
1588+
"translation": "To begin working with deploy, run the 'wsk project deploy' command:\n\n\t$ wsk project deploy\n\nThis will deploy OpenWhisk assets specified in manifest.yaml or manifest.yml.\nIf the working directory doesn't contain a manifest file, wsk project deploy prints this help message.\n\nThe most common ways of using wsk project deploy to deploy and/or undeploy OpenWhisk assets are:\n\n$ wsk project deploy\n$ wsk project deploy --manifest path/to/manifest.yaml\n$ wsk project deploy --manifest path/to/manifest.yaml --deployment path/to/deployment.yaml\n$ wsk project undeploy\n$ wsk project undeploy --manifest path/to/manifest.yaml\n$ wsk project undeploy --manifest path/to/manifest.yaml --deployment path/to/deployment.yaml\n\nAuthentication:\nwsk project deploy reads credentials from $HOME/.wskprops by default.\nOverwrite default config file on CLI:\n $ wsk project deploy --config <config file> --manifest path/to/manifest.yaml\nOr specify all three on CLI:\n $ wsk project deploy --apihost HOST --auth KEY --namespace NAMESPACE --manifest path/to/manifest.yaml"
15891589
},
15901590
{
15911591
"id": "CMD_DESC_LONG_UNDEPLOY",

0 commit comments

Comments
 (0)