Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vpavlin/jh-stresstest
Simple Selenium based test for JupyterHub on OpenShift component of https://opendatahub.io
https://github.com/vpavlin/jh-stresstest
kubernetes openshift pipfile python selenium testing
Last synced: 26 days ago
JSON representation
Simple Selenium based test for JupyterHub on OpenShift component of https://opendatahub.io
- Host: GitHub
- URL: https://github.com/vpavlin/jh-stresstest
- Owner: vpavlin
- Created: 2019-10-24T12:14:59.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2021-06-02T00:41:18.000Z (over 3 years ago)
- Last Synced: 2024-04-04T11:53:36.171Z (7 months ago)
- Topics: kubernetes, openshift, pipfile, python, selenium, testing
- Language: Python
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# jh-stresstest
This repository contains a basic Python script and Kubernetes manifests to automatically test JupyterHub deployment on OpenShift using Selenium.
It is mainly used to test JupyterHub in https://opendatahub.io, but can be probably reused elsewhere with minor tweaks.
## Flow
1. Login to JupyterHub as Admin
2. Create a new user
3. Impersonate that user
4. Configure spawner and spawn a server
5. Execute notebook(s)
6. Kill the server
7. Remove the user## Deployment
```
oc apply -f openshift/jhstress.bc.yaml
```When the build is done, deploy the Job. You will need to configure `JH_URL`, `JH_LOGIN_USER` and `JH_LOGIN_PASS`. You can also change `parallelism` and `completions` to set how many parallel users you want.
```
oc apply -f openshift/jhstress.job.yaml
```