Skip to content

Commit cbfcbbf

Browse files
Rebuild tests using Checkmk containers (#624)
We use the GitHub Actions services: keyword, to start native Checkmk containers to run our tests against.
1 parent c0bd3a8 commit cbfcbbf

File tree

96 files changed

+1366
-331
lines changed

Some content is hidden

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

96 files changed

+1366
-331
lines changed

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

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,44 @@ jobs:
5353
# Exclude unsupported sets.
5454
- ansible: stable-2.15
5555
python: '3.12'
56+
- ansible: stable-2.16
57+
python: '3.9'
58+
- ansible: stable-2.17
59+
python: '3.9'
60+
- ansible: devel
61+
python: '3.9'
62+
- ansible: devel
63+
python: '3.10'
64+
65+
services:
66+
ancient_cre:
67+
image: checkmk/check-mk-raw:2.1.0p48
68+
ports:
69+
- 5021:5000
70+
env:
71+
CMK_SITE_ID: "ancient_cre"
72+
CMK_PASSWORD: "Sup3rSec4et!"
73+
old_cre:
74+
image: checkmk/check-mk-raw:2.2.0p35
75+
ports:
76+
- 5022:5000
77+
env:
78+
CMK_SITE_ID: "old_cre"
79+
CMK_PASSWORD: "Sup3rSec4et!"
80+
stable_cre:
81+
image: checkmk/check-mk-raw:2.3.0p19
82+
ports:
83+
- 5023:5000
84+
env:
85+
CMK_SITE_ID: "stable_cre"
86+
CMK_PASSWORD: "Sup3rSec4et!"
87+
stable_cme:
88+
image: checkmk/check-mk-managed:2.3.0p19
89+
ports:
90+
- 5323:5000
91+
env:
92+
CMK_SITE_ID: "stable_cme"
93+
CMK_PASSWORD: "Sup3rSec4et!"
5694

5795
steps:
5896
- name: Check out code
@@ -63,7 +101,7 @@ jobs:
63101
- name: Set up Python
64102
uses: actions/setup-python@v5
65103
with:
66-
python-version: '3.11'
104+
python-version: ${{ matrix.python }}
67105

68106
- name: Install ansible-base (${{ matrix.ansible }})
69107
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
@@ -75,5 +113,5 @@ jobs:
75113
CHECKMK_DOWNLOAD_PW: ${{ secrets.CHECKMK_DOWNLOAD_PW }}
76114

77115
- name: Run integration test
78-
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker default
116+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
79117
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

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

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,37 @@ jobs:
5252
# Exclude unsupported sets.
5353
- ansible: stable-2.15
5454
python: '3.12'
55+
- ansible: stable-2.16
56+
python: '3.9'
57+
- ansible: stable-2.17
58+
python: '3.9'
59+
- ansible: devel
60+
python: '3.9'
61+
- ansible: devel
62+
python: '3.10'
63+
64+
services:
65+
ancient_cfe:
66+
image: checkmk/check-mk-free:2.1.0p48
67+
ports:
68+
- 5421:5000
69+
env:
70+
CMK_SITE_ID: "ancient_cfe"
71+
CMK_PASSWORD: "Sup3rSec4et!"
72+
old_cce:
73+
image: checkmk/check-mk-cloud:2.2.0p35
74+
ports:
75+
- 5222:5000
76+
env:
77+
CMK_SITE_ID: "old_cce"
78+
CMK_PASSWORD: "Sup3rSec4et!"
79+
stable_cme:
80+
image: checkmk/check-mk-managed:2.3.0p19
81+
ports:
82+
- 5323:5000
83+
env:
84+
CMK_SITE_ID: "stable_cme"
85+
CMK_PASSWORD: "Sup3rSec4et!"
5586

5687
steps:
5788
- name: Check out code
@@ -62,7 +93,7 @@ jobs:
6293
- name: Set up Python
6394
uses: actions/setup-python@v5
6495
with:
65-
python-version: '3.11'
96+
python-version: ${{ matrix.python }}
6697

6798
- name: Install ansible-base (${{ matrix.ansible }})
6899
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
@@ -74,5 +105,5 @@ jobs:
74105
CHECKMK_DOWNLOAD_PW: ${{ secrets.CHECKMK_DOWNLOAD_PW }}
75106

76107
- name: Run integration test
77-
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker default
108+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
78109
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

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

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,44 @@ jobs:
5252
# Exclude unsupported sets.
5353
- ansible: stable-2.15
5454
python: '3.12'
55+
- ansible: stable-2.16
56+
python: '3.9'
57+
- ansible: stable-2.17
58+
python: '3.9'
59+
- ansible: devel
60+
python: '3.9'
61+
- ansible: devel
62+
python: '3.10'
63+
64+
services:
65+
ancient_cre:
66+
image: checkmk/check-mk-raw:2.1.0p48
67+
ports:
68+
- 5021:5000
69+
env:
70+
CMK_SITE_ID: "ancient_cre"
71+
CMK_PASSWORD: "Sup3rSec4et!"
72+
old_cre:
73+
image: checkmk/check-mk-raw:2.2.0p35
74+
ports:
75+
- 5022:5000
76+
env:
77+
CMK_SITE_ID: "old_cre"
78+
CMK_PASSWORD: "Sup3rSec4et!"
79+
stable_cre:
80+
image: checkmk/check-mk-raw:2.3.0p19
81+
ports:
82+
- 5023:5000
83+
env:
84+
CMK_SITE_ID: "stable_cre"
85+
CMK_PASSWORD: "Sup3rSec4et!"
86+
stable_cme:
87+
image: checkmk/check-mk-managed:2.3.0p19
88+
ports:
89+
- 5323:5000
90+
env:
91+
CMK_SITE_ID: "stable_cme"
92+
CMK_PASSWORD: "Sup3rSec4et!"
5593

5694
steps:
5795
- name: Check out code
@@ -62,7 +100,7 @@ jobs:
62100
- name: Set up Python
63101
uses: actions/setup-python@v5
64102
with:
65-
python-version: '3.11'
103+
python-version: ${{ matrix.python }}
66104

67105
- name: Install ansible-base (${{ matrix.ansible }})
68106
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
@@ -74,5 +112,5 @@ jobs:
74112
CHECKMK_DOWNLOAD_PW: ${{ secrets.CHECKMK_DOWNLOAD_PW }}
75113

76114
- name: Run integration test
77-
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker default
115+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
78116
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

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

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,44 @@ jobs:
5252
# Exclude unsupported sets.
5353
- ansible: stable-2.15
5454
python: '3.12'
55+
- ansible: stable-2.16
56+
python: '3.9'
57+
- ansible: stable-2.17
58+
python: '3.9'
59+
- ansible: devel
60+
python: '3.9'
61+
- ansible: devel
62+
python: '3.10'
63+
64+
services:
65+
ancient_cre:
66+
image: checkmk/check-mk-raw:2.1.0p48
67+
ports:
68+
- 5021:5000
69+
env:
70+
CMK_SITE_ID: "ancient_cre"
71+
CMK_PASSWORD: "Sup3rSec4et!"
72+
old_cre:
73+
image: checkmk/check-mk-raw:2.2.0p35
74+
ports:
75+
- 5022:5000
76+
env:
77+
CMK_SITE_ID: "old_cre"
78+
CMK_PASSWORD: "Sup3rSec4et!"
79+
stable_cre:
80+
image: checkmk/check-mk-raw:2.3.0p19
81+
ports:
82+
- 5023:5000
83+
env:
84+
CMK_SITE_ID: "stable_cre"
85+
CMK_PASSWORD: "Sup3rSec4et!"
86+
stable_cme:
87+
image: checkmk/check-mk-managed:2.3.0p19
88+
ports:
89+
- 5323:5000
90+
env:
91+
CMK_SITE_ID: "stable_cme"
92+
CMK_PASSWORD: "Sup3rSec4et!"
5593

5694
steps:
5795
- name: Check out code
@@ -62,7 +100,7 @@ jobs:
62100
- name: Set up Python
63101
uses: actions/setup-python@v5
64102
with:
65-
python-version: '3.11'
103+
python-version: ${{ matrix.python }}
66104

67105
- name: Install ansible-base (${{ matrix.ansible }})
68106
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
@@ -74,5 +112,5 @@ jobs:
74112
CHECKMK_DOWNLOAD_PW: ${{ secrets.CHECKMK_DOWNLOAD_PW }}
75113

76114
- name: Run integration test
77-
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker default
115+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
78116
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

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

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,44 @@ jobs:
5252
# Exclude unsupported sets.
5353
- ansible: stable-2.15
5454
python: '3.12'
55+
- ansible: stable-2.16
56+
python: '3.9'
57+
- ansible: stable-2.17
58+
python: '3.9'
59+
- ansible: devel
60+
python: '3.9'
61+
- ansible: devel
62+
python: '3.10'
63+
64+
services:
65+
ancient_cre:
66+
image: checkmk/check-mk-raw:2.1.0p48
67+
ports:
68+
- 5021:5000
69+
env:
70+
CMK_SITE_ID: "ancient_cre"
71+
CMK_PASSWORD: "Sup3rSec4et!"
72+
old_cre:
73+
image: checkmk/check-mk-raw:2.2.0p35
74+
ports:
75+
- 5022:5000
76+
env:
77+
CMK_SITE_ID: "old_cre"
78+
CMK_PASSWORD: "Sup3rSec4et!"
79+
stable_cre:
80+
image: checkmk/check-mk-raw:2.3.0p19
81+
ports:
82+
- 5023:5000
83+
env:
84+
CMK_SITE_ID: "stable_cre"
85+
CMK_PASSWORD: "Sup3rSec4et!"
86+
stable_cme:
87+
image: checkmk/check-mk-managed:2.3.0p19
88+
ports:
89+
- 5323:5000
90+
env:
91+
CMK_SITE_ID: "stable_cme"
92+
CMK_PASSWORD: "Sup3rSec4et!"
5593

5694
steps:
5795
- name: Check out code
@@ -62,7 +100,7 @@ jobs:
62100
- name: Set up Python
63101
uses: actions/setup-python@v5
64102
with:
65-
python-version: '3.11'
103+
python-version: ${{ matrix.python }}
66104

67105
- name: Install ansible-base (${{ matrix.ansible }})
68106
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
@@ -74,5 +112,5 @@ jobs:
74112
CHECKMK_DOWNLOAD_PW: ${{ secrets.CHECKMK_DOWNLOAD_PW }}
75113

76114
- name: Run integration test
77-
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker default
115+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
78116
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

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

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,44 @@ jobs:
5252
# Exclude unsupported sets.
5353
- ansible: stable-2.15
5454
python: '3.12'
55+
- ansible: stable-2.16
56+
python: '3.9'
57+
- ansible: stable-2.17
58+
python: '3.9'
59+
- ansible: devel
60+
python: '3.9'
61+
- ansible: devel
62+
python: '3.10'
63+
64+
services:
65+
ancient_cre:
66+
image: checkmk/check-mk-raw:2.1.0p48
67+
ports:
68+
- 5021:5000
69+
env:
70+
CMK_SITE_ID: "ancient_cre"
71+
CMK_PASSWORD: "Sup3rSec4et!"
72+
old_cre:
73+
image: checkmk/check-mk-raw:2.2.0p35
74+
ports:
75+
- 5022:5000
76+
env:
77+
CMK_SITE_ID: "old_cre"
78+
CMK_PASSWORD: "Sup3rSec4et!"
79+
stable_cre:
80+
image: checkmk/check-mk-raw:2.3.0p19
81+
ports:
82+
- 5023:5000
83+
env:
84+
CMK_SITE_ID: "stable_cre"
85+
CMK_PASSWORD: "Sup3rSec4et!"
86+
stable_cme:
87+
image: checkmk/check-mk-managed:2.3.0p19
88+
ports:
89+
- 5323:5000
90+
env:
91+
CMK_SITE_ID: "stable_cme"
92+
CMK_PASSWORD: "Sup3rSec4et!"
5593

5694
steps:
5795
- name: Check out code
@@ -62,7 +100,7 @@ jobs:
62100
- name: Set up Python
63101
uses: actions/setup-python@v5
64102
with:
65-
python-version: '3.11'
103+
python-version: ${{ matrix.python }}
66104

67105
- name: Install ansible-base (${{ matrix.ansible }})
68106
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check
@@ -74,5 +112,5 @@ jobs:
74112
CHECKMK_DOWNLOAD_PW: ${{ secrets.CHECKMK_DOWNLOAD_PW }}
75113

76114
- name: Run integration test
77-
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }} --docker default
115+
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
78116
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

0 commit comments

Comments
 (0)