Skip to content

Commit 2f1e775

Browse files
Merge pull request #385 from Checkmk/devel
Release 2.4.0
2 parents ec358b1 + 16cdf56 commit 2f1e775

File tree

82 files changed

+4239
-502
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

82 files changed

+4239
-502
lines changed

.github/workflows/ans-int-test-activation.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
22

3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: activation
7+
38
name: Ansible Integration Tests for Activation Module
49
on:
510
workflow_dispatch:
@@ -8,11 +13,7 @@ on:
813
- main
914
- devel
1015
paths:
11-
- 'plugins/modules/activation.py'
12-
13-
env:
14-
NAMESPACE: checkmk
15-
COLLECTION_NAME: general
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
1617

1718
jobs:
1819

@@ -57,5 +58,5 @@ jobs:
5758
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
5859

5960
- name: Run integration test
60-
run: ansible-test integration activation -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
61+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
6162
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
2+
3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: bakery
7+
8+
name: Ansible Integration Tests for Bakery Module
9+
on:
10+
workflow_dispatch:
11+
pull_request:
12+
branches:
13+
- main
14+
- devel
15+
paths:
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
17+
18+
jobs:
19+
20+
###
21+
# Integration tests (RECOMMENDED)
22+
#
23+
# https://docs.ansible.com/ansible/latest/dev_guide/testing_integration.html
24+
25+
integration:
26+
runs-on: ubuntu-latest
27+
name: Ⓐ${{ matrix.ansible }}+py${{ matrix.python }}
28+
strategy:
29+
fail-fast: false
30+
matrix:
31+
ansible:
32+
- stable-2.13
33+
- stable-2.14
34+
- stable-2.15
35+
- devel
36+
python:
37+
- '3.8'
38+
- '3.9'
39+
- '3.10'
40+
- '3.11'
41+
exclude:
42+
# Exclude unsupported sets.
43+
- ansible: stable-2.13
44+
python: '3.11'
45+
46+
steps:
47+
- name: Check out code
48+
uses: actions/checkout@v3
49+
with:
50+
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
51+
52+
- name: Set up Python
53+
uses: actions/setup-python@v4
54+
with:
55+
python-version: '3.10'
56+
57+
- name: Install ansible-base (${{ matrix.ansible }})
58+
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
59+
60+
- name: Provide secrets file
61+
run: echo "${{ secrets.CHECKMK_DOWNLOAD_PW }}" > ./tests/integration/files/.dl-secret
62+
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
63+
env:
64+
CHECKMK_DOWNLOAD_PW: ${{ secrets.CHECKMK_DOWNLOAD_PW }}
65+
66+
- name: Run integration test
67+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
68+
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

.github/workflows/ans-int-test-contact_group.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
22

3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: contact_group
7+
38
name: Ansible Integration Tests for Contact Group Module
49
on:
510
workflow_dispatch:
@@ -8,11 +13,7 @@ on:
813
- main
914
- devel
1015
paths:
11-
- 'plugins/modules/contact_group.py'
12-
13-
env:
14-
NAMESPACE: checkmk
15-
COLLECTION_NAME: general
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
1617

1718
jobs:
1819

@@ -57,5 +58,5 @@ jobs:
5758
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
5859

5960
- name: Run integration test
60-
run: ansible-test integration contact_group -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
61+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
6162
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

.github/workflows/ans-int-test-discovery.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
22

3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: discovery
7+
38
name: Ansible Integration Tests for Discovery Module
49
on:
510
workflow_dispatch:
@@ -8,11 +13,7 @@ on:
813
- main
914
- devel
1015
paths:
11-
- 'plugins/modules/discovery.py'
12-
13-
env:
14-
NAMESPACE: checkmk
15-
COLLECTION_NAME: general
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
1617

1718
jobs:
1819

@@ -57,5 +58,5 @@ jobs:
5758
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
5859

5960
- name: Run integration test
60-
run: ansible-test integration discovery -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
61+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
6162
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

.github/workflows/ans-int-test-downtime.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
22

3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: downtime
7+
38
name: Ansible Integration Tests for Downtime Module
49
on:
510
workflow_dispatch:
@@ -8,11 +13,7 @@ on:
813
- main
914
- devel
1015
paths:
11-
- 'plugins/modules/downtime.py'
12-
13-
env:
14-
NAMESPACE: checkmk
15-
COLLECTION_NAME: general
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
1617

1718
jobs:
1819

@@ -57,5 +58,5 @@ jobs:
5758
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
5859

5960
- name: Run integration test
60-
run: ansible-test integration downtime -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
61+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
6162
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

.github/workflows/ans-int-test-folder.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
22

3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: folder
7+
38
name: Ansible Integration Tests for Folder Module
49
on:
510
workflow_dispatch:
@@ -8,11 +13,7 @@ on:
813
- main
914
- devel
1015
paths:
11-
- 'plugins/modules/folder.py'
12-
13-
env:
14-
NAMESPACE: checkmk
15-
COLLECTION_NAME: general
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
1617

1718
jobs:
1819

@@ -57,5 +58,5 @@ jobs:
5758
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
5859

5960
- name: Run integration test
60-
run: ansible-test integration folder -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
61+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
6162
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

.github/workflows/ans-int-test-host.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
22

3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: host
7+
38
name: Ansible Integration Tests for Host Module
49
on:
510
workflow_dispatch:
@@ -8,11 +13,7 @@ on:
813
- main
914
- devel
1015
paths:
11-
- 'plugins/modules/host.py'
12-
13-
env:
14-
NAMESPACE: checkmk
15-
COLLECTION_NAME: general
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
1617

1718
jobs:
1819

@@ -57,5 +58,5 @@ jobs:
5758
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
5859

5960
- name: Run integration test
60-
run: ansible-test integration host -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
61+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
6162
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

.github/workflows/ans-int-test-host_group.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
22

3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: host_group
7+
38
name: Ansible Integration Tests for Host Group Module
49
on:
510
workflow_dispatch:
@@ -8,11 +13,7 @@ on:
813
- main
914
- devel
1015
paths:
11-
- 'plugins/modules/host_group.py'
12-
13-
env:
14-
NAMESPACE: checkmk
15-
COLLECTION_NAME: general
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
1617

1718
jobs:
1819

@@ -57,5 +58,5 @@ jobs:
5758
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
5859

5960
- name: Run integration test
60-
run: ansible-test integration host_group -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
61+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
6162
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

.github/workflows/ans-int-test-password.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
22

3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: password
7+
38
name: Ansible Integration Tests for Password Module
49
on:
510
workflow_dispatch:
@@ -8,11 +13,7 @@ on:
813
- main
914
- devel
1015
paths:
11-
- 'plugins/modules/password.py'
12-
13-
env:
14-
NAMESPACE: checkmk
15-
COLLECTION_NAME: general
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
1617

1718
jobs:
1819

@@ -57,5 +58,5 @@ jobs:
5758
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
5859

5960
- name: Run integration test
60-
run: ansible-test integration password -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
61+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
6162
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

.github/workflows/ans-int-test-rule.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
22

3+
env:
4+
NAMESPACE: checkmk
5+
COLLECTION_NAME: general
6+
MODULE_NAME: rule
7+
38
name: Ansible Integration Tests for Rule Module
49
on:
510
workflow_dispatch:
@@ -8,11 +13,7 @@ on:
813
- main
914
- devel
1015
paths:
11-
- 'plugins/modules/rule.py'
12-
13-
env:
14-
NAMESPACE: checkmk
15-
COLLECTION_NAME: general
16+
- 'plugins/modules/${{env.MODULE_NAME}}.py'
1617

1718
jobs:
1819

@@ -57,5 +58,5 @@ jobs:
5758
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
5859

5960
- name: Run integration test
60-
run: ansible-test integration rule -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
61+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker
6162
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

0 commit comments

Comments
 (0)