Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import { testBVTMonitoringTestsNamespace } from '../../support/monitoring/00.bvt
import { commonPages } from '../../views/common';
import { CLUSTER_MONITORING_OPERATOR } from '../../support/operators';

describe('BVT: Monitoring - Namespaced', { tags: ['@alerting'] }, () => {
describe('BVT: Monitoring - Namespaced', { tags: ['@alerting', '@metrics'] }, () => {
before(() => {
cy.beforeBlock(CLUSTER_MONITORING_OPERATOR);
cy.ensureMonitoringPlugin(CLUSTER_MONITORING_OPERATOR);
});

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,12 @@ describe(
before(() => {
cy.beforeBlockCOO(CLUSTER_OBSERVABILITY_OPERATOR, CLUSTER_MONITORING_OPERATOR);
cy.log('Installation: COO and setting up Monitoring Plugin');
});
},
);

describe(
'IVT: Monitoring UIPlugin + Virtualization',
{ tags: ['@alerting', '@coo', '@virtualization', '@slow'] },
() => {
before(() => {
cy.beforeBlockVirtualization(KUBEVIRT_HYPERCONVERGED_OPERATOR);
});

it('1. Virtualization perspective - Observe Menu', () => {
cy.log('Virtualization perspective - Observe Menu and verify all submenus');
cy.switchPerspective('Virtualization', 'Fleet virtualization');
guidedTour.closeKubevirtTour();
});
},
);

describe(
'Regression: Monitoring - Alerts (Virtualization)',
{ tags: ['@alerting', '@coo', '@virtualization', '@slow'] },
() => {
beforeEach(() => {
cy.visit('/');
cy.validateLogin();
Expand Down
57 changes: 57 additions & 0 deletions web/cypress/e2e/alerts/alerts_regression.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
import { CustomerPerspectiveName } from '@/shared/constants/perspective';
import {
testAlertsCorePlatformHeaderRegression,
testAlertsRegression,
} from '../../support/monitoring/01.reg_alerts.cy';
import { alerts } from '../../fixtures/monitoring/alert';
import { testAlertsRegressionNamespace } from '../../support/monitoring/04.reg_alerts_namespace.cy';
import { commonPages } from '../../views/common';
import { nav } from '../../views/nav';
import { CLUSTER_MONITORING_OPERATOR } from '../../support/operators';

// Test suite for Core platform perspective
describe(
'Regression: Monitoring - Alerts (Core platform)',
{ tags: ['@alerting', '@metrics'] },
() => {
before(() => {
cy.ensureMonitoringPlugin(CLUSTER_MONITORING_OPERATOR);
cy.switchPerspective('Core platform');
});

beforeEach(() => {
alerts.interceptWatchdogAlert();
nav.sidenav.clickNavLink(['Observe', 'Metrics']);
commonPages.titleShouldHaveText('Metrics');
cy.changeNamespace('All Projects');
nav.sidenav.clickNavLink(['Observe', 'Alerting']);
commonPages.titleShouldHaveText('Alerting');
alerts.interceptWatchdogAlert();
});

// Run tests in Core platform perspective
testAlertsCorePlatformHeaderRegression(CustomerPerspectiveName.CorePlatform);
testAlertsRegression(CustomerPerspectiveName.CorePlatform);
},
);

describe(
'Regression: Monitoring - Alerts Namespaced (Administrator)',
{ tags: ['@alerting'] },
() => {
before(() => {
cy.ensureMonitoringPlugin(CLUSTER_MONITORING_OPERATOR);
});

beforeEach(() => {
alerts.interceptWatchdogAlert();
nav.sidenav.clickNavLink(['Observe', 'Alerting']);
commonPages.titleShouldHaveText('Alerting');
alerts.interceptWatchdogAlert();
cy.changeNamespace(CLUSTER_MONITORING_OPERATOR.namespace);
});

// Run tests in Administrator perspective
testAlertsRegressionNamespace(CustomerPerspectiveName.CorePlatform);
},
);
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import { guidedTour } from '../../views/tour';
import { alerts } from '../../fixtures/monitoring/alert';
import { nav } from '../../views/nav';
import { commonPages } from '../../views/common';
import { troubleshootingPanelPage } from 'cypress/views/troubleshooting-panel';
import {
CLUSTER_MONITORING_OPERATOR,
CLUSTER_OBSERVABILITY_OPERATOR,
Expand All @@ -16,36 +17,19 @@ describe(
() => {
before(() => {
cy.beforeBlockCOO(CLUSTER_OBSERVABILITY_OPERATOR, CLUSTER_MONITORING_OPERATOR);
});

it('1. Installation: COO and setting up Monitoring Plugin', () => {
cy.log('Installation: COO and setting up Monitoring Plugin');
cy.beforeBlockVirtualization(KUBEVIRT_HYPERCONVERGED_OPERATOR);
cy.log('Virtualization perspective - Observe Menu and verify all submenus');
cy.switchPerspective('Virtualization', 'Fleet virtualization');
guidedTour.closeKubevirtTour();
});
},
);

describe('Installation: Virtualization', { tags: ['@coo', '@virtualization', '@slow'] }, () => {
before(() => {
cy.beforeBlockVirtualization(KUBEVIRT_HYPERCONVERGED_OPERATOR);
});

it('1. Virtualization perspective - Observe Menu', () => {
cy.log('Virtualization perspective - Observe Menu and verify all submenus');
cy.switchPerspective('Virtualization', 'Fleet virtualization');
guidedTour.closeKubevirtTour();
});
});

describe(
'IVT: Monitoring + Virtualization',
{ tags: ['@alerting', '@metrics', '@coo', '@virtualization'] },
() => {
beforeEach(() => {
cy.visit('/');
guidedTour.close();
cy.validateLogin();
cy.switchPerspective('Virtualization', 'Fleet virtualization');
guidedTour.closeKubevirtTour();
troubleshootingPanelPage.signalCorrelationShouldNotBeVisible();
nav.sidenav.clickNavLink(['Observe', 'Metrics']);
commonPages.titleShouldHaveText('Metrics');
cy.changeNamespace('All Projects');
Expand Down
33 changes: 0 additions & 33 deletions web/cypress/e2e/coo/01.coo_bvt.cy.ts

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Performance walkthrough: measures rendering cost of interactive operations
(filter toggling, time range switching, table row expansion) under load.

Unlike 01.performance_benchmark which measures initial chart render time,
Unlike performance_benchmark which measures initial chart render time,
this test measures incremental re-render cost during a realistic user session.

Verifies: OBSINTA-1006
Expand Down
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import { CustomerPerspectiveName } from '@/shared/constants/perspective';
import { CLUSTER_MONITORING_OPERATOR } from '../../../support/operators';
import { testLegacyDashboardsRegression } from '../../../support/monitoring/03.reg_legacy_dashboards.cy';
import { testLegacyDashboardsRegressionNamespace } from '../../../support/monitoring/06.reg_legacy_dashboards_namespace.cy';
import { commonPages } from '../../../views/common';
import { nav } from '../../../views/nav';
import { CLUSTER_MONITORING_OPERATOR } from '../../support/operators';
import { testLegacyDashboardsRegression } from '../../support/monitoring/03.reg_legacy_dashboards.cy';
import { testLegacyDashboardsRegressionNamespace } from '../../support/monitoring/06.reg_legacy_dashboards_namespace.cy';
import { commonPages } from '../../views/common';
import { nav } from '../../views/nav';

// Test suite for Administrator perspective
describe(
'Regression: Monitoring - Legacy Dashboards (Administrator)',
{ tags: ['@legacy-dashboards'] },
() => {
before(() => {
cy.beforeBlock(CLUSTER_MONITORING_OPERATOR);
cy.ensureMonitoringPlugin(CLUSTER_MONITORING_OPERATOR);
});

beforeEach(() => {
Expand All @@ -34,10 +34,10 @@ describe(
// Test suite for Administrator perspective
describe(
'Regression: Monitoring - Legacy Dashboards Namespaced (Administrator)',
{ tags: ['@legacy-dashboards'] },
{ tags: ['@legacy-dashboards', '@metrics'] },
() => {
before(() => {
cy.beforeBlock(CLUSTER_MONITORING_OPERATOR);
cy.ensureMonitoringPlugin(CLUSTER_MONITORING_OPERATOR);
});

beforeEach(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,11 @@ describe(
before(() => {
cy.beforeBlockCOO(CLUSTER_OBSERVABILITY_OPERATOR, CLUSTER_MONITORING_OPERATOR);
cy.log('Installation: COO and setting up Monitoring Plugin');
});
},
);

describe(
'IVT: Monitoring UIPlugin + Virtualization',
{ tags: ['@coo', '@virtualization', '@slow'] },
() => {
before(() => {
cy.beforeBlockVirtualization(KUBEVIRT_HYPERCONVERGED_OPERATOR);
});

it('1. Virtualization perspective - Observe Menu', () => {
cy.log('Virtualization perspective - Observe Menu and verify all submenus');
cy.switchPerspective('Virtualization', 'Fleet virtualization');
guidedTour.closeKubevirtTour();
});
},
);

describe(
'Regression: Monitoring - Legacy Dashboards (Virtualization)',
{ tags: ['@legacy-dashboards', '@coo', '@virtualization', '@slow'] },
() => {
beforeEach(() => {
cy.visit('/');
cy.validateLogin();
Expand Down
80 changes: 80 additions & 0 deletions web/cypress/e2e/metrics/metrics_regression.cy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
import { CustomerPerspectiveName } from '@/shared/constants/perspective';
import { testMetricsRegression2 } from '../../support/monitoring/02.reg_metrics_2.cy';
import { testMetricsRegression1 } from '../../support/monitoring/02.reg_metrics_1.cy';
import { testMetricsRegressionNamespace1 } from '../../support/monitoring/05.reg_metrics_namespace_1.cy';
import { commonPages } from '../../views/common';
import { nav } from '../../views/nav';
import { testMetricsRegressionNamespace2 } from '../../support/monitoring/05.reg_metrics_namespace_2.cy';
import { CLUSTER_MONITORING_OPERATOR } from '../../support/operators';

// Test suite for Administrator perspective
describe('Regression: Monitoring - Metrics (Administrator)', { tags: ['@metrics'] }, () => {
before(() => {
cy.ensureMonitoringPlugin(CLUSTER_MONITORING_OPERATOR);
});

beforeEach(() => {
nav.sidenav.clickNavLink(['Observe', 'Metrics']);
commonPages.titleShouldHaveText('Metrics');
cy.changeNamespace('All Projects');
});

// Run tests in Administrator perspective
testMetricsRegression1(CustomerPerspectiveName.CorePlatform);
});

// Test suite for Administrator perspective
describe(
'Regression: Monitoring - Metrics Namespaced (Administrator)',
{ tags: ['@metrics'] },
() => {
before(() => {
cy.ensureMonitoringPlugin(CLUSTER_MONITORING_OPERATOR);
});

beforeEach(() => {
nav.sidenav.clickNavLink(['Observe', 'Metrics']);
commonPages.titleShouldHaveText('Metrics');
cy.changeNamespace(CLUSTER_MONITORING_OPERATOR.namespace);
});

// Run tests in Administrator perspective
testMetricsRegressionNamespace1(CustomerPerspectiveName.CorePlatform);
},
);

// Test suite for Administrator perspective
describe('Regression: Monitoring - Metrics (Administrator)', { tags: ['@metrics'] }, () => {
before(() => {
cy.ensureMonitoringPlugin(CLUSTER_MONITORING_OPERATOR);
});

beforeEach(() => {
nav.sidenav.clickNavLink(['Observe', 'Metrics']);
commonPages.titleShouldHaveText('Metrics');
cy.changeNamespace('All Projects');
});

// Run tests in Administrator perspective
testMetricsRegression2(CustomerPerspectiveName.CorePlatform);
});

// Test suite for Administrator perspective
describe(
'Regression: Monitoring - Metrics Namespaced (Administrator)',
{ tags: ['@metrics'] },
() => {
before(() => {
cy.ensureMonitoringPlugin(CLUSTER_MONITORING_OPERATOR);
});

beforeEach(() => {
nav.sidenav.clickNavLink(['Observe', 'Metrics']);
commonPages.titleShouldHaveText('Metrics');
cy.changeNamespace(CLUSTER_MONITORING_OPERATOR.namespace);
});

// Run tests in Administrator perspective
testMetricsRegressionNamespace2(CustomerPerspectiveName.CorePlatform);
},
);
Loading