Skip to content

Bump cryptography from 42.0.4 to 43.0.1 #317

Bump cryptography from 42.0.4 to 43.0.1

Bump cryptography from 42.0.4 to 43.0.1 #317

name: Pull request integration tests
on:
pull_request_target:
branches:
- main
paths:
- poetry.lock
- pyproject.toml
- 'plugins/module_utils/**'
- 'plugins/modules/**'
- 'tests/integration/**'
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number }}
cancel-in-progress: true
env:
PR_NUMBER: ${{ github.event.pull_request.number }}
jobs:
human-review-and-approval:
runs-on: ubuntu-22.04
# MUST keep this environment set if using pull_request_target
environment: integration
steps:
- name: Wait for approval
run: sleep 10
test-integration:
needs: human-review-and-approval
runs-on: ubuntu-22.04
# NOTE using the 'needs' as a gate ... the 'integration' environment has
# required reviewers (which is a good idea since we're using pull_request_target)
timeout-minutes: 90
strategy:
fail-fast: false
# NOTE we're hitting 429s (too many requests)
max-parallel: 1
matrix:
versions:
- ansible: stable-2.14
python: "3.9"
module:
- digital_ocean_account_info
- digital_ocean_balance_info
- digital_ocean_block_storage
- digital_ocean_cdn_endpoints
- digital_ocean_cdn_endpoints_info
- digital_ocean_certificate
- digital_ocean_certificate_info
- digital_ocean_database
- digital_ocean_database_info
- digital_ocean_domain
- digital_ocean_domain_info
# - digital_ocean_domain_record # No test
- digital_ocean_domain_record_info
- digital_ocean_droplet
- digital_ocean_droplet_info
- digital_ocean_firewall
- digital_ocean_firewall_info
- digital_ocean_floating_ip
- digital_ocean_floating_ip_info
- digital_ocean_image_info
- digital_ocean_kubernetes
- digital_ocean_kubernetes_info
- digital_ocean_load_balancer
- digital_ocean_load_balancer_info
- digital_ocean_monitoring_alerts
# - digital_ocean_monitoring_alerts_info # No test
- digital_ocean_project
- digital_ocean_project_info
- digital_ocean_project_resource_info
- digital_ocean_region_info
- digital_ocean_size_info
- digital_ocean_snapshot
- digital_ocean_snapshot_info
- digital_ocean_spaces
- digital_ocean_spaces_info
- digital_ocean_sshkey
- digital_ocean_sshkey_info
- digital_ocean_tag
- digital_ocean_tag_info
- digital_ocean_volume_info
- digital_ocean_vpc
- digital_ocean_vpc_info
steps:
- name: Perform integration testing
uses: ansible-community/ansible-test-gh-action@release/v1
with:
# MUST set 'git-checkout-ref' if using pull_request_target
# MUST use an Environment if using pull_request_target
# 'github.event.pull_request.head.sha' checks out the
# PR source repo's code, which should be considered untrusted
git-checkout-ref: ${{ github.event.pull_request.head.sha }}
pre-test-cmd: >-
DO_API_KEY=${{ secrets.DO_API_KEY }}
AWS_ACCESS_KEY_ID=${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY=${{ secrets.AWS_SECRET_ACCESS_KEY }}
./tests/utils/render.sh
tests/integration/integration_config.yml.template
> tests/integration/integration_config.yml
ansible-core-version: ${{ matrix.versions.ansible }}
origin-python-version: ${{ matrix.versions.python }}
target: ${{ matrix.module }}
target-python-version: ${{ matrix.versions.python }}
testing-type: integration
test-deps: >-
ansible.netcommon
ansible.utils
community.general