-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: added prometheus #19 * feat: added pdfa/ua profiles for validate endpoint * refactoring: unit/integration tests (use fast api test client for all API tests) * refactoring: load test profile (use same pdf documents for all tests) * chore: updated documentation
- Loading branch information
1 parent
185780f
commit ef1ab1c
Showing
40 changed files
with
1,448 additions
and
717 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,31 +2,21 @@ | |
|
||
Teal has two modes: | ||
|
||
- **app mode** will run the teal app. In app mode you can also start up the Locust webui. | ||
- **test mode** will run the tests and print the result to stdout. | ||
- **APP mode** will run the teal app. In app mode you can also start up the Locust webui. | ||
- **TEST mode** will run the tests and print the result to stdout. | ||
|
||
## Running Teal in App Mode | ||
|
||
Here's a quick example of how easy it is to work with Teal: | ||
|
||
```bash | ||
docker run --pull=always --rm -it -p 8000:8000 --name teal ghcr.io/rueedlinger/teal:main | ||
docker run --pull=always --rm -it -p 8000:8000 \ | ||
--name teal ghcr.io/rueedlinger/teal:main | ||
``` | ||
|
||
Next you can use the api with the openapi ui. | ||
|
||
- http://localhost:8000/docs | ||
|
||
### Starting Teal with Locust (Load Testing) | ||
|
||
Teal also includes Locust load tests, you just need to set the environment variable `TEAL_START_LOCUST=true`. | ||
The following command will start the Locust web UI inside the Docker container. | ||
|
||
```bash | ||
docker run --pull=always --rm -it -p 8089:8089 -p 8000:8000 -e TEAL_START_LOCUST=true --name teal ghcr.io/rueedlinger/teal:main | ||
``` | ||
|
||
You can now start the load test from the locust webui (http://0.0.0.0:8089/). | ||
- [http://localhost:8000/docs](http://localhost:8000/docs) | ||
|
||
### Teal REST API Endpoint | ||
|
||
|
@@ -135,11 +125,24 @@ curl -X 'POST' \ | |
-F '[email protected];type=application/vnd.openxmlformats-officedocument.wordprocessingml.document' | ||
``` | ||
|
||
### Starting Teal with Locust (Load Testing) | ||
|
||
Teal also includes Locust load tests, you just need to set the environment variable `TEAL_START_LOCUST=true`. | ||
The following command will start the Locust web UI inside the Docker container. | ||
|
||
```bash | ||
docker run --pull=always --rm -it -p 8089:8089 -p 8000:8000 \ | ||
-e TEAL_START_LOCUST=true --name teal ghcr.io/rueedlinger/teal:main | ||
``` | ||
|
||
You can now start the load test from the locust webui [http://localhost:8089/](http://localhost:8089/). | ||
|
||
## Running Teal in Test Mode | ||
|
||
Teal is packed with unit and integration tests, you just need to set the environment varaible `TEAL_TEST_MODE=true`. | ||
These tests can be run and verified with teh following command. | ||
|
||
```bash | ||
docker run --pull=always --rm -it -p 8000:8000 -e TEAL_TEST_MODE=true --name teal ghcr.io/rueedlinger/teal:main | ||
docker run --pull=always --rm -it -p 8000:8000 \ | ||
-e TEAL_TEST_MODE=true --name teal ghcr.io/rueedlinger/teal:main | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.