From 9aa9731f34a23057ca1a4e6e8bbfbfa12ee8c163 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 (cherry picked from commit 397bb61d0b5fd745eb267c45a945c24f8adf3013) --- .../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 8ad2a1dafda0..0afe0d74babc 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.47.3