Skip to content

Commit

Permalink
Run mabl test against PR deployment (#285)
Browse files Browse the repository at this point in the history
* Mount a configmap with a dataset

* Use an external ingres

* Run mabl tests

* Add label to mabl plan
  • Loading branch information
mmwinther authored Apr 15, 2024
1 parent 3517217 commit 51b2786
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,22 @@ jobs:
RESOURCE: .nais/staging-pr.yaml
VAR: image=${{ needs.docker-build.outputs.image-tag }},pr-number=${{github.event.number}}
DEPLOY_SERVER: deploy.ssb.cloud.nais.io:443

mabl-test:
name: Run mabl tests
runs-on: ubuntu-latest
needs: deploy
steps:
- name: Run mabl tests
id: mabl-test-deployment
uses: mablhq/github-run-tests-action@v1
env:
# Use a "CI/CD Integration" type of mabl API key
MABL_API_KEY: ${{ secrets.MABL_API_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
application-id: ${{ secrets.DATADOC_MABL_APPLICATION_ID }}
environment-id: ${{ secrets.DATADOC_MABL_ENVIRONMENT_ID }}
uri: https://datadoc-pr-${{github.event.number}}.external.staging.ssb.cloud.nais.io
mabl-branch: ${{ github.head_ref }}
plan-labels: Datadoc
6 changes: 5 additions & 1 deletion .nais/staging-pr.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@ spec:
enabled: false

ingresses:
- https://datadoc-pr-{{ pr-number }}.staging.ssb.cloud.nais.io
- https://datadoc-pr-{{ pr-number }}.external.staging.ssb.cloud.nais.io

filesFrom:
- configmap: integration-test-dataset
mountPath: /var/run/datasets/ifpn/klargjorte_data/

liveness:
path: /healthz/live
Expand Down

0 comments on commit 51b2786

Please sign in to comment.