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-Tag: v16.2.11~383^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=1e2f5b27fc609baf059ec86095dc5c28e4835bee;p=ceph.git mgr/dashboard: add cephadm e2e tests for checking count for services instances 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 bfe181aff619..aca36ade1921 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 2b0429ed120b..54ce37d142a2 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 @@ -42,4 +42,8 @@ describe('Host Page', () => { hosts.add(hostnames[3]); hosts.checkExist(hostnames[3], true); }); + + it('should show the exact count of daemons', () => { + hosts.checkServiceInstancesExist(hostnames[0], ['mgr: 1', 'prometheus: 1']); + }); });