stable-diffusion-aws-extension/test
Juanjuan 969a192c52
Merge pull request #850 from awslabs/dependabot/pip/test/setuptools-70.0.0
Bump setuptools from 69.2.0 to 70.0.0 in /test
2024-07-30 15:30:40 +08:00
..
data added compare tests 2024-05-08 18:14:50 +08:00
test_01_client_create update ec2 link 2024-06-14 07:31:23 +08:00
test_02_api_base improved docker base 2024-07-16 22:53:45 +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 fix tests 2024-06-13 20:28:11 +08:00
test_06_api_inference fix tests 2024-06-13 20:28:11 +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 fix tests 2024-06-13 20:28:11 +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 update ec2 link 2024-06-14 07:31:23 +08:00
test_13_client_clean update ec2 link 2024-06-14 07:31:23 +08:00
utils support ec2 apis 2024-07-03 11:00:34 +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 Bump setuptools from 69.2.0 to 70.0.0 in /test 2024-07-15 19:26:50 +00: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>