Skip to content

Add RayCLuster SDK Oauth Authentication test #449

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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