Skip to content

Commit abb5f49

Browse files
Correct some whitespace and line length, comments for sanity test ignore
Signed-off-by: Stew Francis <[email protected]>
1 parent 9782358 commit abb5f49

File tree

8 files changed

+56
-54
lines changed

8 files changed

+56
-54
lines changed

plugins/doc_fragments/cmci.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ class ModuleDocFragment(object):
141141
C(and) and C(or) operators, see the C(complex_filter) parameter.
142142
- For examples, see M(cmci_get)
143143
- For more details, see L(How to build a filter expression,
144-
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/system-programming/cpsm/eyup1a0.html).
144+
https://www.ibm.com/support/knowledgecenter/SSGMCP_5.6.0/system-programming/cpsm/eyup1a0.html).
145145
- For supported attributes of different resource types, see their
146146
resource table reference, for example,
147147
L(PROGDEF resource table reference,

plugins/module_utils/cmci.py

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,15 @@ def _cf_options(children):
102102

103103

104104
def _complex_filter():
105-
children = _cf_child(_cf_options(_cf_options(_cf_options(ATTRIBUTE_ARGUMENTS))))
105+
children = _cf_child(
106+
_cf_options(
107+
_cf_options(
108+
_cf_options(
109+
ATTRIBUTE_ARGUMENTS
110+
)
111+
)
112+
)
113+
)
106114
base_type = {'type': 'dict'}
107115
# This warning is a PyCharm bug:
108116
# https://youtrack.jetbrains.com/issue/PY-43664

plugins/modules/cmci_action.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
required: true
5555
type: str
5656
value:
57-
description: >
57+
description: >
5858
Parameter value if any. Can be omitted if the parameter requires no
5959
value to be supplied, as shown in the resource table reference. For
6060
example, the OVERRIDE parameter for the PROGDEF INSTALL action doesn't

plugins/modules/cmci_get.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
- name: csdgroup
8686
value: MYGRP
8787
record_count: 1
88-
88+
8989
- name: Using complex_filter to combine filter expressions and change operators
9090
cmci_get:
9191
cmci_host: 'winmvs2c.hursley.ibm.com'

tests/integration/targets/cics_cmci/playbooks/cmci_incorrect_host.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,4 +30,4 @@
3030
that:
3131
- result.failed is false
3232
- '{{ result.msg[:76] == "Error performing CMCI request: <urllib3.connection.HTTPSConnection object at" }}'
33-
- '{{ result.msg[-92:] == "Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known"}}'
33+
- '{{ result.msg[-92:] == "Failed to establish a new connection: [Errno 8] nodename nor servname provided, or not known" }}'

tests/sanity/ignore-2.10.txt

Lines changed: 38 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,38 @@
1-
docs/make.bat line-endings!skip
2-
plugins/modules/cmci_get.py validate-modules:missing-gplv3-license
3-
plugins/modules/cmci_get.py validate-modules:invalid-documentation
4-
plugins/modules/cmci_get.py validate-modules:doc-choices-do-not-match-spec
5-
plugins/modules/cmci_get.py validate-modules:doc-default-does-not-match-spec
6-
plugins/modules/cmci_get.py validate-modules:missing-suboption-docs
7-
plugins/modules/cmci_get.py validate-modules:parameter-type-not-in-doc
8-
plugins/modules/cmci_get.py validate-modules:undocumented-parameter
9-
plugins/modules/cmci_get.py validate-modules:doc-elements-mismatch
10-
plugins/modules/cmci_get.py validate-modules:mutually_exclusive-unknown
11-
plugins/modules/cmci_get.py validate-modules:required_one_of-unknown
12-
plugins/modules/cmci_action.py validate-modules:missing-gplv3-license
13-
plugins/modules/cmci_action.py validate-modules:invalid-documentation
14-
plugins/modules/cmci_action.py validate-modules:doc-choices-do-not-match-spec
15-
plugins/modules/cmci_action.py validate-modules:doc-default-does-not-match-spec
16-
plugins/modules/cmci_action.py validate-modules:missing-suboption-docs
17-
plugins/modules/cmci_action.py validate-modules:parameter-type-not-in-doc
18-
plugins/modules/cmci_action.py validate-modules:undocumented-parameter
19-
plugins/modules/cmci_action.py validate-modules:doc-elements-mismatch
20-
plugins/modules/cmci_action.py validate-modules:mutually_exclusive-unknown
21-
plugins/modules/cmci_action.py validate-modules:required_one_of-unknown
22-
plugins/modules/cmci_create.py validate-modules:missing-gplv3-license
23-
plugins/modules/cmci_create.py validate-modules:invalid-documentation
24-
plugins/modules/cmci_delete.py validate-modules:missing-gplv3-license
25-
plugins/modules/cmci_delete.py validate-modules:invalid-documentation
26-
plugins/modules/cmci_delete.py validate-modules:doc-choices-do-not-match-spec
27-
plugins/modules/cmci_delete.py validate-modules:doc-default-does-not-match-spec
28-
plugins/modules/cmci_delete.py validate-modules:missing-suboption-docs
29-
plugins/modules/cmci_delete.py validate-modules:parameter-type-not-in-doc
30-
plugins/modules/cmci_delete.py validate-modules:undocumented-parameter
31-
plugins/modules/cmci_delete.py validate-modules:doc-elements-mismatch
32-
plugins/modules/cmci_delete.py validate-modules:mutually_exclusive-unknown
33-
plugins/modules/cmci_delete.py validate-modules:required_one_of-unknown
34-
plugins/modules/cmci_update.py validate-modules:missing-gplv3-license
35-
plugins/modules/cmci_update.py validate-modules:invalid-documentation
36-
plugins/modules/cmci_update.py validate-modules:doc-choices-do-not-match-spec
37-
plugins/modules/cmci_update.py validate-modules:doc-default-does-not-match-spec
38-
plugins/modules/cmci_update.py validate-modules:missing-suboption-docs
39-
plugins/modules/cmci_update.py validate-modules:parameter-type-not-in-doc
40-
plugins/modules/cmci_update.py validate-modules:undocumented-parameter
41-
plugins/modules/cmci_update.py validate-modules:doc-elements-mismatch
42-
plugins/modules/cmci_update.py validate-modules:mutually_exclusive-unknown
43-
plugins/modules/cmci_update.py validate-modules:required_one_of-unknown
1+
docs/make.bat line-endings!skip # Windows batch file requires windows line endings
2+
plugins/modules/cmci_get.py validate-modules:missing-gplv3-license # Licence is Apache-2.0
3+
plugins/modules/cmci_get.py validate-modules:doc-choices-do-not-match-spec # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
4+
plugins/modules/cmci_get.py validate-modules:doc-default-does-not-match-spec # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
5+
plugins/modules/cmci_get.py validate-modules:missing-suboption-docs # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
6+
plugins/modules/cmci_get.py validate-modules:parameter-type-not-in-doc # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
7+
plugins/modules/cmci_get.py validate-modules:undocumented-parameter # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
8+
plugins/modules/cmci_get.py validate-modules:doc-elements-mismatch # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
9+
plugins/modules/cmci_get.py validate-modules:mutually_exclusive-unknown # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
10+
plugins/modules/cmci_get.py validate-modules:required_one_of-unknown # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
11+
plugins/modules/cmci_action.py validate-modules:missing-gplv3-license # Licence is Apache-2.0
12+
plugins/modules/cmci_action.py validate-modules:doc-choices-do-not-match-spec # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
13+
plugins/modules/cmci_action.py validate-modules:doc-default-does-not-match-spec # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
14+
plugins/modules/cmci_action.py validate-modules:missing-suboption-docs # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
15+
plugins/modules/cmci_action.py validate-modules:parameter-type-not-in-doc # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
16+
plugins/modules/cmci_action.py validate-modules:undocumented-parameter # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
17+
plugins/modules/cmci_action.py validate-modules:doc-elements-mismatch # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
18+
plugins/modules/cmci_action.py validate-modules:mutually_exclusive-unknown # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
19+
plugins/modules/cmci_action.py validate-modules:required_one_of-unknown # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
20+
plugins/modules/cmci_create.py validate-modules:missing-gplv3-license # Licence is Apache-2.0
21+
plugins/modules/cmci_delete.py validate-modules:missing-gplv3-license # Licence is Apache-2.0
22+
plugins/modules/cmci_delete.py validate-modules:doc-choices-do-not-match-spec # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
23+
plugins/modules/cmci_delete.py validate-modules:doc-default-does-not-match-spec # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
24+
plugins/modules/cmci_delete.py validate-modules:missing-suboption-docs # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
25+
plugins/modules/cmci_delete.py validate-modules:parameter-type-not-in-doc # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
26+
plugins/modules/cmci_delete.py validate-modules:undocumented-parameter # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
27+
plugins/modules/cmci_delete.py validate-modules:doc-elements-mismatch # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
28+
plugins/modules/cmci_delete.py validate-modules:mutually_exclusive-unknown # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
29+
plugins/modules/cmci_delete.py validate-modules:required_one_of-unknown # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
30+
plugins/modules/cmci_update.py validate-modules:missing-gplv3-license # Licence is Apache-2.0
31+
plugins/modules/cmci_update.py validate-modules:doc-choices-do-not-match-spec # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
32+
plugins/modules/cmci_update.py validate-modules:doc-default-does-not-match-spec # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
33+
plugins/modules/cmci_update.py validate-modules:missing-suboption-docs # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
34+
plugins/modules/cmci_update.py validate-modules:parameter-type-not-in-doc # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
35+
plugins/modules/cmci_update.py validate-modules:undocumented-parameter # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
36+
plugins/modules/cmci_update.py validate-modules:doc-elements-mismatch # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
37+
plugins/modules/cmci_update.py validate-modules:mutually_exclusive-unknown # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error
38+
plugins/modules/cmci_update.py validate-modules:required_one_of-unknown # We have a complex_filter DSL as part of our plugin YAML. The same config is accepted 4 levels deep. We only include the (quite long) documentation for this at the highest level, which causes this error

tests/unit/helpers/cmci_helper.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ def create_feedback_response(errors): # type: (str, List) -> OrderedDict
219219
)
220220

221221

222-
223222
def create_cmci_response(*args): # type () -> OrderedDict
224223
return od(
225224
('response', od(

tests/unit/modules/test_cmci_get.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ def test_401_fails(cmci_module): # type: (CMCITestHelper) -> None
6262

6363
def test_invalid_host(cmci_module): # type: (CMCITestHelper) -> None
6464
cmci_module.expect({
65-
'msg': 'Parameter "cmci_host" with value "^*.99.99.199" was not valid. Expected an IP address or host name.',
65+
'msg': 'Parameter "cmci_host" with value "^*.99.99.199" was not valid. Expected an IP address or host name.',
6666
'changed': False,
6767
'failed': True
6868
})
@@ -171,8 +171,8 @@ def test_invalid_port_high(cmci_module): # type: (CMCITestHelper) -> None
171171

172172
def test_invalid_context(cmci_module): # type: (CMCITestHelper) -> None
173173
cmci_module.expect({
174-
'msg': 'Parameter "context" with value "^&iyk3z0r9" was not valid. Expected a CPSM context name. CPSM '
175-
'context names are max 8 characters. Valid characters are A-Z a-z 0-9.',
174+
'msg': 'Parameter "context" with value "^&iyk3z0r9" was not valid. Expected a CPSM context name. CPSM '
175+
'context names are max 8 characters. Valid characters are A-Z a-z 0-9.',
176176
'changed': False,
177177
'failed': True
178178
})
@@ -188,8 +188,8 @@ def test_invalid_context(cmci_module): # type: (CMCITestHelper) -> None
188188

189189
def test_invalid_scope(cmci_module): # type: (CMCITestHelper) -> None
190190
cmci_module.expect({
191-
'msg': 'Parameter "scope" with value "&^iyk3z0r8" was not valid. Expected a CPSM scope name. CPSM scope '
192-
'names are max 8 characters. Valid characters are A-Z a-z 0-9.',
191+
'msg': 'Parameter "scope" with value "&^iyk3z0r8" was not valid. Expected a CPSM scope name. CPSM scope '
192+
'names are max 8 characters. Valid characters are A-Z a-z 0-9.',
193193
'changed': False,
194194
'failed': True
195195
})

0 commit comments

Comments
 (0)