diff options
author | 2020-02-17 06:03:31 -0800 | |
---|---|---|
committer | 2020-02-17 06:03:31 -0800 | |
commit | 3b7f669088d5867056578b275bf4314af3a439c6 (patch) | |
tree | f450bba727ee2d62c2527dfe3c13f9d6dd9d50bc /ui-react/src/components/dialogs/Tosca/__snapshots__ | |
parent | 3a83e2a2ff88ef49535973df8dc77dc8015170da (diff) |
Fix the loop template view
Fix the loop template view modal as the rest api has been changed + the database model as well
Issue-ID: CLAMP-589
Change-Id: I57521bc1c3afaf4ca5a2acf4c59823df06fd4cd9
Signed-off-by: sebdet <sebastien.determe@intl.att.com>
Diffstat (limited to 'ui-react/src/components/dialogs/Tosca/__snapshots__')
-rw-r--r-- | ui-react/src/components/dialogs/Tosca/__snapshots__/ViewLoopTemplatesModal.test.js.snap (renamed from ui-react/src/components/dialogs/Tosca/__snapshots__/ViewBlueprintMicroServiceTemplatesModal.test.js.snap) | 33 |
1 files changed, 16 insertions, 17 deletions
diff --git a/ui-react/src/components/dialogs/Tosca/__snapshots__/ViewBlueprintMicroServiceTemplatesModal.test.js.snap b/ui-react/src/components/dialogs/Tosca/__snapshots__/ViewLoopTemplatesModal.test.js.snap index 7dd4ee0d..efec96e9 100644 --- a/ui-react/src/components/dialogs/Tosca/__snapshots__/ViewBlueprintMicroServiceTemplatesModal.test.js.snap +++ b/ui-react/src/components/dialogs/Tosca/__snapshots__/ViewLoopTemplatesModal.test.js.snap @@ -1,6 +1,6 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`Verify ViewBlueprintMicroServiceTemplatesModal Test the tosca model view render method 1`] = ` +exports[`Verify ViewLoopTemplatesModal Test the tosca model view render method 1`] = ` <Styled(Bootstrap(Modal)) onHide={[Function]} show={true} @@ -30,7 +30,7 @@ exports[`Verify ViewBlueprintMicroServiceTemplatesModal Test the tosca model vie "cellStyle": Object { "border": "1px solid black", }, - "field": "templateName", + "field": "name", "headerStyle": Object { "backgroundColor": "#ddd", "border": "2px solid black", @@ -41,58 +41,57 @@ exports[`Verify ViewBlueprintMicroServiceTemplatesModal Test the tosca model vie "cellStyle": Object { "border": "1px solid black", }, - "field": "templatePolicy[0].policyModelId", + "field": "modelService.serviceDetails.name", "headerStyle": Object { "backgroundColor": "#ddd", "border": "2px solid black", }, - "title": "Policy Model", + "title": "Service Model Name", }, Object { "cellStyle": Object { "border": "1px solid black", }, - "field": "templateId", + "field": "allowedLoopType", "headerStyle": Object { "backgroundColor": "#ddd", "border": "2px solid black", }, - "title": "Template ID", + "title": "Loop Type Allowed", }, Object { "cellStyle": Object { "border": "1px solid black", }, - "field": "updatedBy", + "field": "maximumInstancesAllowed", "headerStyle": Object { "backgroundColor": "#ddd", "border": "2px solid black", }, - "title": "Uploaded By", + "title": "# Instances Allowed", }, Object { "cellStyle": Object { "border": "1px solid black", }, "editable": "never", - "field": "timestamp", + "field": "updatedDate", "headerStyle": Object { "backgroundColor": "#ddd", "border": "2px solid black", }, - "title": "Uploaded Date", + "title": "Modified Date", }, ] } data={ Object { - "content": "MTCA version 1", + "allowedLoopType": "CLOSED", "index": "1", - "templateId": "aaaa_bbbb_cccc", - "templateName": "MTCA", - "templatePolicy.policyModelId": "onap.policies.monitoring.docker.mtca.app", - "timestamp": "2019-09-06 19:09:42", - "updatedBy": "tester", + "maximumInstancesAllowed": 1, + "modelService.serviceDetails.name": "MTCA", + "name": "MTCA version 1", + "updatedDate": "2019-09-06 19:09:42", } } icons={ @@ -144,7 +143,7 @@ exports[`Verify ViewBlueprintMicroServiceTemplatesModal Test the tosca model vie <div> <styled.textarea onChange={[Function]} - value="Please select Blue print template to view the details" + value="Please select a loop template to display it" /> </div> </ModalBody> |