From: Avan Thakkar Date: Tue, 4 May 2021 22:01:10 +0000 (+0530) Subject: mgr/dashboard: ingress service creation follow-up X-Git-Tag: v16.2.5~109^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=17f4238086504ba935340d98ace0eb24c226a4d4;p=ceph.git 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. (cherry picked from commit 549daa7579c7f3e317e2f7de31010fa2d577416d) --- 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 18b17c2f23ea..92bb1c392a73 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 a0df3a5d4b0a..aed6da3f964d 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 @@