This is an automated email from the ASF dual-hosted git repository.
rabbah pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openwhisk-cli.git
The following commit(s) were added to refs/heads/master by this push:
new fcac2ac chore: fix spelling (#499)
fcac2ac is described below
commit fcac2ac4265ec3ec7f844da95e6197b45474b407
Author: John Bampton <[email protected]>
AuthorDate: Wed Mar 10 02:23:24 2021 +1000
chore: fix spelling (#499)
---
commands/activation.go | 2 +-
commands/util.go | 2 +-
tests/src/integration/command_test.go | 12 ++++++------
tests/src/integration/common/utils.go | 2 +-
tests/src/integration/integration_test.go | 24 ++++++++++++------------
wski18n/resources/en_US.all.json | 2 +-
6 files changed, 22 insertions(+), 22 deletions(-)
diff --git a/commands/activation.go b/commands/activation.go
index 0022016..2048653 100644
--- a/commands/activation.go
+++ b/commands/activation.go
@@ -272,7 +272,7 @@ func lastFlag(args []string) ([]string, error) {
Skip: 0,
}
activations, _, err := Client.Activations.List(options)
- if err != nil { // Checks Activations.List for errors when
retrieving latest activaiton
+ if err != nil { // Checks Activations.List for errors when
retrieving latest activation
whisk.Debug(whisk.DbgError,
"Client.Activations.List(%#v) error during lastFlag: %s\n", options, err)
return args, err
}
diff --git a/commands/util.go b/commands/util.go
index 0a4e873..3fd930e 100644
--- a/commands/util.go
+++ b/commands/util.go
@@ -322,7 +322,7 @@ func printSummary(collection interface{}) {
}
}
-// Used to print Action, Tigger, Package, and Rule lists
+// Used to print Action, Trigger, Package, and Rule lists
// Param: Takes in a array of Printable interface, and the name of the command
// being sent to it
// **Note**: The name should be an empty string for APIs.
diff --git a/tests/src/integration/command_test.go
b/tests/src/integration/command_test.go
index 4bed4ac..9be830b 100644
--- a/tests/src/integration/command_test.go
+++ b/tests/src/integration/command_test.go
@@ -65,7 +65,7 @@ func TestHelpUsageInfoCommandLanguage(t *testing.T) {
func TestShowCLIBuildVersion(t *testing.T) {
stdout, err := wsk.RunCommand("property", "get", "--cliversion")
assert.Equal(t, nil, err, "The command property get --cliversion failed
to run.")
- output := common.RemoveRedundentSpaces(string(stdout))
+ output := common.RemoveRedundantSpaces(string(stdout))
assert.NotContains(t, output, common.PropDisplayCLIVersion+" not set",
"The output of the command property get --cliversion contains
"+common.PropDisplayCLIVersion+" not set")
assert.Contains(t, output, common.PropDisplayCLIVersion,
@@ -89,7 +89,7 @@ func TestDefaultNamespace(t *testing.T) {
stdout, err := wsk.RunCommand("property", "get", "-i", "--namespace")
assert.Equal(t, nil, err, "The command property get -i --namespace
failed to run.")
- assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)),
common.PropDisplayNamespace+" _",
+ assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)),
common.PropDisplayNamespace+" _",
"The output of the command does not contain
"+common.PropDisplayCLIVersion+" _")
common.DeleteFile(tmpProp)
}
@@ -113,12 +113,12 @@ func TestValidateDefaultProperties(t *testing.T) {
stdout, err = wsk.RunCommand("property", "get", "--auth")
assert.Equal(t, nil, err, "The command property get --auth failed to
run.")
- assert.Equal(t, common.PropDisplayAuth,
common.RemoveRedundentSpaces(string(stdout)),
+ assert.Equal(t, common.PropDisplayAuth,
common.RemoveRedundantSpaces(string(stdout)),
"The output of the command does not equal to
"+common.PropDisplayAuth)
stdout, err = wsk.RunCommand("property", "get", "--apihost")
assert.Equal(t, nil, err, "The command property get --apihost failed to
run.")
- assert.Equal(t, common.PropDisplayAPIHost,
common.RemoveRedundentSpaces(string(stdout)),
+ assert.Equal(t, common.PropDisplayAPIHost,
common.RemoveRedundantSpaces(string(stdout)),
"The output of the command does not equal to
"+common.PropDisplayAPIHost)
common.DeleteFile(tmpProp)
@@ -180,7 +180,7 @@ func TestRejectCommAPIHostNotSet(t *testing.T) {
stdout, err := wsk.RunCommand("property", "get")
assert.NotEqual(t, nil, err, "The command property get --apihost
--apiversion should fail to run.")
- assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)),
+ assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)),
"The API host is not valid: An API host must be provided",
"The output of the command does not contain \"The API host is
not valid: An API host must be provided\".")
common.DeleteFile(tmpProp)
@@ -548,7 +548,7 @@ func TestRejectCommandsNotEnoughParamsArgs(t *testing.T) {
}
// Test case to reject commands that are executed with a missing or invalid
parameter or annotation file.
-func TestRejectCommandsMissingIvalidParamsAnno(t *testing.T) {
+func TestRejectCommandsMissingInvalidParamsAnno(t *testing.T) {
initInvalidArgsMissingInvalidParamsAnno()
for _, invalidArg := range invalidArgs {
stdout, err := wsk.RunCommand(invalidArg.Cmd...)
diff --git a/tests/src/integration/common/utils.go
b/tests/src/integration/common/utils.go
index f211ff7..a705bed 100644
--- a/tests/src/integration/common/utils.go
+++ b/tests/src/integration/common/utils.go
@@ -93,7 +93,7 @@ func DeleteFile(filePath string) {
checkError(err)
}
-func RemoveRedundentSpaces(in string) (out string) {
+func RemoveRedundantSpaces(in string) (out string) {
white := false
for _, c := range in {
if unicode.IsSpace(c) {
diff --git a/tests/src/integration/integration_test.go
b/tests/src/integration/integration_test.go
index 2df9d87..b51851b 100644
--- a/tests/src/integration/integration_test.go
+++ b/tests/src/integration/integration_test.go
@@ -363,12 +363,12 @@ func TestShowAPIBuildVersion(t *testing.T) {
assert.Equal(t, nil, err, "The command property set --apihost
--apiversion failed to run.")
stdout, err = wsk.RunCommand("property", "get", "-i", "--apibuild")
assert.Equal(t, nil, err, "The command property get -i --apibuild
failed to run.")
- println(common.RemoveRedundentSpaces(string(stdout)))
- assert.NotContains(t, common.RemoveRedundentSpaces(string(stdout)),
common.PropDisplayAPIBuild+" Unknown",
+ println(common.RemoveRedundantSpaces(string(stdout)))
+ assert.NotContains(t, common.RemoveRedundantSpaces(string(stdout)),
common.PropDisplayAPIBuild+" Unknown",
"The output of the command property get --apibuild does not
contain "+common.PropDisplayAPIBuild+" Unknown")
- assert.NotContains(t, common.RemoveRedundentSpaces(string(stdout)),
"Unable to obtain API build information",
+ assert.NotContains(t, common.RemoveRedundantSpaces(string(stdout)),
"Unable to obtain API build information",
"The output of the command property get --apibuild does not
contain \"Unable to obtain API build information\".")
- assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)),
common.PropDisplayAPIBuild+" 20",
+ assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)),
common.PropDisplayAPIBuild+" 20",
"The output of the command property get --apibuild does not
contain"+common.PropDisplayAPIBuild+" 20")
common.DeleteFile(tmpProp)
}
@@ -384,9 +384,9 @@ func TestFailShowAPIBuildVersion(t *testing.T) {
assert.Equal(t, nil, err, "The command property set --apihost failed to
run.")
stdout, err := wsk.RunCommand("property", "get", "-i", "--apibuild")
assert.NotEqual(t, nil, err, "The command property get -i --apibuild
does not raise any error.")
- assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)),
common.PropDisplayAPIBuild+" Unknown",
+ assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)),
common.PropDisplayAPIBuild+" Unknown",
"The output of the command property get --apibuild does not
contain"+common.PropDisplayAPIBuild+" Unknown")
- assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)),
"Unable to obtain API build information",
+ assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)),
"Unable to obtain API build information",
"The output of the command property get --apibuild does not
contain \"Unable to obtain API build information\".")
}
@@ -401,13 +401,13 @@ func TestShowAPIBuildVersionHTTP(t *testing.T) {
stdout, err := wsk.RunCommand("property", "set", "--apihost", apihost)
assert.Equal(t, nil, err, "The command property set --apihost failed to
run.")
stdout, err = wsk.RunCommand("property", "get", "-i", "--apibuild")
- println(common.RemoveRedundentSpaces(string(stdout)))
+ println(common.RemoveRedundantSpaces(string(stdout)))
//assert.Equal(t, nil, err, "The command property get -i --apibuild
failed to run.")
- assert.NotContains(t, common.RemoveRedundentSpaces(string(stdout)),
common.PropDisplayAPIBuild+" Unknown",
+ assert.NotContains(t, common.RemoveRedundantSpaces(string(stdout)),
common.PropDisplayAPIBuild+" Unknown",
"The output of the command property get --apibuild does not
contain "+common.PropDisplayAPIBuild+" Unknown")
- assert.NotContains(t, common.RemoveRedundentSpaces(string(stdout)),
"Unable to obtain API build information",
+ assert.NotContains(t, common.RemoveRedundantSpaces(string(stdout)),
"Unable to obtain API build information",
"The output of the command property get --apibuild does not
contain \"Unable to obtain API build information\".")
- assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)),
common.PropDisplayAPIBuild+" 20",
+ assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)),
common.PropDisplayAPIBuild+" 20",
"The output of the command property get --apibuild does not
contain "+common.PropDisplayAPIBuild+" 20")
common.DeleteFile(tmpProp)
}
@@ -422,9 +422,9 @@ func TestRejectAuthCommNoKey(t *testing.T) {
stdout, err := wsk.RunCommand("list", "--apihost", wsk.Wskprops.APIHost,
"--apiversion", wsk.Wskprops.Apiversion)
assert.NotEqual(t, nil, err, "The command list should fail to run.")
- assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)),
"usage.",
+ assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)),
"usage.",
"The output of the command does not contain \"usage.\".")
- assert.Contains(t, common.RemoveRedundentSpaces(string(stdout)),
"--auth is required",
+ assert.Contains(t, common.RemoveRedundantSpaces(string(stdout)),
"--auth is required",
"The output of the command does not contain \"--auth is
required\".")
common.DeleteFile(tmpProp)
}
diff --git a/wski18n/resources/en_US.all.json b/wski18n/resources/en_US.all.json
index 04f25a1..978925c 100644
--- a/wski18n/resources/en_US.all.json
+++ b/wski18n/resources/en_US.all.json
@@ -1585,7 +1585,7 @@
},
{
"id": "CMD_DESC_LONG_DEPLOY",
- "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 [...]
+ "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 [...]
},
{
"id": "CMD_DESC_LONG_UNDEPLOY",