From: Avan Thakkar Date: Wed, 3 Aug 2022 08:45:02 +0000 (+0530) Subject: mgr/dashboard: add cephadm e2e tests for checking count for services instances X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=ec1f163818fab0b1a8a98bfe1ec5c949373b0e6d;p=ceph.git mgr/dashboard: add cephadm e2e tests for checking count for services instances Resolves: rhbz#2101771 Signed-off-by: Avan Thakkar (cherry picked from commit 25b03d85153e368098ebe5bf066f0872449af729) --- diff --git a/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/01-hosts.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/01-hosts.e2e-spec.ts index bfe181aff6198..aca36ade19219 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/01-hosts.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/01-hosts.e2e-spec.ts @@ -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']); - }); }); }); diff --git a/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/08-hosts.e2e-spec.ts b/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/08-hosts.e2e-spec.ts index 0abead17483d3..d349e03721cd5 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/08-hosts.e2e-spec.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/integration/orchestrator/workflow/08-hosts.e2e-spec.ts @@ -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']); + }); });