From: Pedro Gonzalez Gomez Date: Thu, 24 Aug 2023 14:48:37 +0000 (+0200) Subject: mgr/dashboard: remove unnecessary failing hosts e2e X-Git-Tag: v18.2.1~194^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=37e72afc13f26a3085cc66f3e967f5597864de01;p=ceph.git 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) --- 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); - }); }); });