@camunda/e2e-test-suite 0.0.311 → 0.0.313
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pages/8.8/ClusterDetailsPage.js +3 -1
- package/dist/pages/8.8/OCIdentityGroupsPage.js +1 -0
- package/dist/tests/8.8/console-user-flows.spec.js +7 -7
- package/dist/tests/8.8/utr-enabled-user-flows.spec.js +6 -2
- package/dist/tests/c8Run-8.10/api-tests-v1.spec.js +67 -70
- package/dist/tests/c8Run-8.9/api-tests-v1.spec.js +67 -70
- package/package.json +1 -1
|
@@ -131,7 +131,9 @@ class ClusterDetailsPage {
|
|
|
131
131
|
this.orchestrationClusterCheckbox = page
|
|
132
132
|
.locator('label')
|
|
133
133
|
.filter({ hasText: /^Orchestration Cluster API$/ });
|
|
134
|
-
this.clientCredentialsLink = (clientCredentials) => page
|
|
134
|
+
this.clientCredentialsLink = (clientCredentials) => page
|
|
135
|
+
.getByRole('cell', { name: clientCredentials })
|
|
136
|
+
.getByText(clientCredentials);
|
|
135
137
|
this.clientRow = (name) => this.clientsList.filter({ hasText: name });
|
|
136
138
|
this.clientRowDeleteButton = (name) => this.clientRow(name).getByRole('button', { name: 'Delete' });
|
|
137
139
|
this.reviewUpdateButton = page.getByRole('button', { name: 'Review Update' });
|
|
@@ -129,6 +129,7 @@ class OCIdentityGroupsPage {
|
|
|
129
129
|
async deleteGroup(groupName) {
|
|
130
130
|
await this.deleteGroupButton(groupName).click();
|
|
131
131
|
await (0, test_1.expect)(this.deleteGroupModal).toBeVisible();
|
|
132
|
+
await (0, test_1.expect)(this.deleteGroupModalDeleteButton).toBeVisible();
|
|
132
133
|
await this.deleteGroupModalDeleteButton.click();
|
|
133
134
|
await (0, test_1.expect)(this.deleteGroupModal).toBeHidden();
|
|
134
135
|
}
|
|
@@ -138,12 +138,12 @@ _8_8_1.test.describe('Console User Flow Tests @tasklistV2', () => {
|
|
|
138
138
|
await (0, test_1.expect)(async () => {
|
|
139
139
|
await page.reload();
|
|
140
140
|
await (0, test_1.expect)(clusterDetailsPage.alertsList.first()).toBeVisible({
|
|
141
|
-
timeout:
|
|
141
|
+
timeout: 30000,
|
|
142
142
|
});
|
|
143
143
|
(0, test_1.expect)(await clusterDetailsPage.alertsList.count()).toBeGreaterThan(1);
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
144
|
+
await (0, test_1.expect)(clusterDetailsPage.alertsList.nth(0)).toContainText(`Email`);
|
|
145
|
+
await clusterDetailsPage.assertAlertText('Amount triggered1');
|
|
146
|
+
}).toPass({ timeout: 90000 });
|
|
147
147
|
});
|
|
148
148
|
await _8_8_1.test.step('Verify Alerts Received via Email for Incident', async () => {
|
|
149
149
|
await (0, sleep_1.sleep)(60000);
|
|
@@ -177,11 +177,11 @@ _8_8_1.test.describe('Console User Flow Tests @tasklistV2', () => {
|
|
|
177
177
|
await (0, test_1.expect)(async () => {
|
|
178
178
|
await page.reload();
|
|
179
179
|
await (0, test_1.expect)(clusterDetailsPage.alertsList.first()).toBeVisible({
|
|
180
|
-
timeout:
|
|
180
|
+
timeout: 30000,
|
|
181
181
|
});
|
|
182
182
|
(0, test_1.expect)(await clusterDetailsPage.alertsList.count()).toBeGreaterThan(1);
|
|
183
|
-
|
|
184
|
-
|
|
183
|
+
await clusterDetailsPage.assertAlertText('Amount triggered3');
|
|
184
|
+
}).toPass({ timeout: 90000 });
|
|
185
185
|
});
|
|
186
186
|
await _8_8_1.test.step('Verify Alerts Received via Email for Incident', async () => {
|
|
187
187
|
await (0, sleep_1.sleep)(60000);
|
|
@@ -9,6 +9,7 @@ const resetSession_1 = require("../../utils/resetSession");
|
|
|
9
9
|
const LoginPage_1 = require("../../pages/8.8/LoginPage");
|
|
10
10
|
const expectTextWithRetry_1 = require("../../utils/assertionHelpers/expectTextWithRetry");
|
|
11
11
|
const users_1 = require("../../utils/users");
|
|
12
|
+
const expectLocatorWithRetry_1 = require("../../utils/assertionHelpers/expectLocatorWithRetry");
|
|
12
13
|
const mainUser = (0, users_1.getTestUser)('twelfthUser');
|
|
13
14
|
_8_8_1.test.describe.parallel('UTR Enabled User Flows Test @tasklistV1', () => {
|
|
14
15
|
const clusterName = 'Test Cluster';
|
|
@@ -144,8 +145,11 @@ _8_8_1.test.describe.parallel('UTR Enabled User Flows Test @tasklistV1', () => {
|
|
|
144
145
|
await _8_8_1.test.step('View User Tasks in Tasklist', async () => {
|
|
145
146
|
await appsPage.clickCamundaApps();
|
|
146
147
|
await appsPage.clickTasklist(clusterName);
|
|
147
|
-
await (0,
|
|
148
|
-
|
|
148
|
+
await (0, expectLocatorWithRetry_1.expectLocatorWithRetry)(page, taskPanelPage.taskListPageBanner, {
|
|
149
|
+
visibilityTimeout: 20000,
|
|
150
|
+
postAction: async () => {
|
|
151
|
+
await page.reload();
|
|
152
|
+
},
|
|
149
153
|
});
|
|
150
154
|
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, taskName1);
|
|
151
155
|
await (0, expectTextWithRetry_1.expectTextWithRetry)(page, taskName2, { shouldBeVisible: false });
|
|
@@ -7,77 +7,74 @@ const zeebeClient_1 = require("../../utils/zeebeClient");
|
|
|
7
7
|
const test_1 = require("@playwright/test");
|
|
8
8
|
const constants_1 = require("../../utils/constants");
|
|
9
9
|
if (process.env.DATABASE != 'RDBMS') {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
c8Run_8_10_1.test.beforeAll(async () => {
|
|
11
|
+
await Promise.all([
|
|
12
|
+
(0, zeebeClient_1.deploy)('./resources/User_Task_Process_With_Form.bpmn'),
|
|
13
|
+
(0, zeebeClient_1.deploy)('./resources/New Form.form'),
|
|
14
|
+
(0, zeebeClient_1.deploy)('./resources/User_Task_Process_With_Form.bpmn'),
|
|
15
|
+
(0, zeebeClient_1.deploy)('./resources/Start_Form_Process.bpmn'),
|
|
16
|
+
]);
|
|
17
|
+
await Promise.all([
|
|
18
|
+
(0, zeebeClient_1.createInstances)('Form_User_Task', 1, 3),
|
|
19
|
+
(0, zeebeClient_1.createInstances)('Start_Form_Process', 1, 1),
|
|
20
|
+
]);
|
|
21
|
+
await (0, sleep_1.sleep)(10000);
|
|
22
|
+
});
|
|
23
|
+
c8Run_8_10_1.test.describe('API tests for v1', () => {
|
|
24
|
+
const auth = Buffer.from(`demo:demo`).toString('base64');
|
|
25
|
+
const requestHeaders = {
|
|
26
|
+
headers: {
|
|
27
|
+
'Content-Type': 'application/json',
|
|
28
|
+
Authorization: `Basic ${auth}`,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
(0, c8Run_8_10_1.test)('Search for process definitions @tasklistV2', async ({ request }) => {
|
|
32
|
+
const processDefinitionsList = await request.post('/v1/process-definitions/search', requestHeaders);
|
|
33
|
+
await (0, apiHelpers_1.assertResponseStatus)(processDefinitionsList, 200);
|
|
24
34
|
});
|
|
25
|
-
c8Run_8_10_1.test
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
(0, c8Run_8_10_1.test)('Search for process definitions @tasklistV2', async ({ request }) => {
|
|
34
|
-
const processDefinitionsList = await request.post('/v1/process-definitions/search', requestHeaders);
|
|
35
|
-
await (0, apiHelpers_1.assertResponseStatus)(processDefinitionsList, 200);
|
|
36
|
-
});
|
|
37
|
-
(0, c8Run_8_10_1.test)('Get a process definition via key @tasklistV2', async ({ request, }) => {
|
|
38
|
-
await (0, test_1.expect)(async () => {
|
|
39
|
-
const searchProcessDefinitions = await request.post(`/v1/process-definitions/search`, requestHeaders);
|
|
40
|
-
const processKey = await searchProcessDefinitions.json();
|
|
41
|
-
(0, test_1.expect)(processKey.items.length).toBeGreaterThan(0);
|
|
42
|
-
const response = await request.get(`/v1/process-definitions/` + processKey.items[0].key, requestHeaders);
|
|
43
|
-
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
44
|
-
}).toPass(constants_1.defaultAssertionOptions);
|
|
45
|
-
});
|
|
46
|
-
(0, c8Run_8_10_1.test)('Search for process instances @tasklistV2', async ({ request }) => {
|
|
47
|
-
const processInstancesList = await request.post('/v1/process-instances/search', requestHeaders);
|
|
48
|
-
await (0, apiHelpers_1.assertResponseStatus)(processInstancesList, 200);
|
|
49
|
-
});
|
|
50
|
-
(0, c8Run_8_10_1.test)('Search for flownode-instances @tasklistV2', async ({ request }) => {
|
|
51
|
-
const flowNodeInstancesList = await request.post('/v1/flownode-instances/search', requestHeaders);
|
|
52
|
-
await (0, apiHelpers_1.assertResponseStatus)(flowNodeInstancesList, 200);
|
|
53
|
-
});
|
|
54
|
-
(0, c8Run_8_10_1.test)('Search for variables for process instances @tasklistV2', async ({ request, }) => {
|
|
55
|
-
const variablesInstancesList = await request.post('/v1/variables/search', requestHeaders);
|
|
56
|
-
await (0, apiHelpers_1.assertResponseStatus)(variablesInstancesList, 200);
|
|
57
|
-
});
|
|
58
|
-
(0, c8Run_8_10_1.test)('Search for incidents @tasklistV2', async ({ request }) => {
|
|
59
|
-
const incidentsList = await request.post('/v1/incidents/search', requestHeaders);
|
|
60
|
-
await (0, apiHelpers_1.assertResponseStatus)(incidentsList, 200);
|
|
61
|
-
});
|
|
62
|
-
(0, c8Run_8_10_1.test)('Get connectors status @tasklistV2', async ({ request }) => {
|
|
63
|
-
await (0, sleep_1.sleep)(10000);
|
|
64
|
-
const connectorsStatus = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/actuator/health', requestHeaders);
|
|
65
|
-
await (0, apiHelpers_1.assertResponseStatus)(connectorsStatus, 200);
|
|
66
|
-
});
|
|
67
|
-
(0, c8Run_8_10_1.test)('Get a inbound connectors list @tasklistV2', async ({ request }) => {
|
|
68
|
-
const connectorsInboundList = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/inbound', requestHeaders);
|
|
69
|
-
await (0, apiHelpers_1.assertResponseStatus)(connectorsInboundList, 200);
|
|
70
|
-
});
|
|
71
|
-
(0, c8Run_8_10_1.test)('Search for tasks', async ({ request }) => {
|
|
72
|
-
const taskList = await request.post('/v1/tasks/search', requestHeaders);
|
|
73
|
-
await (0, apiHelpers_1.assertResponseStatus)(taskList, 200);
|
|
74
|
-
});
|
|
75
|
-
(0, c8Run_8_10_1.test)('Get a task via ID', async ({ request }) => {
|
|
76
|
-
const searchTasks = await request.post(`/v1/tasks/search`, requestHeaders);
|
|
77
|
-
const taskID = await searchTasks.json();
|
|
78
|
-
const response = await request.get('/v1/tasks/' + taskID[0].id, requestHeaders);
|
|
35
|
+
(0, c8Run_8_10_1.test)('Get a process definition via key @tasklistV2', async ({ request }) => {
|
|
36
|
+
await (0, test_1.expect)(async () => {
|
|
37
|
+
const searchProcessDefinitions = await request.post(`/v1/process-definitions/search`, requestHeaders);
|
|
38
|
+
const processKey = await searchProcessDefinitions.json();
|
|
39
|
+
(0, test_1.expect)(processKey.items.length).toBeGreaterThan(0);
|
|
40
|
+
const response = await request.get(`/v1/process-definitions/` + processKey.items[0].key, requestHeaders);
|
|
79
41
|
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
80
|
-
});
|
|
42
|
+
}).toPass(constants_1.defaultAssertionOptions);
|
|
43
|
+
});
|
|
44
|
+
(0, c8Run_8_10_1.test)('Search for process instances @tasklistV2', async ({ request }) => {
|
|
45
|
+
const processInstancesList = await request.post('/v1/process-instances/search', requestHeaders);
|
|
46
|
+
await (0, apiHelpers_1.assertResponseStatus)(processInstancesList, 200);
|
|
47
|
+
});
|
|
48
|
+
(0, c8Run_8_10_1.test)('Search for flownode-instances @tasklistV2', async ({ request }) => {
|
|
49
|
+
const flowNodeInstancesList = await request.post('/v1/flownode-instances/search', requestHeaders);
|
|
50
|
+
await (0, apiHelpers_1.assertResponseStatus)(flowNodeInstancesList, 200);
|
|
51
|
+
});
|
|
52
|
+
(0, c8Run_8_10_1.test)('Search for variables for process instances @tasklistV2', async ({ request, }) => {
|
|
53
|
+
const variablesInstancesList = await request.post('/v1/variables/search', requestHeaders);
|
|
54
|
+
await (0, apiHelpers_1.assertResponseStatus)(variablesInstancesList, 200);
|
|
55
|
+
});
|
|
56
|
+
(0, c8Run_8_10_1.test)('Search for incidents @tasklistV2', async ({ request }) => {
|
|
57
|
+
const incidentsList = await request.post('/v1/incidents/search', requestHeaders);
|
|
58
|
+
await (0, apiHelpers_1.assertResponseStatus)(incidentsList, 200);
|
|
59
|
+
});
|
|
60
|
+
(0, c8Run_8_10_1.test)('Get connectors status @tasklistV2', async ({ request }) => {
|
|
61
|
+
await (0, sleep_1.sleep)(10000);
|
|
62
|
+
const connectorsStatus = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/actuator/health', requestHeaders);
|
|
63
|
+
await (0, apiHelpers_1.assertResponseStatus)(connectorsStatus, 200);
|
|
64
|
+
});
|
|
65
|
+
(0, c8Run_8_10_1.test)('Get a inbound connectors list @tasklistV2', async ({ request }) => {
|
|
66
|
+
const connectorsInboundList = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/inbound', requestHeaders);
|
|
67
|
+
await (0, apiHelpers_1.assertResponseStatus)(connectorsInboundList, 200);
|
|
68
|
+
});
|
|
69
|
+
(0, c8Run_8_10_1.test)('Search for tasks', async ({ request }) => {
|
|
70
|
+
const taskList = await request.post('/v1/tasks/search', requestHeaders);
|
|
71
|
+
await (0, apiHelpers_1.assertResponseStatus)(taskList, 200);
|
|
72
|
+
});
|
|
73
|
+
(0, c8Run_8_10_1.test)('Get a task via ID', async ({ request }) => {
|
|
74
|
+
const searchTasks = await request.post(`/v1/tasks/search`, requestHeaders);
|
|
75
|
+
const taskID = await searchTasks.json();
|
|
76
|
+
const response = await request.get('/v1/tasks/' + taskID[0].id, requestHeaders);
|
|
77
|
+
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
81
78
|
});
|
|
82
|
-
}
|
|
79
|
+
});
|
|
83
80
|
}
|
|
@@ -7,77 +7,74 @@ const zeebeClient_1 = require("../../utils/zeebeClient");
|
|
|
7
7
|
const test_1 = require("@playwright/test");
|
|
8
8
|
const constants_1 = require("../../utils/constants");
|
|
9
9
|
if (process.env.DATABASE != 'RDBMS') {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
10
|
+
c8Run_8_9_1.test.beforeAll(async () => {
|
|
11
|
+
await Promise.all([
|
|
12
|
+
(0, zeebeClient_1.deploy)('./resources/User_Task_Process_With_Form.bpmn'),
|
|
13
|
+
(0, zeebeClient_1.deploy)('./resources/New Form.form'),
|
|
14
|
+
(0, zeebeClient_1.deploy)('./resources/User_Task_Process_With_Form.bpmn'),
|
|
15
|
+
(0, zeebeClient_1.deploy)('./resources/Start_Form_Process.bpmn'),
|
|
16
|
+
]);
|
|
17
|
+
await Promise.all([
|
|
18
|
+
(0, zeebeClient_1.createInstances)('Form_User_Task', 1, 3),
|
|
19
|
+
(0, zeebeClient_1.createInstances)('Start_Form_Process', 1, 1),
|
|
20
|
+
]);
|
|
21
|
+
await (0, sleep_1.sleep)(10000);
|
|
22
|
+
});
|
|
23
|
+
c8Run_8_9_1.test.describe('API tests for v1', () => {
|
|
24
|
+
const auth = Buffer.from(`demo:demo`).toString('base64');
|
|
25
|
+
const requestHeaders = {
|
|
26
|
+
headers: {
|
|
27
|
+
'Content-Type': 'application/json',
|
|
28
|
+
Authorization: `Basic ${auth}`,
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
(0, c8Run_8_9_1.test)('Search for process definitions @tasklistV2', async ({ request }) => {
|
|
32
|
+
const processDefinitionsList = await request.post('/v1/process-definitions/search', requestHeaders);
|
|
33
|
+
await (0, apiHelpers_1.assertResponseStatus)(processDefinitionsList, 200);
|
|
24
34
|
});
|
|
25
|
-
c8Run_8_9_1.test
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
};
|
|
33
|
-
(0, c8Run_8_9_1.test)('Search for process definitions @tasklistV2', async ({ request }) => {
|
|
34
|
-
const processDefinitionsList = await request.post('/v1/process-definitions/search', requestHeaders);
|
|
35
|
-
await (0, apiHelpers_1.assertResponseStatus)(processDefinitionsList, 200);
|
|
36
|
-
});
|
|
37
|
-
(0, c8Run_8_9_1.test)('Get a process definition via key @tasklistV2', async ({ request, }) => {
|
|
38
|
-
await (0, test_1.expect)(async () => {
|
|
39
|
-
const searchProcessDefinitions = await request.post(`/v1/process-definitions/search`, requestHeaders);
|
|
40
|
-
const processKey = await searchProcessDefinitions.json();
|
|
41
|
-
(0, test_1.expect)(processKey.items.length).toBeGreaterThan(0);
|
|
42
|
-
const response = await request.get(`/v1/process-definitions/` + processKey.items[0].key, requestHeaders);
|
|
43
|
-
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
44
|
-
}).toPass(constants_1.defaultAssertionOptions);
|
|
45
|
-
});
|
|
46
|
-
(0, c8Run_8_9_1.test)('Search for process instances @tasklistV2', async ({ request }) => {
|
|
47
|
-
const processInstancesList = await request.post('/v1/process-instances/search', requestHeaders);
|
|
48
|
-
await (0, apiHelpers_1.assertResponseStatus)(processInstancesList, 200);
|
|
49
|
-
});
|
|
50
|
-
(0, c8Run_8_9_1.test)('Search for flownode-instances @tasklistV2', async ({ request }) => {
|
|
51
|
-
const flowNodeInstancesList = await request.post('/v1/flownode-instances/search', requestHeaders);
|
|
52
|
-
await (0, apiHelpers_1.assertResponseStatus)(flowNodeInstancesList, 200);
|
|
53
|
-
});
|
|
54
|
-
(0, c8Run_8_9_1.test)('Search for variables for process instances @tasklistV2', async ({ request, }) => {
|
|
55
|
-
const variablesInstancesList = await request.post('/v1/variables/search', requestHeaders);
|
|
56
|
-
await (0, apiHelpers_1.assertResponseStatus)(variablesInstancesList, 200);
|
|
57
|
-
});
|
|
58
|
-
(0, c8Run_8_9_1.test)('Search for incidents @tasklistV2', async ({ request }) => {
|
|
59
|
-
const incidentsList = await request.post('/v1/incidents/search', requestHeaders);
|
|
60
|
-
await (0, apiHelpers_1.assertResponseStatus)(incidentsList, 200);
|
|
61
|
-
});
|
|
62
|
-
(0, c8Run_8_9_1.test)('Get connectors status @tasklistV2', async ({ request }) => {
|
|
63
|
-
await (0, sleep_1.sleep)(10000);
|
|
64
|
-
const connectorsStatus = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/actuator/health', requestHeaders);
|
|
65
|
-
await (0, apiHelpers_1.assertResponseStatus)(connectorsStatus, 200);
|
|
66
|
-
});
|
|
67
|
-
(0, c8Run_8_9_1.test)('Get a inbound connectors list @tasklistV2', async ({ request }) => {
|
|
68
|
-
const connectorsInboundList = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/inbound', requestHeaders);
|
|
69
|
-
await (0, apiHelpers_1.assertResponseStatus)(connectorsInboundList, 200);
|
|
70
|
-
});
|
|
71
|
-
(0, c8Run_8_9_1.test)('Search for tasks', async ({ request }) => {
|
|
72
|
-
const taskList = await request.post('/v1/tasks/search', requestHeaders);
|
|
73
|
-
await (0, apiHelpers_1.assertResponseStatus)(taskList, 200);
|
|
74
|
-
});
|
|
75
|
-
(0, c8Run_8_9_1.test)('Get a task via ID', async ({ request }) => {
|
|
76
|
-
const searchTasks = await request.post(`/v1/tasks/search`, requestHeaders);
|
|
77
|
-
const taskID = await searchTasks.json();
|
|
78
|
-
const response = await request.get('/v1/tasks/' + taskID[0].id, requestHeaders);
|
|
35
|
+
(0, c8Run_8_9_1.test)('Get a process definition via key @tasklistV2', async ({ request }) => {
|
|
36
|
+
await (0, test_1.expect)(async () => {
|
|
37
|
+
const searchProcessDefinitions = await request.post(`/v1/process-definitions/search`, requestHeaders);
|
|
38
|
+
const processKey = await searchProcessDefinitions.json();
|
|
39
|
+
(0, test_1.expect)(processKey.items.length).toBeGreaterThan(0);
|
|
40
|
+
const response = await request.get(`/v1/process-definitions/` + processKey.items[0].key, requestHeaders);
|
|
79
41
|
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
80
|
-
});
|
|
42
|
+
}).toPass(constants_1.defaultAssertionOptions);
|
|
43
|
+
});
|
|
44
|
+
(0, c8Run_8_9_1.test)('Search for process instances @tasklistV2', async ({ request }) => {
|
|
45
|
+
const processInstancesList = await request.post('/v1/process-instances/search', requestHeaders);
|
|
46
|
+
await (0, apiHelpers_1.assertResponseStatus)(processInstancesList, 200);
|
|
47
|
+
});
|
|
48
|
+
(0, c8Run_8_9_1.test)('Search for flownode-instances @tasklistV2', async ({ request }) => {
|
|
49
|
+
const flowNodeInstancesList = await request.post('/v1/flownode-instances/search', requestHeaders);
|
|
50
|
+
await (0, apiHelpers_1.assertResponseStatus)(flowNodeInstancesList, 200);
|
|
51
|
+
});
|
|
52
|
+
(0, c8Run_8_9_1.test)('Search for variables for process instances @tasklistV2', async ({ request, }) => {
|
|
53
|
+
const variablesInstancesList = await request.post('/v1/variables/search', requestHeaders);
|
|
54
|
+
await (0, apiHelpers_1.assertResponseStatus)(variablesInstancesList, 200);
|
|
55
|
+
});
|
|
56
|
+
(0, c8Run_8_9_1.test)('Search for incidents @tasklistV2', async ({ request }) => {
|
|
57
|
+
const incidentsList = await request.post('/v1/incidents/search', requestHeaders);
|
|
58
|
+
await (0, apiHelpers_1.assertResponseStatus)(incidentsList, 200);
|
|
59
|
+
});
|
|
60
|
+
(0, c8Run_8_9_1.test)('Get connectors status @tasklistV2', async ({ request }) => {
|
|
61
|
+
await (0, sleep_1.sleep)(10000);
|
|
62
|
+
const connectorsStatus = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/actuator/health', requestHeaders);
|
|
63
|
+
await (0, apiHelpers_1.assertResponseStatus)(connectorsStatus, 200);
|
|
64
|
+
});
|
|
65
|
+
(0, c8Run_8_9_1.test)('Get a inbound connectors list @tasklistV2', async ({ request }) => {
|
|
66
|
+
const connectorsInboundList = await request.get(process.env.C8RUN_CONNECTORS_API_URL_LATEST + '/inbound', requestHeaders);
|
|
67
|
+
await (0, apiHelpers_1.assertResponseStatus)(connectorsInboundList, 200);
|
|
68
|
+
});
|
|
69
|
+
(0, c8Run_8_9_1.test)('Search for tasks', async ({ request }) => {
|
|
70
|
+
const taskList = await request.post('/v1/tasks/search', requestHeaders);
|
|
71
|
+
await (0, apiHelpers_1.assertResponseStatus)(taskList, 200);
|
|
72
|
+
});
|
|
73
|
+
(0, c8Run_8_9_1.test)('Get a task via ID', async ({ request }) => {
|
|
74
|
+
const searchTasks = await request.post(`/v1/tasks/search`, requestHeaders);
|
|
75
|
+
const taskID = await searchTasks.json();
|
|
76
|
+
const response = await request.get('/v1/tasks/' + taskID[0].id, requestHeaders);
|
|
77
|
+
await (0, apiHelpers_1.assertResponseStatus)(response, 200);
|
|
81
78
|
});
|
|
82
|
-
}
|
|
79
|
+
});
|
|
83
80
|
}
|