Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/labels-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,15 @@ inventory:
module:activation:
- 'Component Name: activation'

module:bi_aggregation:
- 'Component Name: bi_aggregation'

module:bi_pack:
- 'Component Name: bi_pack'

module:bi_rule:
- 'Component Name: bi_rule'

module:bakery:
- 'Component Name: bakery'

Expand All @@ -26,6 +35,9 @@ module:contact_group:
module:discovery:
- 'Component Name: discovery'

module:dcd:
- 'Component Name: dcd'

module:downtime:
- 'Component Name: downtime'

Expand Down Expand Up @@ -62,6 +74,18 @@ module:user:
lookup:bakery:
- 'Component Name: lookup_bakery'

lookup:bi_aggregation:
- 'Component Name: lookup_bi_aggregation'

lookup:bi_pack:
- 'Component Name: lookup_bi_pack'

lookup:bi_rule:
- 'Component Name: lookup_bi_rule'

lookup:dcd:
- 'Component Name: lookup_dcd'

lookup:folder:
- 'Component Name: lookup_folder'

Expand Down
40 changes: 40 additions & 0 deletions .github/labels-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,21 @@ module:activation:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/activation.py'

module:bi_aggregation:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/bi_aggregation.py'

module:bi_pack:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/bi_pack.py'

module:bi_rule:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/bi_rule.py'

module:bakery:
- any:
- changed-files:
Expand All @@ -39,6 +54,11 @@ module:discovery:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/discovery.py'

module:dcd:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/dcd.py'

module:downtime:
- any:
- changed-files:
Expand Down Expand Up @@ -99,6 +119,26 @@ lookup:bakery:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/bakery.py'

lookup:bi_aggregation:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/bi_aggregation.py'

lookup:bi_pack:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/bi_pack.py'

lookup:bi_rule:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/bi_rule.py'

lookup:dcd:
- any:
- changed-files:
- any-glob-to-any-file: 'plugins/modules/lookup/dcd.py'

lookup:folder:
- any:
- changed-files:
Expand Down
117 changes: 117 additions & 0 deletions .github/workflows/ans-int-test-bi_aggregation.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# README:
# - When changing the module name, it needs to be changed in 'env:MODULE_NAME' and in 'on:pull_requests:path'!
#
# Resources:
# - Template for this file: https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
# - About Ansible integration tests: https://docs.ansible.com/ansible/latest/dev_guide/testing_integration.html

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: bi_aggregation

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

name: Ansible Integration Tests for BI aggregation Module
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
pull_request:
branches:
- main
- devel
paths:
- 'plugins/modules/bi_aggregation.py'
push:
paths:
- 'plugins/modules/bi_aggregation.py'
- '.github/workflows/ans-int-test-bi_aggregation.yaml'

jobs:

integration:
runs-on: ubuntu-22.04
name: Ⓐ${{ matrix.ansible }}+py${{ matrix.python }}
strategy:
fail-fast: false
matrix:
ansible:
- stable-2.15
- stable-2.16
- stable-2.17
- devel
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
exclude:
# Exclude unsupported sets.
- ansible: stable-2.15
python: '3.12'
- ansible: stable-2.16
python: '3.9'
- ansible: stable-2.17
python: '3.9'
- ansible: devel
python: '3.9'
- ansible: devel
python: '3.10'

services:
ancient_cre:
image: checkmk/check-mk-raw:2.2.0p42
ports:
- 5022:5000
env:
CMK_SITE_ID: "ancient_cre"
CMK_PASSWORD: "Sup3rSec4et!"
old_cre:
image: checkmk/check-mk-raw:2.3.0p33
ports:
- 5023:5000
env:
CMK_SITE_ID: "old_cre"
CMK_PASSWORD: "Sup3rSec4et!"
old_cme:
image: checkmk/check-mk-managed:2.3.0p33
ports:
- 5323:5000
env:
CMK_SITE_ID: "old_cme"
CMK_PASSWORD: "Sup3rSec4et!"
stable_cre:
image: checkmk/check-mk-raw:2.4.0p2
ports:
- 5024:5000
env:
CMK_SITE_ID: "stable_cre"
CMK_PASSWORD: "Sup3rSec4et!"
stable_cme:
image: checkmk/check-mk-managed:2.4.0p2
ports:
- 5324:5000
env:
CMK_SITE_ID: "stable_cme"
CMK_PASSWORD: "Sup3rSec4et!"

steps:
- name: Check out code
uses: actions/checkout@v4
with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
117 changes: 117 additions & 0 deletions .github/workflows/ans-int-test-bi_pack.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
# README:
# - When changing the module name, it needs to be changed in 'env:MODULE_NAME' and in 'on:pull_requests:path'!
#
# Resources:
# - Template for this file: https://github.com/ansible-collections/collection_template/blob/main/.github/workflows/ansible-test.yml
# - About Ansible integration tests: https://docs.ansible.com/ansible/latest/dev_guide/testing_integration.html

env:
NAMESPACE: checkmk
COLLECTION_NAME: general
MODULE_NAME: bi_pack

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

name: Ansible Integration Tests for BI pack Module
on:
workflow_dispatch:
schedule:
- cron: '0 0 * * 0'
pull_request:
branches:
- main
- devel
paths:
- 'plugins/modules/bi_pack.py'
push:
paths:
- 'plugins/modules/bi_pack.py'
- '.github/workflows/ans-int-test-bi_pack.yaml'

jobs:

integration:
runs-on: ubuntu-22.04
name: Ⓐ${{ matrix.ansible }}+py${{ matrix.python }}
strategy:
fail-fast: false
matrix:
ansible:
- stable-2.15
- stable-2.16
- stable-2.17
- devel
python:
- '3.9'
- '3.10'
- '3.11'
- '3.12'
exclude:
# Exclude unsupported sets.
- ansible: stable-2.15
python: '3.12'
- ansible: stable-2.16
python: '3.9'
- ansible: stable-2.17
python: '3.9'
- ansible: devel
python: '3.9'
- ansible: devel
python: '3.10'

services:
ancient_cre:
image: checkmk/check-mk-raw:2.2.0p42
ports:
- 5022:5000
env:
CMK_SITE_ID: "ancient_cre"
CMK_PASSWORD: "Sup3rSec4et!"
old_cre:
image: checkmk/check-mk-raw:2.3.0p33
ports:
- 5023:5000
env:
CMK_SITE_ID: "old_cre"
CMK_PASSWORD: "Sup3rSec4et!"
old_cme:
image: checkmk/check-mk-managed:2.3.0p33
ports:
- 5323:5000
env:
CMK_SITE_ID: "old_cme"
CMK_PASSWORD: "Sup3rSec4et!"
stable_cre:
image: checkmk/check-mk-raw:2.4.0p2
ports:
- 5024:5000
env:
CMK_SITE_ID: "stable_cre"
CMK_PASSWORD: "Sup3rSec4et!"
stable_cme:
image: checkmk/check-mk-managed:2.4.0p2
ports:
- 5324:5000
env:
CMK_SITE_ID: "stable_cme"
CMK_PASSWORD: "Sup3rSec4et!"

steps:
- name: Check out code
uses: actions/checkout@v4
with:
path: ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}

- name: Install ansible-base (${{ matrix.ansible }})
run: pip install https://github.com/ansible/ansible/archive/${{ matrix.ansible }}.tar.gz --disable-pip-version-check

- name: Run integration test
run: ansible-test integration ${{env.MODULE_NAME}} -v --color --retry-on-error --continue-on-error --diff --python ${{ matrix.python }}
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
Loading
Loading