Skip to content

Commit 91356f4

Browse files
Add RayCLuster Oauth Authentication test
1 parent d987838 commit 91356f4

File tree

7 files changed

+305
-31
lines changed

7 files changed

+305
-31
lines changed

.github/workflows/e2e_tests.yaml

+1-5
Original file line numberDiff line numberDiff line change
@@ -112,18 +112,14 @@ jobs:
112112
113113
- name: Run e2e tests
114114
run: |
115-
export CODEFLARE_TEST_TIMEOUT_SHORT=1m
116-
export CODEFLARE_TEST_TIMEOUT_MEDIUM=5m
117-
export CODEFLARE_TEST_TIMEOUT_LONG=15m
118-
119115
export CODEFLARE_TEST_OUTPUT_DIR=${{ env.TEMP_DIR }}
120116
echo "CODEFLARE_TEST_OUTPUT_DIR=${CODEFLARE_TEST_OUTPUT_DIR}" >> $GITHUB_ENV
121117
122118
set -euo pipefail
123119
pip install poetry
124120
poetry install --with test,docs
125121
echo "Running e2e tests..."
126-
poetry run pytest -v -s ./tests/e2e/mnist_raycluster_sdk_test.py > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output.log 2>&1
122+
poetry run pytest -v -s ./tests/e2e -m kind > ${CODEFLARE_TEST_OUTPUT_DIR}/pytest_output.log 2>&1
127123
128124
- name: Print CodeFlare operator logs
129125
if: always() && steps.deploy.outcome == 'success'

docs/e2e.md

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@ Pre-requisite for KinD clusters: please add in your local `/etc/hosts` file `127
1010
```
1111
make kind-e2e
1212
export CLUSTER_HOSTNAME=kind
13-
export CODEFLARE_TEST_TIMEOUT_LONG=20m
1413
make deploy -e IMG=quay.io/project-codeflare/codeflare-operator:v1.1.0
1514
make setup-e2e
1615
```
@@ -77,3 +76,11 @@ Pre-requisite for KinD clusters: please add in your local `/etc/hosts` file `127
7776
poetry install --with test,docs
7877
poetry run pytest -v -s ./tests/e2e/mnist_raycluster_sdk_test.py
7978
```
79+
- 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)
80+
```
81+
poetry run pytest -v -s ./tests/e2e -m openshift
82+
```
83+
- By default tests configured with timeout of `15 minutes`. If necessary, we can override the timeout using `--timeout` option
84+
```
85+
poetry run pytest -v -s ./tests/e2e -m openshift --timeout=1200
86+
```

0 commit comments

Comments
 (0)