From 397bb61d0b5fd745eb267c45a945c24f8adf3013 Mon Sep 17 00:00:00 2001 From: Pedro Gonzalez Gomez Date: Thu, 24 Aug 2023 16:48:37 +0200 Subject: [PATCH] mgr/dashboard: remove unnecessary failing hosts e2e These host e2e test were failing, since we are already checking this on the Dashboard Cephadm e2e tests we can get rid of these ones. Fixes: https://tracker.ceph.com/issues/62491 Signed-off-by: Pedro Gonzalez Gomez --- .../e2e/orchestrator/01-hosts.e2e-spec.ts | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts index c7ac2c485d049..f5de01ee67cf8 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts @@ -57,29 +57,5 @@ describe('Hosts page', () => { hosts.editLabels(hostname, labels, true); hosts.editLabels(hostname, labels, false); }); - - it('should enter host into maintenance', function () { - const hostname = Cypress._.sample(this.hosts).name; - const serviceList = new Array(); - this.services.forEach((service: any) => { - if (hostname === service.hostname) { - serviceList.push(service.daemon_type); - } - }); - let enterMaintenance = true; - serviceList.forEach((service: string) => { - if (service === 'mgr' || service === 'alertmanager') { - enterMaintenance = false; - } - }); - if (enterMaintenance) { - hosts.maintenance(hostname); - } - }); - - it('should exit host from maintenance', function () { - const hostname = Cypress._.sample(this.hosts).name; - hosts.maintenance(hostname, true); - }); }); }); -- 2.39.5