Skip to content

Fix replset and sharding integration tests #3

Fix replset and sharding integration tests

Fix replset and sharding integration tests #3

Workflow file for this run

---
# Managed by modulesync - DO NOT EDIT
# https://voxpupuli.org/docs/updating-files-managed-with-modulesync/
name: 'CI Multinode'
on:
pull_request: {}
push:
branches:
- main
- master
concurrency:
group: ${{ github.ref_name }}
cancel-in-progress: true
jobs:
setup_matrix:
name: 'Setup Test Matrix'
runs-on: ubuntu-latest
timeout-minutes: 40
outputs:
beaker_setfiles: ${{ steps.get-outputs.outputs.beaker_setfiles }}
puppet_major_versions: ${{ steps.get-outputs.outputs.puppet_major_versions }}
puppet_unit_test_matrix: ${{ steps.get-outputs.outputs.puppet_unit_test_matrix }}
env:
BUNDLE_WITHOUT: development:system_tests:release
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Setup Test Matrix
id: get-outputs
run: bundle exec metadata2gha --use-fqdn --pidfile-workaround false
acceptance:
needs: setup_matrix
runs-on: ubuntu-latest
env:
BUNDLE_WITHOUT: development:test:release
strategy:
fail-fast: false
matrix:
setfile:
- name: CentOS 7
value: centos7-64shard.ma{hostname=mongodb1}-centos7-64slave,router.a{hostname=mongodb2}
- name: CentOS 8
value: centos8-64shard.ma{hostname=mongodb1}-centos8-64slave,router.a{hostname=mongodb2}
- name: CentOS 9
value: centos9-64shard.ma{hostname=mongodb1}-centos9-64slave,router.a{hostname=mongodb2}
- name: Rocky 8
value: rocky8-64shard.ma{hostname=mongodb1}-rocky8-64slave,router.a{hostname=mongodb2}
- name: Rocky 9
value: rocky9-64shard.ma{hostname=mongodb1}-rocky9-64slave,router.a{hostname=mongodb2}
- name: AlmaLinux 8
value: almalinux8-64shard.ma{hostname=mongodb1}-almalinux8-64slave,router.a{hostname=mongodb2}
- name: AlmaLinux 9
value: almalinux9-64shard.ma{hostname=mongodb1}-almalinux9-64slave,router.a{hostname=mongodb2}
- name: Debian 10
value: debian10-64shard.ma{hostname=mongodb1}-debian10-64slave,router.a{hostname=mongodb2}
- name: Debian 11
value: debian11-64shard.ma{hostname=mongodb1}-debian11-64slave,router.a{hostname=mongodb2}
- name: Debian 12
value: debian12-64shard.ma{hostname=mongodb1}-debian12-64slave,router.a{hostname=mongodb2}
- name: Ubuntu 20.04
value: ubuntu2004-64shard.ma{hostname=mongodb1}-ubuntu2004-64slave,router.a{hostname=mongodb2}
- name: Ubuntu 22.04
value: ubuntu2204-64shard.ma{hostname=mongodb1}-ubuntu2204-64slave,router.a{hostname=mongodb2}
mongodb:
- name: MongoDB 4.4
value: 4.4
- name: MongoDB 5.0
value: 5.0
- name: MongoDB 6.0
value: 6.0
- name: MongoDB 7.0
value: 7.0
puppet: ${{fromJson(needs.setup_matrix.outputs.puppet_major_versions)}}
name: ${{ matrix.puppet.name }} - ${{ matrix.setfile.name }} - ${{ matrix.mongodb.name }}
steps:
- uses: actions/checkout@v2
- name: Setup ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.2'
bundler-cache: true
- name: Run tests
run: bundle exec rspec spec/acceptance/replset_spec.rb spec/acceptance/sharding_spec.rb
env:
BEAKER_PUPPET_COLLECTION: ${{ matrix.puppet.collection }}
BEAKER_setfile: ${{ matrix.setfile.value }}
BEAKER_FACTER_mongodb_repo_version: ${{ matrix.mongodb.value }}
tests:
needs:
- acceptance
runs-on: ubuntu-latest
name: Multinode test suite
steps:
- run: echo Test suite completed