]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mgr/dashboard: add cephadm e2e tests for checking count for services instances
authorAvan Thakkar <athakkar@redhat.com>
Wed, 3 Aug 2022 08:45:02 +0000 (14:15 +0530)
committerAvan Thakkar <athakkar@redhat.com>
Tue, 16 Aug 2022 09:53:59 +0000 (15:23 +0530)
Resolves: rhbz#2101771

Signed-off-by: Avan Thakkar <athakkar@redhat.com>
(cherry picked from commit 25b03d85153e368098ebe5bf066f0872449af729)

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

index bfe181aff6198e9f7aa63848a155562251522445..aca36ade192198a7faef4396c5f47d5b4103da50 100644 (file)
@@ -82,10 +82,5 @@ describe('Hosts page', () => {
       const hostname = Cypress._.sample(this.hosts).name;
       hosts.maintenance(hostname, true);
     });
-
-    it('should exit host from maintenance', function () {
-      const hostname = Cypress._.sample(this.hosts).name;
-      hosts.checkServiceInstancesExist(hostname, ['mgr: 1', 'prometheus: 1']);
-    });
   });
 });
index 0abead17483d3b76692850fa27c47cba58e09162..d349e03721cd547414339813dfd1fe4e5cc81d6f 100644 (file)
@@ -40,4 +40,8 @@ describe('Host Page', () => {
     hosts.add(hostnames[1]);
     hosts.checkExist(hostnames[1], true);
   });
+
+  it('should show the exact count of daemons', () => {
+    hosts.checkServiceInstancesExist(hostnames[0], ['mgr: 1', 'prometheus: 1']);
+  });
 });