test(REQ-3282): 添加http集成测试脚本demo
This commit is contained in:
parent
91946fb28e
commit
ea77b16104
@ -0,0 +1,14 @@
|
||||
# 查询协同关系
|
||||
POST {{host}}/api/org/cooperate-ship/list
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
"workspaceId": 195,
|
||||
"status": 1,
|
||||
"organizationalUnitId": 5140,
|
||||
"cooperateTypes": [
|
||||
9,
|
||||
11
|
||||
]
|
||||
}
|
||||
14
orgmanax-api/src/test/resources/http/node/node.http
Normal file
14
orgmanax-api/src/test/resources/http/node/node.http
Normal file
@ -0,0 +1,14 @@
|
||||
# 查询协同关系
|
||||
POST {{host}}/api/org/cooperate-ship/list
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
"workspaceId": 195,
|
||||
"status": 1,
|
||||
"organizationalUnitId": 5140,
|
||||
"cooperateTypes": [
|
||||
9,
|
||||
11
|
||||
]
|
||||
}
|
||||
14
orgmanax-api/src/test/resources/http/nodeuser/node-user.http
Normal file
14
orgmanax-api/src/test/resources/http/nodeuser/node-user.http
Normal file
@ -0,0 +1,14 @@
|
||||
# 查询协同关系
|
||||
POST {{host}}/api/org/cooperate-ship/list
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
"workspaceId": 195,
|
||||
"status": 1,
|
||||
"organizationalUnitId": 5140,
|
||||
"cooperateTypes": [
|
||||
9,
|
||||
11
|
||||
]
|
||||
}
|
||||
14
orgmanax-api/src/test/resources/http/orgjob/org-job.http
Normal file
14
orgmanax-api/src/test/resources/http/orgjob/org-job.http
Normal file
@ -0,0 +1,14 @@
|
||||
# 查询协同关系
|
||||
POST {{host}}/api/org/cooperate-ship/list
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
"workspaceId": 195,
|
||||
"status": 1,
|
||||
"organizationalUnitId": 5140,
|
||||
"cooperateTypes": [
|
||||
9,
|
||||
11
|
||||
]
|
||||
}
|
||||
14
orgmanax-api/src/test/resources/http/orguser/org-user.http
Normal file
14
orgmanax-api/src/test/resources/http/orguser/org-user.http
Normal file
@ -0,0 +1,14 @@
|
||||
# 查询协同关系
|
||||
POST {{host}}/api/org/cooperate-ship/list
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
"workspaceId": 195,
|
||||
"status": 1,
|
||||
"organizationalUnitId": 5140,
|
||||
"cooperateTypes": [
|
||||
9,
|
||||
11
|
||||
]
|
||||
}
|
||||
88
orgmanax-api/src/test/resources/http/private.http
Normal file
88
orgmanax-api/src/test/resources/http/private.http
Normal file
@ -0,0 +1,88 @@
|
||||
# 查询模板
|
||||
POST {{host}}/private/event/produce
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
"topic": "workflow-engine-topic",
|
||||
"event": {
|
||||
"eventId": "workflowEngine_a782177733e04bdca31c564511e5a85c",
|
||||
"eventModule": "process-activity",
|
||||
"eventName": "process-activity-wait-assignee",
|
||||
"eventTime": 1715224551784,
|
||||
"operatorId": "system",
|
||||
"operatorType": "system",
|
||||
"shardingKey": "202405091115000000001",
|
||||
"targetId": "202405091115000000001",
|
||||
"targetType": "process-activity-wait-assignee",
|
||||
"data": {
|
||||
"activityId": "node_229273528135",
|
||||
"activityName": "业务节点",
|
||||
"businessKey": "J1788407490489188354",
|
||||
"passedAssigners": [],
|
||||
"processDefinitionId": "acceptance:2:202405091050000000004",
|
||||
"processDefinitionKey": "acceptance",
|
||||
"processInstanceId": "202405091115000000001",
|
||||
"triggerId": "202405091115000000054",
|
||||
"type": "PROCESS_ACTIVITY_WAIT_ASSIGNEE",
|
||||
"variables": {
|
||||
"[_ACTIVITY_INFO_SNAPSHOT_]NODE_STARTER": [
|
||||
{
|
||||
"ouId": "5144",
|
||||
"personId": "9000400322",
|
||||
"tenantId": "0"
|
||||
}
|
||||
],
|
||||
"[_ACTIVITY_INFO_SNAPSHOT_]node_229273528135": [
|
||||
{
|
||||
"assignee": "biz",
|
||||
"assigneeType": "_skip_",
|
||||
"assignerName": "dummyApprover",
|
||||
"ouId": "",
|
||||
"personId": "",
|
||||
"tenantId": ""
|
||||
}
|
||||
],
|
||||
"[_ASSIGNEE_INFO_]202405091115000000027": "{\"ouId\":\"5144\",\"personId\":\"9000400322\",\"tenantId\":\"0\"}",
|
||||
"[_ASSIGNEE_INFO_]202405091115000000058": "{\"assignee\":\"biz\",\"assigneeType\":\"_skip_\",\"assignerName\":\"dummyApprover\",\"ouId\":\"\",\"personId\":\"\",\"tenantId\":\"\"}",
|
||||
"[_ASSIGNEE_LIST_INFO_]node_229273528135": [
|
||||
"|"
|
||||
],
|
||||
"[_BIZ_ORG_RELATION_]": {
|
||||
"orgScopes": [],
|
||||
"workerTeamScopes": []
|
||||
},
|
||||
"[_INTERNAL_INITIATOR_]": "{\"ouId\":\"5144\",\"personId\":\"9000400322\",\"tenantId\":\"0\"}",
|
||||
"[_INTERNAL_PROCESS_AGENT]": false,
|
||||
"[_INTERNAL_PROCESS_WORKSPACE_TYPE]": 2,
|
||||
"[_PENDING_VARIABLES]": {},
|
||||
"[_WORKFLOW_ENGINE_VERSION_]": "1.3.3-SNAPSHOT",
|
||||
"_TASK_COMPLETE_TYPE202405091115000000027": "APPROVED",
|
||||
"groupExists": "false",
|
||||
"laborSubcontractingExists": "true",
|
||||
"primaryContractingExists": "true",
|
||||
"professionalSubcontractingExists": "true",
|
||||
"teamExists": "true"
|
||||
},
|
||||
"workflowEngineVersion": "1.3.3-SNAPSHOT"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
### 查询变量
|
||||
POST {{host}}/private/properties
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
### 查询变量
|
||||
POST {{host}}/private/exception
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
|
||||
}
|
||||
7
orgmanax-api/src/test/resources/http/reponse-check.js
Normal file
7
orgmanax-api/src/test/resources/http/reponse-check.js
Normal file
@ -0,0 +1,7 @@
|
||||
client.test("request executed successful", function() {
|
||||
client.assert(response.code == 200, "Response status is not 200")
|
||||
});
|
||||
|
||||
client.test("response body status successful", function () {
|
||||
client.assert(response.body.status == "SUCCESS", "Response body status is not success")
|
||||
});
|
||||
14
orgmanax-api/src/test/resources/http/rest-client.env.json
Normal file
14
orgmanax-api/src/test/resources/http/rest-client.env.json
Normal file
@ -0,0 +1,14 @@
|
||||
{
|
||||
"local": {
|
||||
"host": "http://localhost:8080"
|
||||
},
|
||||
"dev": {
|
||||
"host": "http://dev-app.axzo.cn/orgmanax"
|
||||
},
|
||||
"test": {
|
||||
"host": "http://test-api.axzo.cn/orgmanax"
|
||||
},
|
||||
"pre": {
|
||||
"host": "http://pre-api.axzo.cn/orgmanax"
|
||||
}
|
||||
}
|
||||
14
orgmanax-api/src/test/resources/http/unit/unit.http
Normal file
14
orgmanax-api/src/test/resources/http/unit/unit.http
Normal file
@ -0,0 +1,14 @@
|
||||
# 查询协同关系
|
||||
POST {{host}}/api/org/cooperate-ship/list
|
||||
Content-Type: application/json
|
||||
Accept: application/json
|
||||
|
||||
{
|
||||
"workspaceId": 195,
|
||||
"status": 1,
|
||||
"organizationalUnitId": 5140,
|
||||
"cooperateTypes": [
|
||||
9,
|
||||
11
|
||||
]
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user