diff options
author | xuegao <xg353y@intl.att.com> | 2019-12-13 11:50:24 +0100 |
---|---|---|
committer | xuegao <xg353y@intl.att.com> | 2019-12-16 13:00:03 +0100 |
commit | 9047defa7549ebd9a84cef3e10bbfd90f068097b (patch) | |
tree | 4cb5d0f32ca599d6a8ae7d3490f331af1e40383b /ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js | |
parent | 4d8c1ab21a3f5baf82a91a3cc9ab2af8823e6e34 (diff) |
Update deploymentParameters
Update deploymentParameters to allow a map of <msName, deploymentParams>
instead of a single deploymentParam
Issue-ID: CLAMP-569, CLAMP-570
Change-Id: I6abc4fe193157644bd6abe1c893a1416cadec988
Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js')
-rw-r--r-- | ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js b/ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js index 2ebb8c067..5f1dcd5fc 100644 --- a/ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js +++ b/ui-react/src/components/dialogs/Loop/DeployLoopModal.test.js @@ -32,8 +32,10 @@ describe('Verify DeployLoopModal', () => { "name": "LOOP_Jbv1z_v1_0_ResourceInstanceName1_tca", "globalPropertiesJson": { "dcaeDeployParameters": { - "location_id": "", - "policy_id": "TCA_h2NMX_v1_0_ResourceInstanceName1_tca" + "testMs": { + "location_id": "", + "policy_id": "TCA_h2NMX_v1_0_ResourceInstanceName1_tca" + } } } }); @@ -101,10 +103,9 @@ describe('Verify DeployLoopModal', () => { it('Onchange event', () => { const event = { target: { name: "location_id", value: "testLocation"} }; const component = shallow(<DeployLoopModal loopCache={loopCache}/>); - const forms = component.find('StateManager'); component.find('[name="location_id"]').simulate('change', event); component.update(); - expect(component.state('temporaryPropertiesJson').dcaeDeployParameters.location_id).toEqual("testLocation"); + expect(component.state('temporaryPropertiesJson').dcaeDeployParameters.testMs.location_id).toEqual("testLocation"); }); });
\ No newline at end of file |