Skip to content

Commit 85b9c42

Browse files
Merge pull request #346 from kstrenkova/fix-test-operator-typos
Fix typos across test-operator code
2 parents 507a1fc + 0a5c569 commit 85b9c42

36 files changed

Lines changed: 122 additions & 122 deletions

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ docker-push: ## Push docker image with the manager.
151151
# architectures. (i.e. make docker-buildx IMG=myregistry/mypoperator:0.0.1). To use this option you need to:
152152
# - able to use docker buildx . More info: https://docs.docker.com/build/buildx/
153153
# - have enable BuildKit, More info: https://docs.docker.com/develop/develop-images/build_enhancements/
154-
# - be able to push the image for your registry (i.e. if you do not inform a valid value via IMG=<myregistry/image:<tag>> than the export will fail)
154+
# - be able to push the image for your registry (i.e. if you do not pass a valid value via IMG=<myregistry/image:<tag>> then the export will fail)
155155
# To properly provided solutions that supports more than one platform you should use this option.
156156
PLATFORMS ?= linux/arm64,linux/amd64,linux/s390x,linux/ppc64le
157157
.PHONY: docker-buildx

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ pre-commit install --install-hooks
3838
2. Execute pre-commit checks
3939

4040
```bash
41-
pre-commit run --show-diff-on-failure --color=always --all-files --show-diff-on-failure --verbose
41+
pre-commit run --show-diff-on-failure --color=always --all-files --verbose
4242
```
4343

4444
### Test It Out

api/bases/test.openstack.org_ansibletests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1285,7 +1285,7 @@ spec:
12851285
capabilities on top of capabilities that are usually needed by the test
12861286
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is
12871287
needed for certain test-operator functionalities to work properly (e.g.:
1288-
extraRPMs in Tempest CR, or certain set of tobiko tests).
1288+
extraRPMs in Tempest CR, or a certain set of tobiko tests).
12891289
type: boolean
12901290
resources:
12911291
default:
@@ -1513,7 +1513,7 @@ spec:
15131513
pods with allowedPrivilegedEscalation: true and the default capabilities on
15141514
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
15151515
This parameter is deemed insecure but it is needed for certain test-operator
1516-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
1516+
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or a certain set
15171517
of tobiko tests).
15181518
type: boolean
15191519
resources:

api/bases/test.openstack.org_horizontests.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1303,7 +1303,7 @@ spec:
13031303
capabilities on top of capabilities that are usually needed by the test
13041304
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is
13051305
needed for certain test-operator functionalities to work properly (e.g.:
1306-
extraRPMs in Tempest CR, or certain set of tobiko tests).
1306+
extraRPMs in Tempest CR, or a certain set of tobiko tests).
13071307
type: boolean
13081308
projectName:
13091309
default: horizontest

api/bases/test.openstack.org_tempests.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1284,7 +1284,7 @@ spec:
12841284
capabilities on top of capabilities that are usually needed by the test
12851285
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is
12861286
needed for certain test-operator functionalities to work properly (e.g.:
1287-
extraRPMs in Tempest CR, or certain set of tobiko tests).
1287+
extraRPMs in Tempest CR, or a certain set of tobiko tests).
12881288
type: boolean
12891289
rerunFailedTests:
12901290
default: false
@@ -1375,7 +1375,7 @@ spec:
13751375
tempestRun:
13761376
description: |-
13771377
TempestRunSpec - is used to configure execution of tempest. Please refer to
1378-
Please refer to https://docs.openstack.org/tempest/latest/ for the further
1378+
Please refer to https://docs.openstack.org/tempest/latest/ for further
13791379
explanation of the CLI parameters.
13801380
properties:
13811381
concurrency:
@@ -1554,7 +1554,7 @@ spec:
15541554
tempestconfRun:
15551555
description: |-
15561556
TempestconfRunSpec - is used to configure execution of discover-tempest-config
1557-
Please refer to https://docs.opendev.org/openinfra/python-tempestconf for the
1557+
Please refer to https://docs.opendev.org/openinfra/python-tempestconf for
15581558
further explanation of the CLI parameters.
15591559
properties:
15601560
append:
@@ -1752,7 +1752,7 @@ spec:
17521752
Workflow - can be used to specify multiple executions of tempest with
17531753
a different configuration in a single CR. Accepts a list of dictionaries
17541754
where each member of the list accepts the same values as the Tempest CR
1755-
does in the `spec`` section. Values specified using the workflow section have
1755+
does in the `spec` section. Values specified using the workflow section have
17561756
a higher precedence than the values specified higher in the Tempest CR
17571757
hierarchy.
17581758
items:
@@ -1854,7 +1854,7 @@ spec:
18541854
pods with allowedPrivilegedEscalation: true and the default capabilities on
18551855
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
18561856
This parameter is deemed insecure but it is needed for certain test-operator
1857-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
1857+
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or a certain set
18581858
of tobiko tests).
18591859
type: boolean
18601860
rerunFailedTests:
@@ -1941,8 +1941,8 @@ spec:
19411941
type: string
19421942
tempestRun:
19431943
description: |-
1944-
TempestRunSpec - is used to configure execution of tempest. Please refer to
1945-
Please refer to https://docs.openstack.org/tempest/latest/ for the further
1944+
WorkflowTempestRunSpec - is used to configure execution of tempest.
1945+
Please refer to https://docs.openstack.org/tempest/latest/ for further
19461946
explanation of the CLI parameters.
19471947
properties:
19481948
concurrency:
@@ -2088,7 +2088,7 @@ spec:
20882088
type: array
20892089
extraRPMs:
20902090
description: |-
2091-
A list URLs that point to RPMs that should be downloaded and installed
2091+
A list of URLs that point to RPMs that should be downloaded and installed
20922092
inside the tempest test pod.
20932093
items:
20942094
type: string
@@ -2116,8 +2116,8 @@ spec:
21162116
type: object
21172117
tempestconfRun:
21182118
description: |-
2119-
TempestconfRunSpec - is used to configure execution of discover-tempest-config
2120-
Please refer to https://docs.opendev.org/openinfra/python-tempestconf for the
2119+
WorkflowTempestconfRunSpec - is used to configure execution of discover-tempest-config
2120+
Please refer to https://docs.opendev.org/openinfra/python-tempestconf for
21212121
further explanation of the CLI parameters.
21222122
properties:
21232123
append:

api/bases/test.openstack.org_tobikoes.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,7 +1289,7 @@ spec:
12891289
capabilities on top of capabilities that are usually needed by the test
12901290
pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is
12911291
needed for certain test-operator functionalities to work properly (e.g.:
1292-
extraRPMs in Tempest CR, or certain set of tobiko tests).
1292+
extraRPMs in Tempest CR, or a certain set of tobiko tests).
12931293
type: boolean
12941294
publicKey:
12951295
default: ""
@@ -1423,7 +1423,7 @@ spec:
14231423
description: Tobiko version
14241424
type: string
14251425
workflow:
1426-
description: A parameter that contains a workflow definition.
1426+
description: A parameter that contains a workflow definition.
14271427
items:
14281428
properties:
14291429
SELinuxLevel:
@@ -1496,7 +1496,7 @@ spec:
14961496
type: object
14971497
numProcesses:
14981498
description: Number of processes/workers used to run tobiko
1499-
tests - value 0 results in automatic decission
1499+
tests - value 0 results in automatic decision
15001500
type: integer
15011501
patch:
15021502
description: Optional patch to apply to the Tobiko repository
@@ -1526,7 +1526,7 @@ spec:
15261526
pods with allowedPrivilegedEscalation: true and the default capabilities on
15271527
top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
15281528
This parameter is deemed insecure but it is needed for certain test-operator
1529-
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
1529+
functionalities to work properly (e.g.: extraRPMs in Tempest CR, or a certain set
15301530
of tobiko tests).
15311531
type: boolean
15321532
publicKey:

api/v1beta1/ansibletest_types.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ type AnsibleTestSpec struct {
5858
// +kubebuilder:validation:Format=string
5959
// +operator-sdk:csv:customresourcedefinitions:type=spec
6060
// AnsibleGitBranch - git branch to check out in the cloned repo
61-
AnsibleGitBranch string `json:"ansibleGitBranch,omitEmpty"`
61+
AnsibleGitBranch string `json:"ansibleGitBranch,omitempty"`
6262

6363
// +kubebuilder:validation:Required
6464
// +operator-sdk:csv:customresourcedefinitions:type=spec
@@ -144,7 +144,7 @@ type AnsibleTestWorkflowSpec struct {
144144
// +kubebuilder:validation:Format=string
145145
// +operator-sdk:csv:customresourcedefinitions:type=spec
146146
// AnsibleGitBranch - git branch to check out in the cloned repo
147-
AnsibleGitBranch string `json:"ansibleGitBranch,omitEmpty"`
147+
AnsibleGitBranch string `json:"ansibleGitBranch,omitempty"`
148148

149149
// +kubebuilder:validation:Optional
150150
// +operator-sdk:csv:customresourcedefinitions:type=spec

api/v1beta1/ansibletest_webhook.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,13 +91,13 @@ func (r *AnsibleTest) ValidateCreate() (admission.Warnings, error) {
9191

9292
if workflowStep.ExtraConfigmapsMounts != nil {
9393
allWarnings = append(allWarnings, "The ExtraConfigmapsMounts parameter will be" +
94-
"deprecated! Please use ExtraMounts parameter instead!")
94+
" deprecated! Please use ExtraMounts parameter instead!")
9595
}
9696
}
9797

9898
if len(r.Spec.ExtraConfigmapsMounts) > 0 {
9999
allWarnings = append(allWarnings, "The ExtraConfigmapsMounts parameter will be" +
100-
"deprecated! Please use ExtraMounts parameter instead!")
100+
" deprecated! Please use ExtraMounts parameter instead!")
101101
}
102102

103103
if r.Spec.Privileged {

api/v1beta1/common.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ type CommonOptions struct {
5454
// capabilities on top of capabilities that are usually needed by the test
5555
// pods (NET_ADMIN, NET_RAW). This parameter is deemed insecure but it is
5656
// needed for certain test-operator functionalities to work properly (e.g.:
57-
// extraRPMs in Tempest CR, or certain set of tobiko tests).
57+
// extraRPMs in Tempest CR, or a certain set of tobiko tests).
5858
Privileged bool `json:"privileged"`
5959

6060
// +operator-sdk:csv:customresourcedefinitions:type=spec
@@ -145,7 +145,7 @@ type WorkflowCommonOptions struct {
145145
// pods with allowedPrivilegedEscalation: true and the default capabilities on
146146
// top of capabilities that are usually needed by the test pods (NET_ADMIN, NET_RAW).
147147
// This parameter is deemed insecure but it is needed for certain test-operator
148-
// functionalities to work properly (e.g.: extraRPMs in Tempest CR, or certain set
148+
// functionalities to work properly (e.g.: extraRPMs in Tempest CR, or a certain set
149149
// of tobiko tests).
150150
Privileged *bool `json:"privileged,omitempty"`
151151

api/v1beta1/common_webhook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package v1beta1
22

33
const (
44
// ErrPrivilegedModeRequired
5-
ErrPrivilegedModeRequired = "%s.Spec.Privileged is requied in order to successfully " +
5+
ErrPrivilegedModeRequired = "%s.Spec.Privileged is required in order to successfully " +
66
"execute tests with the provided configuration."
77

88
// ErrDebug

0 commit comments

Comments
 (0)