diff --git a/pkg/attributes/attributes.go b/pkg/attributes/attributes.go index 282caf2d6..b8b5d4904 100644 --- a/pkg/attributes/attributes.go +++ b/pkg/attributes/attributes.go @@ -305,7 +305,7 @@ func (attributes Attributes) Into(into interface{}) error { // of interfaces. // // An optional error holder can be passed as an argument -// to receive any error that might have occured during the attributes +// to receive any error that might have occurred during the attributes // decoding func (attributes Attributes) AsInterface(errorHolder *error) interface{} { rawJSON, err := json.Marshal(attributes) @@ -412,7 +412,7 @@ func (attributes Attributes) FromBooleanMap(strings map[string]bool) Attributes // that supports Json Marshaling. // // An optional error holder can be passed as an argument -// to receive any error that might have occured during the attributes +// to receive any error that might have occurred during the attributes // decoding func (attributes Attributes) Put(key string, value interface{}, errorHolder *error) Attributes { rawJSON, err := json.Marshal(value) @@ -432,7 +432,7 @@ func (attributes Attributes) Put(key string, value interface{}, errorHolder *err // that supports Json Marshaling. // // An optional error holder can be passed as an argument -// to receive any error that might have occured during the attributes +// to receive any error that might have occurred during the attributes // decoding func (attributes Attributes) FromMap(strings map[string]interface{}, errorHolder *error) Attributes { for key, value := range strings { @@ -452,7 +452,7 @@ func (attributes Attributes) FromMap(strings map[string]interface{}, errorHolder // implementation- dependent Go structures. // // An optional error holder can be passed as an argument -// to receive any error that might have occured during the attributes +// to receive any error that might have occurred during the attributes // decoding func (attributes Attributes) FromInterface(structure interface{}, errorHolder *error) Attributes { newAttributes := Attributes{} diff --git a/test/README.md b/test/README.md index 2b8048235..f988e24e1 100644 --- a/test/README.md +++ b/test/README.md @@ -41,20 +41,20 @@ The test will read each of the test-xxxxxx.json files and run the tests defined 1. Copy and rename the `test/v200` directory for the new version, for example `test\v201` 1. Update the copied `test/v201/json/test-.json` files to point to the new schema. -1. Modify the copied tests as needed for the new version as decsribed above. +1. Modify the copied tests as needed for the new version as described above. 1. Add `test/v201/schemaTest/tmp` to the .gitignore file. 1. Run the test # apiTest -A new test approach, shared with the library repository for testing valid devfiles. Basically the test creates lots of valid devfiles whith different content. The attributes which are set and the values to which they are set are randomized. These tests are a work in progress and the intent is to eventually replace schemaTest. +A new test approach, shared with the library repository for testing valid devfiles. Basically the test creates lots of valid devfiles with different content. The attributes which are set and the values to which they are set are randomized. These tests are a work in progress and the intent is to eventually replace schemaTest. ## Test structure - `test/v200/apiTest/api-test.go`: The go unit test program -- `test/v200/utils/api/test-utils.go` : utilites, used by the test, which contain functions uniqiue to the api tests. -- `test/v200/utils/common/*-utils.go` : utilites, used by the test, which are also used by the library tests. Mostly contain the code to generate valid devfile content. +- `test/v200/utils/api/test-utils.go` : utilities, used by the test, which contain functions uniqiue to the api tests. +- `test/v200/utils/common/*-utils.go` : utilities, used by the test, which are also used by the library tests. Mostly contain the code to generate valid devfile content. ## Running tests locally