Skip to content

Commit 190e0da

Browse files
committed
Add RayCLuster Oauth Authentication test
1 parent 5f0fc09 commit 190e0da

File tree

7 files changed

+304
-35
lines changed

7 files changed

+304
-35
lines changed

.github/workflows/e2e_tests.yaml

Lines changed: 1 addition & 5 deletions
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 --timeout=900 > ${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

Lines changed: 8 additions & 5 deletions
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
```
@@ -56,10 +55,10 @@ Pre-requisite for KinD clusters: please add in your local `/etc/hosts` file `127
5655

5756

5857
- Test Phase:
59-
- Once we have the codeflare-operator and kuberay-operator running and ready, we can run the e2e test on the codeflare-sdk repository:
58+
- Once we have the codeflare-operator and kuberay-operator running and ready, we can run the e2e test on the codeflare-sdk repository and setting timeout in seconds:
6059
```
6160
poetry install --with test,docs
62-
poetry run pytest -v -s ./tests/e2e/mnist_raycluster_sdk_test.py
61+
poetry run pytest -v -s ./tests/e2e/mnist_raycluster_sdk_test.py --timeout=900
6362
```
6463

6564

@@ -72,8 +71,12 @@ Pre-requisite for KinD clusters: please add in your local `/etc/hosts` file `127
7271
make setup-e2e
7372
```
7473
- Test Phase:
75-
- Once we have the codeflare-operator and kuberay-operator running and ready, we can run the e2e test on the codeflare-sdk repository:
74+
- Once we have the codeflare-operator and kuberay-operator running and ready, we can run the e2e test on the codeflare-sdk repository and setting timeout in seconds:
7675
```
7776
poetry install --with test,docs
78-
poetry run pytest -v -s ./tests/e2e/mnist_raycluster_sdk_test.py
77+
poetry run pytest -v -s ./tests/e2e/mnist_raycluster_sdk_test.py --timeout=900
78+
```
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 --timeout=900
7982
```

0 commit comments

Comments
 (0)