From 549daa7579c7f3e317e2f7de31010fa2d577416d Mon Sep 17 00:00:00 2001 From: Avan Thakkar Date: Wed, 5 May 2021 03:31:10 +0530 Subject: [PATCH] mgr/dashboard: ingress service creation follow-up Fixes: https://tracker.ceph.com/issues/50568 Signed-off-by: Avan Thakkar Pre-populating the service id(read-only) with the value same as backend service. --- .../frontend/cypress/integration/cluster/services.po.ts | 2 +- .../services/service-form/service-form.component.html | 3 ++- .../services/service-form/service-form.component.spec.ts | 7 ++++++- .../services/service-form/service-form.component.ts | 8 ++++++++ 4 files changed, 17 insertions(+), 3 deletions(-) diff --git a/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/services.po.ts b/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/services.po.ts index 18b17c2f23ea4..92bb1c392a736 100644 --- a/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/services.po.ts +++ b/src/pybind/mgr/dashboard/frontend/cypress/integration/cluster/services.po.ts @@ -35,7 +35,7 @@ export class ServicesPageHelper extends PageHelper { cy.get('#count').type('1'); } else if (serviceType === 'ingress') { this.selectOption('backend_service', 'rgw.rgw.foo'); - cy.get('#service_id').type('rgw.rgw.foo'); + cy.get('#service_id').should('have.value', 'rgw.rgw.foo'); cy.get('#virtual_ip').type('192.168.20.1/24'); cy.get('#frontend_port').type('8081'); cy.get('#monitor_port').type('8082'); diff --git a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html index a0df3a5d4b0a7..aed6da3f964d4 100644 --- a/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html +++ b/src/pybind/mgr/dashboard/frontend/src/app/ceph/cluster/services/service-form/service-form.component.html @@ -41,7 +41,8 @@