Add compatibility workflows and integration tests (#1991)

Fixes #1986
Fixes #1994

- Updated .gitignore to include SSL certificate files.
- Introduced new GitHub Actions workflows for testing compatibility with
Zabbix versions 5.0, 6.0, 7.0, and 7.2.
- Added integration tests for Zabbix API for each version, ensuring
proper authentication and API version handling.
- Updated Docker Compose files to support SSL configuration for Zabbix
web services.
- Removed deprecated default Docker Compose and bootstrap files.
- Removed devenv for version 6.2.
This commit is contained in:
Zoltán Bedi
2025-03-19 14:04:52 +01:00
committed by GitHub
parent 356dbb62ad
commit 4036bc585b
27 changed files with 884 additions and 1350 deletions

35
.github/workflows/compatibility-70.yml vendored Normal file
View File

@@ -0,0 +1,35 @@
name: zabbix_70
run-name: Compatibility with Zabbix 7.0 test
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
compatibility-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5.3.0
- name: Start Zabbix environment
run: |
docker compose -f devenv/zabbix70/docker-compose.yml up -d
# Wait for Zabbix to be ready
sleep 30
- name: Run integration tests
env:
INTEGRATION_TEST70: 'true'
ZABBIX_URL: 'https://localhost/api_jsonrpc.php'
ZABBIX_USER: 'Admin'
ZABBIX_PASSWORD: 'zabbix'
run: go test -v ./pkg/zabbixapi/...
- name: Cleanup
if: always()
run: docker compose -f devenv/zabbix70/docker-compose.yml down -v