Skip to content

Fix deprecations

Fix deprecations #6

Workflow file for this run

name: Test ansible role on Amazon Linux
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
python2:
runs-on: ubuntu-latest
container: python:2.7.18-alpine
strategy:
matrix:
distribution:
- amazonlinux
dist_version:
- 2-builded
mongodb_version:
- '4.2'
- '4.0'
- '3.6'
env:
DISTRIBUTION: ${{ matrix.distribution }}
DIST_VERSION: ${{ matrix.dist_version }}
MONGODB_VERSION: ${{ matrix.mongodb_version }}
DOCKER_PRIVILEGED: true
PYTHON_VERSION: '2'
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Prepare tests
run: |
apk add --no-cache bash
bash tests/scripts/before_install.sh
- name: Run test on single host and security authorization disabled
run: bash tests/scripts/single.sh disabled python
- name: Run idempotence test and cleanup
run: bash tests/scripts/single_cleanup.sh disabled python
- name: Run test on single host and security authorization enabled
run: bash tests/scripts/single.sh enabled python
- name: Run idempotence test and cleanup
run: bash tests/scripts/single_cleanup.sh enabled python
- name: Run test replicaSet on three hosts and security authorization disabled
run: bash tests/scripts/rs.sh disabled python
- name: Run idempotence test and cleanup
run: bash tests/scripts/rs_cleanup.sh disabled python
- name: Run test replicaSet on three hosts and security authorization enabled
run: bash tests/scripts/rs.sh enabled python
- name: Run idempotence test and cleanup
run: bash tests/scripts/rs_cleanup.sh enabled python