]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: remove unnecessary failing hosts e2e 53458/head
authorPedro Gonzalez Gomez <pegonzal@redhat.com>
Thu, 24 Aug 2023 14:48:37 +0000 (16:48 +0200)
committerPedro Gonzalez Gomez <pegonzal@redhat.com>
Thu, 14 Sep 2023 12:06:50 +0000 (14:06 +0200)
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 <pegonzal@redhat.com>
(cherry picked from commit 397bb61d0b5fd745eb267c45a945c24f8adf3013)

src/pybind/mgr/dashboard/frontend/cypress/e2e/orchestrator/01-hosts.e2e-spec.ts

index 8ad2a1dafda06c419670aa141e8ad7bce28587f9..0afe0d74babce524458420d78e6b2023c5de2617 100644 (file)
@@ -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);
-    });
   });
 });