Skip to content

Commit

Permalink
ci: add pynfs test into pipeline
Browse files Browse the repository at this point in the history
Acked-by: Tigran Mkrtchyan
  • Loading branch information
Lars Janssen authored and kofemann committed Jul 27, 2023
1 parent 0edcfb1 commit 1b7e07c
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .gitlab-ci.yml
Expand Up @@ -21,6 +21,7 @@ stages:
- testenv_pre
- test_infra
- test_deploy
- testing
- testenv_post
- upload

Expand All @@ -31,6 +32,30 @@ variables:
CHECK_TIMEOUT: --timeout=300s
AUTOCA_URL: https://ci.dcache.org/ca

pynfs_tests:
stage: testing
image: bitnami/kubectl:latest
allow_failure: true
tags:
- kubernetes
- dcache-dev
script:
- kubectl config set-context --current --namespace=${K8S_NAMESPACE}

- kubectl run pynfs-tester --image=dcache/pynfs:0.1 --restart=Never --command -- sleep 3600

- kubectl wait $CHECK_TIMEOUT --for=condition=Ready pods --all
- kubectl exec pynfs-tester -- /bin/bash -c "cd /pynfs/nfs4.0; python3 -u ./testserver.py --maketree dcache-door-svc:/data OPEN5; exit 0"
- kubectl exec pynfs-tester -- /bin/bash -c "cd /pynfs/nfs4.0; python3 -u ./testserver.py --xml=/xunit-report-v40.xml --noinit dcache-door-svc:/data all; exit 0"
- kubectl exec pynfs-tester -- /bin/bash -c "cd /pynfs/nfs4.1; python3 -u ./testserver.py --xml=/xunit-report-v41.xml --noinit dcache-door-svc:/data all; exit 0"

- kubectl cp pynfs-tester:/xunit-report-v40.xml xunit-report-v40.xml
- kubectl cp pynfs-tester:/xunit-report-v41.xml xunit-report-v41.xml
environment: testing
artifacts:
reports:
junit:
- "xunit*.xml"

rpm:
stage: build
Expand Down

0 comments on commit 1b7e07c

Please sign in to comment.