Skip to content

Commit

Permalink
PMM-7 Test for basic Sanity (#695)
Browse files Browse the repository at this point in the history
Co-authored-by: Puneet Kala <puneet@puneet.localhost>
  • Loading branch information
puneet0191 and Puneet Kala authored Sep 28, 2023
1 parent df2032a commit 1439103
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions tests/qa-integration/pmm_pdpgsql_integration_test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
const assert = require('assert');

Feature('PMM + PDPGSQL Integration Scenarios');

Before(async ({ I }) => {
await I.Authorize();
});

Scenario(
'PMM-T1262 - Verify Postgresql Dashboard Instance Summary has Data @not-ui-pipeline @pdpgsql-pmm-integration',
async ({
I, dashboardPage, adminPage,
}) => {
I.amOnPage(dashboardPage.postgresqlInstanceSummaryDashboard.url);
dashboardPage.waitForDashboardOpened();
await dashboardPage.applyFilter('Service Name', 'PDPGSQL_');
await dashboardPage.expandEachDashboardRow();
I.click(adminPage.fields.metricTitle);
adminPage.performPageDown(5);
adminPage.performPageUp(5);
dashboardPage.verifyMetricsExistence(dashboardPage.postgresqlInstanceSummaryDashboard.metrics);
await dashboardPage.verifyThereAreNoGraphsWithNA();
await dashboardPage.verifyThereAreNoGraphsWithoutData(1);
await I.verifyCommand('pmm-admin list | grep "postgresql_pgstatmonitor_agent" | grep "Running"');
await I.verifyCommand('pmm-admin list | grep "postgres_exporter" | grep "Running"');
},
);

0 comments on commit 1439103

Please sign in to comment.