add integration-test

This commit is contained in:
金海洋 2023-10-27 17:17:32 +08:00
parent 05f8801988
commit 0b101e3afa
3 changed files with 50 additions and 0 deletions

View File

@ -0,0 +1,7 @@
client.test("request executed successful", function () {
client.assert(response.status == 200, "Response status is not 200")
});
client.test("response body status successful", function () {
client.assert(response.body.code == 0, "Response body code is not 0")
});

View File

@ -0,0 +1,14 @@
{
"local": {
"host": "http://localhost:8080"
},
"dev": {
"host": "https://dev-app.axzo.cn/"
},
"test": {
"host": "https://test-api.axzo.cn/"
},
"pre": {
"host": "https://pre-api.axzo.cn/"
}
}

View File

@ -0,0 +1,29 @@
###
POST {{host}}/api/saas-role-user/list
Accept: application/json
Content-Type: application/json
{
"identityIds": [809,631]
}
> reponse-check.js
###
POST {{host}}/api/saas-role-user/delete
Accept: application/json
Content-Type: application/json
{
}
> reponse-check.js