-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathverifyPMMInventory_test.js
525 lines (449 loc) · 20.9 KB
/
verifyPMMInventory_test.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
const assert = require('assert');
const {
I, remoteInstancesPage, pmmInventoryPage, remoteInstancesHelper,
} = inject();
const externalExporterServiceName = 'external_service_new';
const haproxyServiceName = 'haproxy_remote';
const instances = new DataTable(['name']);
const qanFilters = new DataTable(['filterName']);
for (const [key, value] of Object.entries(remoteInstancesHelper.services)) {
if (value) {
switch (key) {
case 'postgresql':
// TODO: https://jira.percona.com/browse/PMM-9011
// qanFilters.add([remoteInstancesPage.potgresqlSettings.environment]);
break;
case 'mysql':
qanFilters.add([remoteInstancesPage.mysqlSettings.environment]);
break;
case 'postgresGC':
qanFilters.add([remoteInstancesPage.postgresGCSettings.environment]);
break;
case 'mongodb':
qanFilters.add([remoteInstancesPage.mongodbSettings.environment]);
break;
case 'proxysql':
break;
default:
}
instances.add([key]);
}
}
const azureServices = new DataTable(['name', 'instanceToMonitor']);
if (remoteInstancesHelper.getInstanceStatus('azure').azure_mysql.enabled) {
azureServices.add(['azure-MySQL', 'pmm2-qa-mysql']);
qanFilters.add([remoteInstancesPage.mysqlAzureInputs.environment]);
}
if (remoteInstancesHelper.getInstanceStatus('azure').azure_postgresql.enabled) {
azureServices.add(['azure-PostgreSQL', 'pmm2-qa-postgresql']);
qanFilters.add([remoteInstancesPage.postgresqlAzureInputs.environment]);
}
const aws_instances = new DataTable(['service_name', 'password', 'instance_id', 'cluster_name']);
aws_instances.add([
remoteInstancesHelper.remote_instance.aws.aurora.aurora2.address,
remoteInstancesHelper.remote_instance.aws.aurora.aurora2.password,
remoteInstancesHelper.remote_instance.aws.aurora.aurora2.instance_id,
remoteInstancesHelper.remote_instance.aws.aurora.aurora2.cluster_name,
]);
aws_instances.add([
remoteInstancesHelper.remote_instance.aws.aurora.aurora3.address,
remoteInstancesHelper.remote_instance.aws.aurora.aurora3.password,
remoteInstancesHelper.remote_instance.aws.aurora.aurora3.instance_id,
remoteInstancesHelper.remote_instance.aws.aurora.aurora3.cluster_name,
]);
Feature('Inventory page');
Before(async ({ I }) => {
await I.Authorize();
});
// Skipping temporarily because sorting is not yet implemented in new Inventory page (PMM 2.37.0)
Scenario.skip(
'PMM-T371 - Verify sorting in Inventory page(Services tab) @inventory @nightly',
async ({ I, pmmInventoryPage }) => {
I.amOnPage(pmmInventoryPage.url);
await pmmInventoryPage.checkSort(4);
},
);
Scenario.skip(
'PMM-T371 - Verify sorting in Inventory page(Nodes tab) @inventory @nightly',
async ({ I, pmmInventoryPage }) => {
I.amOnPage(pmmInventoryPage.url);
I.waitForVisible(pmmInventoryPage.fields.nodesLink, 20);
I.click(pmmInventoryPage.fields.nodesLink);
await pmmInventoryPage.checkSort(4);
},
);
Scenario(
'PMM-T339 - Verify MySQL service is removed on PMM Inventory page @inventory',
async ({ I, addInstanceAPI, pmmInventoryPage }) => {
const serviceType = 'MySQL';
const serviceName = 'ServiceToDelete';
await addInstanceAPI.apiAddInstance(serviceType, serviceName);
I.amOnPage(pmmInventoryPage.url);
const serviceId = pmmInventoryPage.getServicesId(serviceName);
pmmInventoryPage.selectService(serviceName);
I.click(pmmInventoryPage.fields.deleteButton);
I.click(pmmInventoryPage.fields.proceedButton);
pmmInventoryPage.serviceExists(serviceName, false);
pmmInventoryPage.selectService(serviceName);
pmmInventoryPage.deleteWithForceOpt();
pmmInventoryPage.serviceExists(serviceName, true);
I.click(pmmInventoryPage.fields.agentsLink);
await pmmInventoryPage.getCountOfAgents(serviceId);
I.click(pmmInventoryPage.fields.nodesLink);
pmmInventoryPage.checkNodeExists(serviceName);
},
);
Scenario(
'PMM-T340 - Verify node with agents, services can be removed on PMM Inventory page @inventory',
async ({ I, addInstanceAPI, pmmInventoryPage }) => {
const serviceType = 'MySQL';
const serviceName = 'NodeToDelete';
await addInstanceAPI.apiAddInstance(serviceType, serviceName);
I.amOnPage(pmmInventoryPage.url);
const serviceId = pmmInventoryPage.getServicesId(serviceName);
I.waitForVisible(pmmInventoryPage.fields.nodesLink, 30);
I.click(pmmInventoryPage.fields.nodesLink);
pmmInventoryPage.selectService(serviceName);
pmmInventoryPage.deleteWithForceOpt();
I.click(pmmInventoryPage.fields.pmmServicesSelector);
pmmInventoryPage.serviceExists(serviceName, true);
I.click(pmmInventoryPage.fields.agentsLink);
await pmmInventoryPage.getCountOfAgents(serviceId);
},
);
Scenario(
'PMM-T342 - Verify pmm-server node cannot be removed from PMM Inventory page @inventory',
async ({ I, pmmInventoryPage }) => {
const node = 'pmm-server';
I.amOnPage(pmmInventoryPage.url);
I.waitForVisible(pmmInventoryPage.fields.nodesLink, 30);
I.click(pmmInventoryPage.fields.nodesLink);
pmmInventoryPage.selectService(node);
pmmInventoryPage.deleteWithForceOpt();
pmmInventoryPage.checkNodeExists(node);
},
);
Scenario(
'PMM-T343 - Verify agent can be removed on PMM Inventory page @inventory',
async ({ I, pmmInventoryPage, addInstanceAPI }) => {
const agentType = 'MySQL exporter';
const serviceType = 'MySQL';
const serviceName = 'AgentToDelete';
await addInstanceAPI.apiAddInstance(serviceType, serviceName);
I.amOnPage(pmmInventoryPage.url);
I.waitForVisible(pmmInventoryPage.fields.nodesLink, 20);
I.click(pmmInventoryPage.fields.nodesLink);
const countOfNodesBefore = await pmmInventoryPage.getNodeCount();
I.waitForVisible(pmmInventoryPage.fields.agentsLink, 20);
I.click(pmmInventoryPage.fields.agentsLink);
const serviceId = await pmmInventoryPage.getAgentServiceID(agentType);
const agentId = await pmmInventoryPage.getAgentID(agentType);
pmmInventoryPage.selectAgent(agentType);
I.click(pmmInventoryPage.fields.deleteButton);
I.click(pmmInventoryPage.fields.proceedButton);
pmmInventoryPage.existsByid(agentId, true);
I.click(pmmInventoryPage.fields.nodesLink);
const countOfNodesAfter = await pmmInventoryPage.getNodeCount();
pmmInventoryPage.verifyNodesCount(countOfNodesBefore, countOfNodesAfter);
I.click(pmmInventoryPage.fields.pmmServicesSelector);
pmmInventoryPage.existsByid(serviceId, false);
},
);
Scenario.skip(
'PMM-T345 - Verify removing pmm-agent on PMM Inventory page removes all associated agents @inventory',
async ({ I, pmmInventoryPage }) => {
const agentID = 'pmm-server';
const agentType = 'PMM Agent';
I.amOnPage(pmmInventoryPage.url);
I.waitForVisible(pmmInventoryPage.fields.agentsLink, 20);
I.click(pmmInventoryPage.fields.agentsLink);
const countBefore = await pmmInventoryPage.getCountOfItems();
pmmInventoryPage.selectAgentByID(agentID);
pmmInventoryPage.deleteWithForceOpt();
pmmInventoryPage.existsByid(agentID, false);
pmmInventoryPage.selectAgent(agentType);
const agentIDToDelete = await pmmInventoryPage.getAgentID(agentType);
pmmInventoryPage.deleteWithForceOpt();
pmmInventoryPage.existsByid(agentIDToDelete, true);
await pmmInventoryPage.checkAllNotDeletedAgents(countBefore);
},
);
Scenario(
'PMM-T554 - Check that all agents have status "RUNNING" @inventory @nightly',
async ({ I, pmmInventoryPage, inventoryAPI }) => {
await I.amOnPage(pmmInventoryPage.url);
await I.waitForVisible(pmmInventoryPage.fields.showRowDetails, 10);
await pmmInventoryPage.servicesTab.pagination.selectRowsPerPage(50);
const services = Object.values((await inventoryAPI.apiGetServices()).data).flat(Infinity)
.map((o) => (o.service_name));
for (const sn of services) {
await I.waitForVisible(pmmInventoryPage.fields.showServiceDetails(sn), 10);
await I.click(pmmInventoryPage.fields.showServiceDetails(sn));
await I.waitForText('running', pmmInventoryPage.fields.agentStatus);
await I.waitForVisible(pmmInventoryPage.fields.hideServiceDetails(sn), 10);
await I.click(pmmInventoryPage.fields.hideServiceDetails(sn));
}
},
);
Scenario(
'PMM-T1226 - Verify Agents has process_exec_path option on Inventory page @inventory @nightly @exporters',
async ({ I, pmmInventoryPage, inventoryAPI }) => {
I.amOnPage(pmmInventoryPage.url);
const { service_id } = await inventoryAPI.apiGetNodeInfoByServiceName('POSTGRESQL_SERVICE', 'pmm-server-postgresql');
await pmmInventoryPage.openAgents(service_id);
await pmmInventoryPage.checkAgentOtherDetailsSection('Postgres exporter', 'process_exec_path=/usr/local/percona/pmm2/exporters/postgres_exporter');
const actAg = await inventoryAPI.apiGetAgents();
const arr = [];
for (const key of Object.keys(actAg.data)) {
if (key.endsWith('exporter') && key !== 'external_exporter') {
// eslint-disable-next-line no-return-assign
actAg.data[key].map((o) => o.type = key);
arr.push(...actAg.data[key]);
}
}
assert.ok(arr.length, 'no exporter agents found');
for (const key of arr) {
await I.say(JSON.stringify(key, null, 2));
assert.ok(key.process_exec_path, `process_exec_path value is empty for ${key.type}`);
}
},
);
Scenario(
'PMM-T1225 - Verify summary file includes process_exec_path for agents @inventory @exporters @cli',
async ({ I, pmmInventoryPage }) => {
I.amOnPage(pmmInventoryPage.url);
const response = await I.verifyCommand('pmm-admin summary');
const statusFile = JSON.parse(await I.readFileInZipArchive(response.split(' ')[0], 'client/status.json'));
const exporters = statusFile.agents_info.filter((agent) => !agent.agent_type.toLowerCase().includes('qan'));
I.amOnPage(pmmInventoryPage.url);
exporters.forEach((agent) => {
if (agent.process_exec_path) {
I.say(`process_exec_path for agent ${agent.agent_type} is ${agent.process_exec_path}`);
assert.ok(agent.process_exec_path.length, `Process exec path for ${agent.agent_type} is empty`);
} else {
assert.fail(`Process exec path is not present for ${agent.agent_type}`);
}
});
},
);
Data(instances).Scenario(
'PMM-T2340 - Verify Remote Instances can be created and edited [critical] @inventory @inventory-fb',
async ({
I, pmmInventoryPage, current,
}) => {
const serviceName = remoteInstancesHelper.services[current.name];
I.amOnPage(remoteInstancesPage.url);
remoteInstancesPage.waitUntilRemoteInstancesPageLoaded();
remoteInstancesPage.openAddRemotePage(current.name);
const inputs = await remoteInstancesPage.fillRemoteFields(serviceName);
remoteInstancesPage.createRemoteInstance(serviceName);
pmmInventoryPage.verifyRemoteServiceIsDisplayed(serviceName);
const newLabels = {
environment: `${inputs.environment} edited` || `${serviceName} environment edited`,
cluster: `${inputs.cluster} edited` || `${serviceName} cluster edited`,
replicationSet: `${inputs.replicationSet} edited` || `${serviceName} replicationSet edited`,
};
pmmInventoryPage.openEditServiceWizard(serviceName);
pmmInventoryPage.updateServiceLabels(newLabels);
I.click(pmmInventoryPage.fields.showServiceDetails(serviceName));
pmmInventoryPage.verifyServiceLabels(newLabels);
},
);
Scenario(
'PMM-T2340 - Verify adding and editing external exporter service via UI @inventory @inventory-fb',
async ({ I, remoteInstancesPage, pmmInventoryPage }) => {
I.amOnPage(remoteInstancesPage.url);
remoteInstancesPage.waitUntilRemoteInstancesPageLoaded();
remoteInstancesPage.openAddRemotePage('external');
const inputs = await remoteInstancesPage.fillRemoteFields(externalExporterServiceName);
I.waitForVisible(remoteInstancesPage.fields.addService, 30);
I.click(remoteInstancesPage.fields.addService);
pmmInventoryPage.verifyRemoteServiceIsDisplayed(externalExporterServiceName);
const newLabels = {
environment: `${inputs.environment} edited` || `${externalExporterServiceName} environment edited`,
cluster: `${inputs.cluster} edited` || `${externalExporterServiceName} cluster edited`,
replicationSet: `${inputs.replicationSet} edited` || `${externalExporterServiceName} replicationSet edited`,
};
pmmInventoryPage.openEditServiceWizard(externalExporterServiceName);
pmmInventoryPage.updateServiceLabels(newLabels);
I.click(pmmInventoryPage.fields.showServiceDetails(externalExporterServiceName));
pmmInventoryPage.verifyServiceLabels(newLabels);
},
).retry(0);
Scenario(
'PMM-T2340 - Verify adding and editing RDS instances [critical] @inventory @inventory-fb',
async ({ I, remoteInstancesPage, pmmInventoryPage }) => {
const serviceName = remoteInstancesPage.mysql57rds['Service Name'];
I.amOnPage(remoteInstancesPage.url);
remoteInstancesPage.waitUntilRemoteInstancesPageLoaded().openAddAWSRDSMySQLPage();
remoteInstancesPage.discoverRDS();
remoteInstancesPage.verifyInstanceIsDiscovered(serviceName);
remoteInstancesPage.startMonitoringOfInstance(serviceName);
remoteInstancesPage.verifyAddInstancePageOpened();
const inputs = await remoteInstancesPage.fillRemoteRDSFields(serviceName);
remoteInstancesPage.createRemoteInstance(serviceName);
pmmInventoryPage.verifyRemoteServiceIsDisplayed(serviceName);
const newLabels = {
environment: `${inputs.environment} edited` || `${serviceName} environment edited`,
cluster: `${inputs.cluster} edited` || `${serviceName} cluster edited`,
replicationSet: `${inputs.replicationSet} edited` || `${serviceName} replicationSet edited`,
};
pmmInventoryPage.openEditServiceWizard(serviceName);
pmmInventoryPage.updateServiceLabels(newLabels);
I.click(pmmInventoryPage.fields.showServiceDetails(serviceName));
pmmInventoryPage.verifyServiceLabels(newLabels);
},
);
Scenario(
'@PMM-T2340 - Verify Adding and Editing HAProxy service via UI @inventory @inventory-fb',
async ({
I, remoteInstancesPage, pmmInventoryPage,
}) => {
I.amOnPage(remoteInstancesPage.url);
remoteInstancesPage.waitUntilRemoteInstancesPageLoaded();
remoteInstancesPage.openAddRemotePage('haproxy');
I.waitForVisible(remoteInstancesPage.fields.hostName, 30);
I.fillField(
remoteInstancesPage.fields.hostName,
remoteInstancesHelper.remote_instance.haproxy.haproxy_2.host,
);
I.fillField(remoteInstancesPage.fields.serviceName, haproxyServiceName);
I.clearField(remoteInstancesPage.fields.portNumber);
I.fillField(
remoteInstancesPage.fields.portNumber,
remoteInstancesHelper.remote_instance.haproxy.haproxy_2.port,
);
I.scrollPageToBottom();
I.waitForVisible(remoteInstancesPage.fields.addService, 30);
I.click(remoteInstancesPage.fields.addService);
pmmInventoryPage.verifyRemoteServiceIsDisplayed(haproxyServiceName);
const newLabels = {
environment: `${remoteInstancesHelper.remote_instance.haproxy.environment} edited` || `${haproxyServiceName} environment edited`,
cluster: `${remoteInstancesHelper.remote_instance.haproxy.clusterName} edited` || `${haproxyServiceName} cluster edited`,
replicationSet: `${remoteInstancesHelper.remote_instance.haproxy.replicationSet} edited` || `${haproxyServiceName} replicationSet edited`,
};
pmmInventoryPage.openEditServiceWizard(haproxyServiceName);
pmmInventoryPage.updateServiceLabels(newLabels);
I.click(pmmInventoryPage.fields.showServiceDetails(haproxyServiceName));
pmmInventoryPage.verifyServiceLabels(newLabels);
},
);
Scenario(
'PMM-T2340 - Verify adding and editing PostgreSQL RDS monitoring to PMM via UI @inventory @inventory-fb',
async ({
I, remoteInstancesPage, pmmInventoryPage,
}) => {
const serviceName = 'pmm-qa-pgsql-12';
I.amOnPage(remoteInstancesPage.url);
remoteInstancesPage.waitUntilRemoteInstancesPageLoaded().openAddAWSRDSMySQLPage();
remoteInstancesPage.discoverRDS();
remoteInstancesPage.verifyInstanceIsDiscovered(serviceName);
remoteInstancesPage.startMonitoringOfInstance(serviceName);
remoteInstancesPage.verifyAddInstancePageOpened();
const grabbedHostname = await I.grabValueFrom(remoteInstancesPage.fields.hostName);
assert.ok(grabbedHostname.startsWith(serviceName), `Hostname is incorrect: ${grabbedHostname}`);
I.seeInField(remoteInstancesPage.fields.serviceName, serviceName);
const inputs = await remoteInstancesPage.fillRemoteRDSFields(serviceName);
remoteInstancesPage.createRemoteInstance(serviceName);
pmmInventoryPage.verifyRemoteServiceIsDisplayed(serviceName);
const newLabels = {
environment: `${inputs.environment} edited` || `${serviceName} environment edited`,
cluster: `${inputs.cluster} edited` || `${serviceName} cluster edited`,
replicationSet: `${inputs.replicationSet} edited` || `${serviceName} replicationSet edited`,
};
pmmInventoryPage.openEditServiceWizard(serviceName);
pmmInventoryPage.updateServiceLabels(newLabels);
I.click(pmmInventoryPage.fields.showServiceDetails(serviceName));
pmmInventoryPage.verifyServiceLabels(newLabels);
},
);
Data(azureServices).Scenario(
'PMM-T2340 - Verify adding and editing monitoring for Azure @inventory @inventory-fb',
async ({
I, remoteInstancesPage, pmmInventoryPage, settingsAPI, current,
}) => {
const serviceName = current.name;
await settingsAPI.enableAzure();
I.amOnPage(remoteInstancesPage.url);
remoteInstancesPage.openAddAzure();
remoteInstancesPage.discoverAzure();
remoteInstancesPage.startMonitoringOfInstance(current.instanceToMonitor);
remoteInstancesPage.verifyAddInstancePageOpened();
const inputs = await remoteInstancesPage.fillRemoteRDSFields(serviceName);
I.click(remoteInstancesPage.fields.addService);
pmmInventoryPage.verifyRemoteServiceIsDisplayed(serviceName);
const newLabels = {
environment: `${inputs.environment} edited` || `${serviceName} environment edited`,
cluster: `${inputs.cluster} edited` || `${serviceName} cluster edited`,
replicationSet: `${inputs.replicationSet} edited` || `${serviceName} replicationSet edited`,
};
pmmInventoryPage.openEditServiceWizard(serviceName);
pmmInventoryPage.updateServiceLabels(newLabels);
I.click(pmmInventoryPage.fields.showServiceDetails(serviceName));
pmmInventoryPage.verifyServiceLabels(newLabels);
},
);
Data(aws_instances).Scenario('PMM-T2340 Verify adding and editing Aurora remote instance @inventory @inventory-fb', async ({
I, addInstanceAPI, current,
}) => {
const {
service_name, password, instance_id, cluster_name,
} = current;
const details = {
add_node: {
node_name: service_name,
node_type: 'REMOTE_NODE',
},
aws_access_key: remoteInstancesHelper.remote_instance.aws.aurora.aws_access_key,
aws_secret_key: remoteInstancesHelper.remote_instance.aws.aurora.aws_secret_key,
address: service_name,
service_name: instance_id,
port: remoteInstancesHelper.remote_instance.aws.aurora.port,
username: remoteInstancesHelper.remote_instance.aws.aurora.username,
password,
instance_id,
cluster: cluster_name,
};
await addInstanceAPI.addRDS(details.service_name, details);
I.amOnPage(pmmInventoryPage.url);
pmmInventoryPage.verifyRemoteServiceIsDisplayed(details.service_name);
const newLabels = {
environment: `${details.environment} edited` || `${details.service_name} environment edited`,
cluster: `${details.cluster} edited` || `${details.service_name} cluster edited`,
replicationSet: `${details.replicationSet} edited` || `${details.service_name} replicationSet edited`,
};
pmmInventoryPage.openEditServiceWizard(details.service_name);
pmmInventoryPage.updateServiceLabels(newLabels);
I.click(pmmInventoryPage.fields.showServiceDetails(details.service_name));
pmmInventoryPage.verifyServiceLabels(newLabels);
});
Data(qanFilters).Scenario(
'PMM-T2340 - Verify QAN after remote instance is added @inventory @inventory-fb',
async ({
I, qanOverview, qanFilters, qanPage, current,
}) => {
I.amOnPage(qanPage.url);
qanOverview.waitForOverviewLoaded();
await qanFilters.applyFilter(current.filterName);
qanOverview.waitForOverviewLoaded();
const count = await qanOverview.getCountOfItems();
assert.ok(count > 0, `The queries for filter ${current.filterName} instance do NOT exist`);
},
).retry(2);
Data(aws_instances).Scenario(
'PMM-T2340 Verify QAN after Aurora instance is added and eidted @inventory @inventory-fb',
async ({
I, qanOverview, qanFilters, qanPage, current, adminPage,
}) => {
const { instance_id } = current;
I.amOnPage(qanPage.url);
qanOverview.waitForOverviewLoaded();
await adminPage.applyTimeRange('Last 12 hours');
qanOverview.waitForOverviewLoaded();
qanFilters.waitForFiltersToLoad();
await qanFilters.applySpecificFilter(instance_id);
qanOverview.waitForOverviewLoaded();
const count = await qanOverview.getCountOfItems();
assert.ok(count > 0, `The queries for service ${instance_id} instance do NOT exist, check QAN Data`);
},
).retry(1);