Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regression Tests Suite - AWS Code Build Infra - Initial Commit for #57 #285

Merged
merged 36 commits into from
May 12, 2020
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
1624940
Regression Tests Suite - AWS Code Build Infra - Initial Commit for #57
dhanainme Apr 29, 2020
a948524
Merge branch 'staging_0_1_1' into issue_57
dhanainme Apr 30, 2020
a138a5d
Refactor postman tests, add empty postman collection for todos
alexwong Apr 30, 2020
5f279b1
Add a readme for adding tests
alexwong Apr 30, 2020
0b66894
Merge branch 'staging_0_1_1' into issue_57
maaquib May 2, 2020
d36d3d7
Merge branch 'staging_0_1_1' into issue_57
mycpuorg May 4, 2020
a4e1420
Add more management tests
alexwong May 4, 2020
f14356b
Fix typo
alexwong May 5, 2020
6a32904
Snapshot Regression tests - #57
dhanainme May 5, 2020
4dbbaab
Fix typo
alexwong May 5, 2020
c6b6e84
Comment out snapshot test for now
alexwong May 5, 2020
838602a
Weird typos are showing up, try saving everything
alexwong May 5, 2020
e94ed13
Need to manually save every request in postman...
alexwong May 5, 2020
4f0248e
When reregister don't use s3
alexwong May 5, 2020
614d598
More workarounds for rereg
alexwong May 5, 2020
2608d50
Fix test messages
alexwong May 5, 2020
02c8f7a
Remove test for empty reqs
alexwong May 6, 2020
3ca268e
Change get to post
alexwong May 6, 2020
b5dcaab
Fix pytest for subprocess - #57
dhanainme May 6, 2020
7b1e4db
Enable pytest - #57
dhanainme May 6, 2020
27f4bc2
Inference API Testcases / Rename Management Testcases #57
dhanainme May 6, 2020
e004f00
Wipe Model MARs in Modelstore between tests #54
dhanainme May 7, 2020
87dae04
Fix Inference Endpoint Execution #54
dhanainme May 7, 2020
a39c172
Fix file paths - #57
dhanainme May 7, 2020
4e63e3c
Fix Initial Workers #57
dhanainme May 7, 2020
f9012b3
Fix Inference Assertions #57
dhanainme May 7, 2020
8a0a445
Fix DenseNet Inference #57
dhanainme May 7, 2020
d05d056
Fix Densenet Register #54
dhanainme May 7, 2020
668edb4
Redirect Logs to File #54
dhanainme May 7, 2020
bb2f3ef
Fix Test Execution Log #54
dhanainme May 7, 2020
22df6f1
README, Build Badge #57
dhanainme May 7, 2020
c352203
Format ReadMe #57
dhanainme May 7, 2020
6cb0eeb
Merge branch 'staging_0_1_1' into issue_57
mycpuorg May 8, 2020
de1e1b5
Update README - Add Instruction to add new tests / Run tests locally
May 11, 2020
ee0483c
Update README
dhanainme May 11, 2020
eeb83ed
Update branch for build Codebuild Badge
dhanainme May 12, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions test/buildspec.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Build Spec for AWS CodeBuild CI

version: 0.2

phases:

build:
commands:
- ./test/regression_tests.sh

artifacts:
files:
- /workspace/report/api_report.html
- /workspace/report/management_report.html
- /tmp/ts.log
- /tmp/test_exec.log
name: TS-NIGHTLY-REGRESSION-$(date +%Y-%m-%d-%H:%M)
34 changes: 34 additions & 0 deletions test/postman/environment.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"id": "68c53442-d6fa-4d54-bc03-e24f6ed313bf",
"name": "TorchServe",
"values": [
{
"key": "hostname",
"value": "localhost",
"enabled": true
},
{
"key": "protocol",
"value": "http",
"enabled": true
},
{
"key": "mgmt-port",
"value": "8081",
"enabled": true
},
{
"key": "model-name",
"value": "densenet161",
"enabled": true
},
{
"key": "pred-port",
"value": "8080",
"enabled": true
}
],
"_postman_variable_scope": "environment",
"_postman_exported_at": "2020-04-27T17:41:47.711Z",
"_postman_exported_using": "Postman/7.23.0"
}
115 changes: 115 additions & 0 deletions test/postman/inference_api_test_collection.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,115 @@
{
"info": {
"_postman_id": "5be7c1ed-04b6-45c1-bf1d-3313c4392663",
"name": "TorchServe Inference API",
"description": "For Stress Tests",
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json"
},
"item": [
{
"name": "{{protocol}}://{{hostname}}:{{pred-port}}/ping",
"request": {
"method": "GET",
"header": [],
"url": {
"raw": "{{protocol}}://{{hostname}}:{{pred-port}}/ping",
"protocol": "{{protocol}}",
"host": [
"{{hostname}}"
],
"port": "{{pred-port}}",
"path": [
"ping"
]
}
},
"response": []
},
{
"name": "{{protocol}}://{{hostname}}:{{pred-port}}/predictions/densenet161",
"event": [
{
"listen": "test",
"script": {
"id": "a925ce8d-ac7b-4a6d-aefd-e29387a08b89",
"exec": [
"",
"pm.test(\"Status code is 200\", function () {",
" pm.response.to.have.status(200);",
"});",
"",
"pm.test(\"Response time should be less than 1000ms\", function () {",
" pm.expect(pm.response.responseTime).to.be.below(1000);",
"});",
"",
"",
"pm.test(\"Body matches string\", function () {",
" pm.expect(pm.response.text()).to.include(\"tabby\");",
"});",
"",
""
],
"type": "text/javascript"
}
}
],
"request": {
"method": "POST",
"header": [
{
"key": "Content-Type",
"name": "Content-Type",
"value": "multipart-formdata",
"type": "text"
}
],
"body": {
"mode": "formdata",
"formdata": [
{
"key": "data",
"type": "file",
"src": "/workspace/serve/docs/images/kitten_small.jpg"
}
]
},
"url": {
"raw": "{{protocol}}://{{hostname}}:{{pred-port}}/predictions/densenet161",
"protocol": "{{protocol}}",
"host": [
"{{hostname}}"
],
"port": "{{pred-port}}",
"path": [
"predictions",
"densenet161"
]
}
},
"response": []
}
],
"event": [
{
"listen": "prerequest",
"script": {
"id": "c396b3da-002f-46b5-a6eb-0121cc63b352",
"type": "text/javascript",
"exec": [
""
]
}
},
{
"listen": "test",
"script": {
"id": "b6259025-d853-4d9e-a2f4-a6c0a0d86243",
"type": "text/javascript",
"exec": [
""
]
}
}
],
"protocolProfileBehavior": {}
}
Loading