Skip to content

Bugfix missing port. #126

Bugfix missing port.

Bugfix missing port. #126

# 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: lookup_rulesets
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
name: Ansible Integration Tests for Ruleset Lookup Modules
on:
workflow_dispatch:
pull_request:
branches:
- main
- devel
paths:
- 'plugins/lookup/ruleset.py'
- 'plugins/lookup/rulesets.py'
push:
paths:
- 'plugins/lookup/ruleset.py'
- 'plugins/lookup/rulesets.py'
- '.github/workflows/ans-int-test-lkp-rulesets.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:
<<<<<<< HEAD

Check failure on line 65 in .github/workflows/ans-int-test-lkp-rulesets.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/ans-int-test-lkp-rulesets.yaml

Invalid workflow file

You have an error in your yaml syntax on line 65
ancient_cre:
image: checkmk/check-mk-raw:2.1.0p49
ports:
- 5021:5000
env:
CMK_SITE_ID: "ancient_cre"
CMK_PASSWORD: "Sup3rSec4et!"
=======
>>>>>>> 6fa3ec61 (Add 2.4.0 CME and remove 2.1.0.)
old_cre:
image: checkmk/check-mk-raw:2.2.0p37
ports:
- 5022:5000
env:
CMK_SITE_ID: "old_cre"
CMK_PASSWORD: "Sup3rSec4et!"
stable_cre:
image: checkmk/check-mk-raw:2.3.0p23
ports:
- 5023:5000
env:
CMK_SITE_ID: "stable_cre"
CMK_PASSWORD: "Sup3rSec4et!"
stable_cme:
image: checkmk/check-mk-managed:2.3.0p23
ports:
- 5323:5000
env:
CMK_SITE_ID: "stable_cme"
CMK_PASSWORD: "Sup3rSec4et!"
beta_cre:
image: checkmk/check-mk-raw:master-daily
ports:
- 5024:5000
env:
CMK_SITE_ID: "beta_cre"
CMK_PASSWORD: "Sup3rSec4et!"
beta_cme:
image: checkmk/check-mk-managed:master-daily
ports:
- 5324:5000
env:
CMK_SITE_ID: "beta_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: Provide secrets file
run: echo "${{ secrets.CHECKMK_DOWNLOAD_PW }}" > ./tests/integration/files/.dl-secret
working-directory: ./ansible_collections/${{env.NAMESPACE}}/${{env.COLLECTION_NAME}}
env:
CHECKMK_DOWNLOAD_PW: ${{ secrets.CHECKMK_DOWNLOAD_PW }}
- 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}}