Skip to content

Commit 7f0b2dc

Browse files
committed
CI: Test multiple versions of Pulp in integration tests
Improves coverage of Pulp versions, and the latest tag seems to fail when generating a CSRF token.
1 parent ed43001 commit 7f0b2dc

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.github/workflows/pull_request.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@ jobs:
4646
4747
integration:
4848
runs-on: ubuntu-latest
49+
strategy:
50+
fail-fast: false
51+
matrix:
52+
pulp:
53+
- "3.16"
54+
- "3.18"
4955
steps:
5056
# Checks-out the repository under $GITHUB_WORKSPACE, so it's accessible to the job
5157
- uses: actions/checkout@v2
@@ -61,6 +67,8 @@ jobs:
6167
- name: Run Pulp in one
6268
run: |
6369
tests/pulp-in-one.sh
70+
env:
71+
PULP_TAG: ${{ matrix.pulp }}
6472

6573
# TODO: Use ansible-test to run these.
6674
- name: Running integration tests

tests/pulp-in-one.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ set -o pipefail
88

99
mkdir -p settings
1010

11+
PULP_TAG=${PULP_TAG:3.18}
12+
1113
cat << EOF > settings/settings.py
1214
CONTENT_ORIGIN='http://$(hostname):8080'
1315
ANSIBLE_API_HOSTNAME='http://$(hostname):8080'
@@ -21,7 +23,7 @@ docker run \
2123
--name pulp \
2224
--volume "$(pwd)/settings":/etc/pulp \
2325
--publish 8080:80 \
24-
pulp/pulp:latest
26+
pulp/pulp:$PULP_TAG
2527

2628
# Wait for it to come up.
2729
attempts=0

0 commit comments

Comments
 (0)