Skip to content

Commit 32f89ea

Browse files
committed
sanity testing corrections
Signed-off-by: Andrew Twydell <[email protected]>
1 parent ab1585b commit 32f89ea

30 files changed

+1435
-1460
lines changed

.ansible-lint

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
---
2+
skip_list:
3+
- "name[template]"

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@ venv3
77
tests/output
88
ibm-ibm_zos_cics-*.tar.gz
99
tests/integration/targets/cics_cmci/cmci-variables.yml
10+
tests/integration/inventory

common.Dockerfile

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
ARG PYTHON_VERSION
1+
ARG PYTHON_VERSION_SET
22

3-
FROM python:${PYTHON_VERSION}
4-
5-
USER root
3+
FROM python:${PYTHON_VERSION_SET}
64

75
SHELL [ "/bin/bash", "-c" ]
86

97
RUN apt-get update && apt upgrade -y
108

11-
COPY ./requirements.txt /ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/
12-
COPY ./dev-requirements.txt /ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/
9+
COPY ./requirements.txt /root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/requirements.txt
10+
COPY ./dev-requirements.txt /root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/dev-requirements.txt
11+
12+
RUN pip install -r /root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/dev-requirements.txt
1313

14-
RUN pip install -r /ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/dev-requirements.txt
14+
ENV OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES
15+
ARG PYTHON_VERSION_SET
16+
ENV PYTHON_VERSION_SET=${PYTHON_VERSION_SET}
1517

16-
COPY ./ /ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics
17-
WORKDIR /ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics
18+
WORKDIR /root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics

dev-requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@ mock==3.0.5
99
requests_mock==1.8.0
1010
pytest-xdist==1.34.0 # Need this to work around a problem running ansible-test
1111
pytest==4.6.11; python_version < '3'
12-
pytest==6.2.1; python_version >= '3'
12+
pytest==7.2.0; python_version >= '3'
1313
# Non-test requirements (python 3+ only)
1414
pylint==2.5.3; python_version >= '3'
15-
shellcheck-py==0.7.1.1; python_version >= '3'
15+
shellcheck-py==0.9.0.2; python_version >= '3'
1616
rstcheck==3.3.1; python_version >= '3'
17-
yamllint==1.28.0; python_version >= '3'
18-
voluptuous==0.12.1; python_version >= '3'
17+
yamllint==1.29.0; python_version >= '3'
18+
voluptuous==0.13.1; python_version >= '3'
1919
ansible-doc-extractor==0.1.6; python_version >= '3'
2020
ansible-lint==6.10.2; python_version >= '3'
2121
pycodestyle==2.6.0; python_version >= '3'

docker-compose.yaml

Lines changed: 38 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,47 @@ services:
77
context: .
88
dockerfile: common.Dockerfile
99
args:
10-
PYTHON_VERSION: 2.7.18
10+
PYTHON_VERSION_SET: 2.7
11+
entrypoint: /bin/bash -c "/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/container.build.sh"
12+
volumes:
13+
- ./:/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics
1114

1215
python38:
1316
build:
1417
context: .
1518
dockerfile: common.Dockerfile
1619
args:
17-
PYTHON_VERSION: 3.8
20+
PYTHON_VERSION_SET: 3.8
21+
entrypoint: /bin/bash -c "/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/container.build.sh"
22+
volumes:
23+
- ./:/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics
24+
25+
python39:
26+
build:
27+
context: .
28+
dockerfile: common.Dockerfile
29+
args:
30+
PYTHON_VERSION_SET: "3.9"
31+
entrypoint: /bin/bash -c "/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/container.build.sh"
32+
volumes:
33+
- ./:/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics
34+
35+
python310:
36+
build:
37+
context: .
38+
dockerfile: common.Dockerfile
39+
args:
40+
PYTHON_VERSION_SET: "3.10"
41+
entrypoint: /bin/bash -c "/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/container.build.sh"
42+
volumes:
43+
- ./:/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics
44+
45+
python311:
46+
build:
47+
context: .
48+
dockerfile: common.Dockerfile
49+
args:
50+
PYTHON_VERSION_SET: "3.11"
51+
entrypoint: /bin/bash -c "/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics/container.build.sh"
52+
volumes:
53+
- ./:/root/ibm_zos_cics/ansible_collections/ibm/ibm_zos_cics

plugins/doc_fragments/cmci.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ class ModuleDocFragment(object):
145145
C(and) and C(or) operators, see the C(complex_filter) parameter.
146146
- For more details, see
147147
L(How to build a filter expression,https://www.ibm.com/docs/en/cics-ts/latest?topic=expressions-how-build-filter-expression).
148-
- For examples, see M(cmci_get).
148+
- For examples, see M(ibm.ibm_zos_cics.cmci_get).
149149
- For supported attributes of different resource types, see their
150150
resource table reference, for example,
151151
L(PROGDEF resource table reference,https://www.ibm.com/docs/en/cics-ts/latest?topic=tables-progdef-resource-table).
@@ -167,7 +167,7 @@ class ModuleDocFragment(object):
167167
- When supplying the C(attribute) option, you must also supply a
168168
C(value) for the filter. You can also override the default
169169
operator of C(=) with the C(operator) option.
170-
- For examples, see "Examples" in M(cmci_get).
170+
- For examples, see "Examples" in M(ibm.ibm_zos_cics.cmci_get).
171171
type: dict
172172
required: false
173173
suboptions:

0 commit comments

Comments
 (0)