stable-diffusion-aws-extension/test
Jingyi 3946cd0411 improved wf delete 2024-05-23 13:31:49 +08:00
..
data added compare tests 2024-05-08 18:14:50 +08:00
test_01_client_create added compare tests 2024-05-11 20:08:32 +08:00
test_02_api_base improved wf delete 2024-05-23 08:09:28 +08:00
test_03_api_ep added compare tests 2024-05-08 18:14:50 +08:00
test_04_api_user improved gpus tasks 2024-04-26 21:21:22 +08:00
test_05_api_checkpoint improved gpus tasks 2024-04-26 21:21:22 +08:00
test_06_api_inference use ml.g4dn.2xlarge for train 2024-05-18 17:23:39 +08:00
test_07_api_ep_recreate improved tests 2024-04-28 22:01:58 +08:00
test_08_api_inference_re added DownloadFileSize 2024-04-29 11:53:07 +08:00
test_09_api_training improved tests 2024-04-28 16:50:28 +08:00
test_10_local_only improved wf delete 2024-05-23 13:31:49 +08:00
test_11_api_clean improved check_s3_directory 2024-05-14 16:47:19 +08:00
test_12_client_check added compare tests 2024-05-11 20:08:32 +08:00
test_13_client_clean improved endpoint cache check 2024-04-14 16:15:54 +08:00
utils merge proxy 2024-05-22 20:22:58 +08:00
.gitignore mkdir ControlNet 2024-04-17 10:45:06 +08:00
Makefile redesign test 2024-04-08 21:03:40 +08:00
README.md improved docs 2024-04-10 22:10:50 +08:00
bak_test_windows.py redesign test 2024-04-08 22:05:11 +08:00
buildspec.yaml report to $API_BUCKET 2024-04-11 10:45:56 +08:00
buildspec_build.sh improved tests time 2024-04-18 13:57:35 +08:00
buildspec_post_build.sh removed unused ModelTable 2024-05-17 21:23:50 +08:00
config.py use ml.g4dn.2xlarge for train 2024-05-18 16:14:35 +08:00
local_build.sh remove gcr py mirror 2024-04-10 11:17:58 +08:00
local_test.sh update tests 2024-04-27 08:54:59 +08:00
local_test_k.sh update tests 2024-04-27 08:54:59 +08:00
requirements.txt improved docs 2024-04-10 22:10:50 +08:00
update_stack_test.sh added capabilities 2024-04-11 10:19:01 +08:00
windows.py feat: Windows Support (#53) 2023-07-10 17:37:53 +08:00

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 dev branch of stable-diffusion-aws-extension before 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>