|
|
||
|---|---|---|
| .. | ||
| data | ||
| test_01_client_create | ||
| test_02_api_base | ||
| test_03_api_ep | ||
| test_04_api_user | ||
| test_05_api_checkpoint | ||
| test_06_api_inference | ||
| test_07_api_ep_recreate | ||
| test_08_api_inference_re | ||
| test_09_api_training | ||
| test_10_local_only | ||
| test_11_api_clean | ||
| test_12_client_check | ||
| test_13_client_clean | ||
| utils | ||
| .gitignore | ||
| Makefile | ||
| README.md | ||
| bak_test_windows.py | ||
| buildspec.yaml | ||
| buildspec_build.sh | ||
| buildspec_post_build.sh | ||
| config.py | ||
| local_build.sh | ||
| local_test.sh | ||
| local_test_k.sh | ||
| requirements.txt | ||
| update_stack_test.sh | ||
| windows.py | ||
README.md
esd-api-test
Description
This project helps you quickly build a test environment with the same structure as test pipeline in your local environment.
References
You may need to refer to the following documents:
- Test locally
- Note: You must test and successfully complete on the
devbranch ofstable-diffusion-aws-extensionbefore you can commit the code.
Build Test Environment
If the shell fails, please refer to the local_build.sh file and execute the commands step by step.
make build
Setup Environment Variables
Create .env file with the following content:
API_GATEWAY_URL=https://{apiId}.execute-api.{region}.amazonaws.com/prod/
API_GATEWAY_URL_TOKEN={apiToken}
API_BUCKET=xxxx
Run All Tests
make test
Run Specific Directory/File/Class/Case
# test directory
make test test_1_unit/
# test file
make test test_1_unit/test_1_connection.py
# test class
make test test_1_unit/test_1_connection.py::TestConnectUnit
# test case
make test test_1_unit/test_1_connection.py::TestConnectUnit::test_test_connection_get_without_key
# test -k
make testk <your-keyword>