From 25b03d85153e368098ebe5bf066f0872449af729 Mon Sep 17 00:00:00 2001 From: Avan Thakkar Date: Wed, 3 Aug 2022 14:15:02 +0530 Subject: [PATCH] mgr/dashboard: add cephadm e2e tests for checking count for services instances Signed-off-by: Avan Thakkar --- .../cypress/integration/orchestrator/01-hosts.e2e-spec.ts | 5 ----- .../integration/orchestrator/workflow/08-hosts.e2e-spec.ts | 4 ++++ 2 files changed, 4 insertions(+), 5 deletions(-) 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 5441860bd35d..374ecdb0cb6e 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']); + }); }); -- 2.47.3