diff options
author | Sébastien Determe <sebastien.determe@intl.att.com> | 2020-03-04 13:20:47 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@onap.org> | 2020-03-04 13:20:47 +0000 |
commit | f0e00e7c9ea8dd15a4aacdd880aa648539caf087 (patch) | |
tree | fd88ae4cee57fca2b47485dbb22a092c039f82f2 /ui-react/src/api/LoopCache.test.js | |
parent | f0a648cc89cb870a4053d47a06fe2a4a54cc3f1c (diff) | |
parent | 635445a5f262464c88287e5b5ceace4abf9cc4bc (diff) |
Merge "Update UI to define Pdp Group"
Diffstat (limited to 'ui-react/src/api/LoopCache.test.js')
-rw-r--r-- | ui-react/src/api/LoopCache.test.js | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/ui-react/src/api/LoopCache.test.js b/ui-react/src/api/LoopCache.test.js index 97c09fa36..fc7568148 100644 --- a/ui-react/src/api/LoopCache.test.js +++ b/ui-react/src/api/LoopCache.test.js @@ -206,18 +206,15 @@ describe('Verify LoopCache functions', () => { }); it('updateOperationalPolicyProperties', () => { - const newOpPolicy = [{ - "name": "OPERATIONAL_h2NMX_v1_0_ResourceInstanceName1_tca_new", - "configurationsJson": { + const newOpPolicy = { "guard_policies": {}, "operational_policy": { "controlLoop": {}, "policies": [] } - } - }]; - loopCache.updateOperationalPolicyProperties(newOpPolicy); - expect(loopCache.getOperationalPolicies()).toStrictEqual(newOpPolicy); + }; + loopCache.updateOperationalPolicyProperties("OPERATIONAL_h2NMX_v1_0_ResourceInstanceName1_tca",newOpPolicy); + expect(loopCache.getOperationalPolicyPropertiesForName("OPERATIONAL_h2NMX_v1_0_ResourceInstanceName1_tca")).toStrictEqual(newOpPolicy); }); it('updateMicroServiceProperties', () => { |