Skip to content

Commit

Permalink
Add RayCLuster Oauth Authentication test
Browse files Browse the repository at this point in the history
  • Loading branch information
Srihari1192 authored and openshift-merge-bot[bot] committed Feb 14, 2024
1 parent d987838 commit 91356f4
Show file tree
Hide file tree
Showing 7 changed files with 305 additions and 31 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/e2e_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,18 +112,14 @@ jobs:
- name: Run e2e tests
run: |
export CODEFLARE_TEST_TIMEOUT_SHORT=1m
export CODEFLARE_TEST_TIMEOUT_MEDIUM=5m
export CODEFLARE_TEST_TIMEOUT_LONG=15m
export CODEFLARE_TEST_OUTPUT_DIR=${{ env.TEMP_DIR }}
echo "CODEFLARE_TEST_OUTPUT_DIR=${CODEFLARE_TEST_OUTPUT_DIR}" >> $GITHUB_ENV
set -euo pipefail
pip install poetry
poetry install --with test,docs
echo "Running e2e tests..."
poetry run pytest -v -s ./tests/e2e/mnist_raycluster_sdk_test.py > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output.log 2>&1
poetry run pytest -v -s ./tests/e2e -m kind > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output.log 2>&1
- name: Print CodeFlare operator logs
if: always() && steps.deploy.outcome == 'success'
Expand Down
9 changes: 8 additions & 1 deletion docs/e2e.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ Pre-requisite for KinD clusters: please add in your local `/etc/hosts` file `127
```
make kind-e2e
export CLUSTER_HOSTNAME=kind
export CODEFLARE_TEST_TIMEOUT_LONG=20m
make deploy -e IMG=quay.io/project-codeflare/codeflare-operator:v1.1.0
make setup-e2e
```
Expand Down Expand Up @@ -77,3 +76,11 @@ Pre-requisite for KinD clusters: please add in your local `/etc/hosts` file `127
poetry install --with test,docs
poetry run pytest -v -s ./tests/e2e/mnist_raycluster_sdk_test.py
```
- To run the multiple tests based on the cluster environment, we can run the e2e tests by marking -m with cluster environment (kind or openshift)
```
poetry run pytest -v -s ./tests/e2e -m openshift
```
- By default tests configured with timeout of `15 minutes`. If necessary, we can override the timeout using `--timeout` option
```
poetry run pytest -v -s ./tests/e2e -m openshift --timeout=1200
```
Loading

0 comments on commit 91356f4

Please sign in to comment.