Skip to content

Commit d653592

Browse files
jbamptonmrutkows
andauthored
chore: fix spelling (#1127)
* chore: fix spelling * Regen. i18n_resources.go Co-authored-by: Matt Rutkowski <mrutkowski@apache.org>
1 parent 03df112 commit d653592

22 files changed

Lines changed: 124 additions & 355 deletions

deployers/deploymentreader_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ func testLoadAndBindDeploymentYAML(t *testing.T, path string, triggerName string
9595
dReader := NewDeploymentReader(sDeployer)
9696
err := dReader.HandleYaml()
9797

98-
// DEBUG() Uncomment to display initial DeploymentDescriptor (manifest, deployemnt befopre binding)
98+
// DEBUG() Uncomment to display initial DeploymentDescriptor (manifest, deployment before binding)
9999
//fmt.Println(utils.ConvertMapToJSONString("BEFORE: dReader.DeploymentDescriptor", dReader.DeploymentDescriptor))
100100
//fmt.Println(utils.ConvertMapToJSONString("BEFORE: sDeployer.Deployment", sDeployer.Deployment))
101101

@@ -131,7 +131,7 @@ func TestDeploymentReader_ProjectBindTrigger(t *testing.T) {
131131
// Create an annotation (in manifest representation) with key we expect, with value that should be overwritten
132132
TEST_ANNOTATION := whisk.KeyValue{TEST_ANNOTATION_KEY, "foo"}
133133

134-
// create ServicedEployer
134+
// create ServiceDeployer
135135
sDeployer, dReader := testLoadAndBindDeploymentYAML(t, TEST_DATA, TEST_TRIGGER, TEST_ANNOTATION)
136136

137137
// test Project exists with expected name in Deployment file

deployers/whiskclient_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -282,5 +282,5 @@ func TestNewWhiskConfigWithAdditionalHeaders(t *testing.T) {
282282
newHeaderValue := "NewValue"
283283
AddAdditionalHeader(newHeader, newHeaderValue)
284284
config, _ := NewWhiskConfig(propPath, deploymentPath, manifestPath)
285-
assert.Equal(t, newHeaderValue, config.AdditionalHeaders.Get(newHeader), "Failed to set an addtional header")
285+
assert.Equal(t, newHeaderValue, config.AdditionalHeaders.Get(newHeader), "Failed to set an additional header")
286286
}

docs/sync_projects_between_client_and_server.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ whisk-managed:
3333

3434
> Where the text “OpenWhisk” is a constant prefix and “\0” is the NULL character. The <size_of_manifest_file> and <contents_of_manifest_file> vary depending on the file.
3535
36-
Now, subsequent deployments of the same project in `sync` mode, calculates a new `projectHash` on client and compares it with the one on the server for every entity in that project. This comparision could lead us to following two scenarios:
36+
Now, subsequent deployments of the same project in `sync` mode, calculates a new `projectHash` on client and compares it with the one on the server for every entity in that project. This comparison could lead us to following two scenarios:
3737

3838
* **Scenario 1:** If `projectHash` on client is same as `projectHash` on the server i.e. there were no changes in the project on the client side, the project on server side is left as is except wskdeploy redeploys all the entities from manifest file to capture any changes in deployment file.
3939

docs/wskdeploy_action_env_var_parms.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ In this example:
8686
- we further demonstrated how string values from environment variables could be concatenated with other strings within a Manifest file
8787

8888
### Notes:
89-
- These methods for binidng environment variables to input parameters are also available within Deployment files.
89+
- These methods for binding environment variables to input parameters are also available within Deployment files.
9090

9191
### Source code
9292
The manifest file for this example can be found here:

docs/wskdeploy_apigateway_http.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,9 +87,9 @@ Because a HTTP response disables the API Gateway default handling, you have to p
8787
- a `body` field that contains your normal payload,
8888
- an optional `headers` field that includes any HTTP header you want to set, typically `Content-Type`.
8989

90-
If you don't provide this structure, the API Gateway will generate a HTTP response with status code `204: No Content` and an empty body. If this occurs when it shouldn't, it's probably a sign that you have a HTTP response specified with the gateway but the undelying action doesn't return this structure.
90+
If you don't provide this structure, the API Gateway will generate a HTTP response with status code `204: No Content` and an empty body. If this occurs when it shouldn't, it's probably a sign that you have a HTTP response specified with the gateway but the underlying action doesn't return this structure.
9191

92-
When you want to return an error, you need to provide the same structure wrapped into an `error` object. If you don't wrap it into an `error` object, it will still work from an HTTP prespective but OpenWhisk will not recognise it as an error.
92+
When you want to return an error, you need to provide the same structure wrapped into an `error` object. If you don't wrap it into an `error` object, it will still work from an HTTP perspective but OpenWhisk will not recognise it as an error.
9393

9494
This structure will work with any language that is supported by OpenWhisk, such as python or Java. If you are using JavaScript, you can make use of `Promise.resolve` and `Promise.reject` to make your code more readable by removing the need for the `error` wrapper:
9595

docs/wskdeploy_apigateway_http_sequence.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ You should then see a JSON response with status code `200` and the following res
144144

145145
### Discussion
146146

147-
By combining HTTP responses and sequences, you can re-use existing actions that are not designed to return HTTP responses by adding the necesary wrapper to the final result. You need to be careful how errors are handled as they will short-circuit the sequence execution and return early.
147+
By combining HTTP responses and sequences, you can re-use existing actions that are not designed to return HTTP responses by adding the necessary wrapper to the final result. You need to be careful how errors are handled as they will short-circuit the sequence execution and return early.
148148

149149
### Source code
150150
The source code for the manifest and JavaScript files can be found here:

docs/wskdeploy_apigateway_open_api_spec.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ There are two major differences from _"Hello World" API_ example:
112112
- the root key is now project as the open api specification is a project wide concept.
113113
- a new `config` key specifying where the Open API Specification is located.
114114

115-
The `config` key under `project` in the manifest file specifies where the Open API Specification is located. The keyword `config` was chosen to remain consistent with the `config-file` terminology in OpenWhisk CLI flag option. The Open API Specification describes in a JSON document the the base path, endpoint, HTTP verb, and other details describing the API. For example, the document above describes a GET endpoint at `/hello/world` that recieves JSON as input and returns JSON as output.
115+
The `config` key under `project` in the manifest file specifies where the Open API Specification is located. The keyword `config` was chosen to remain consistent with the `config-file` terminology in OpenWhisk CLI flag option. The Open API Specification describes in a JSON document the the base path, endpoint, HTTP verb, and other details describing the API. For example, the document above describes a GET endpoint at `/hello/world` that receives JSON as input and returns JSON as output.
116116

117117
### Deploying
118118

docs/wskdeploy_faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
### What is the order of precedence for OpenWhisk credentials?
3232

33-
- The ```wskdeploy``` utility finds the credentials (apihost, namespace, and auth) as well as the APIGW_ACCESS_TOKEN in the folowing precedence from highest to lowest:
33+
- The ```wskdeploy``` utility finds the credentials (apihost, namespace, and auth) as well as the APIGW_ACCESS_TOKEN in the following precedence from highest to lowest:
3434
- ```wskdeploy``` command line (i.e. ```wskdeploy --apihost --namespace --auth```)
3535
- The deployment file
3636
- The manifest file

docs/wskdeploy_sequence_basic.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121

2222
## Creating a basic Action sequence
2323

24-
OpenWhisk supports creating a new, named composite action from sequencung multiple, compatible Actions.
24+
OpenWhisk supports creating a new, named composite action from sequencing multiple, compatible Actions.
2525

2626
This example:
2727
- Shows how to use a Manifest to sequence three actions together to:
@@ -180,7 +180,7 @@ params: {
180180
"job": "gentleman"
181181
}
182182
```
183-
the input paramaters are augmented by the first Action in the sequence to produce the output "member" object:
183+
the input parameters are augmented by the first Action in the sequence to produce the output "member" object:
184184

185185
```json
186186
member: {

parsers/manifest_parser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ func (dm *YAMLParser) readActionFunction(manifestFilePath string, manifestFileNa
660660

661661
if utils.IsDirectory(actionFilePath) {
662662
zipFileName = actionFilePath + "." + runtimes.ZIP_FILE_EXTENSION
663-
err := utils.NewZipWritter(actionFilePath, zipFileName, action.Include, action.Exclude, filepath.Dir(manifestFilePath)).Zip()
663+
err := utils.NewZipWriter(actionFilePath, zipFileName, action.Include, action.Exclude, filepath.Dir(manifestFilePath)).Zip()
664664
if err != nil {
665665
return actionFilePath, nil, err
666666
}

0 commit comments

Comments
 (0)