summaryrefslogtreecommitdiffstats
path: root/ui-react/src/api/LoopCache.test.js
diff options
context:
space:
mode:
authorxuegao <xg353y@intl.att.com>2020-03-02 11:37:20 +0100
committerxuegao <xg353y@intl.att.com>2020-03-03 12:09:34 +0100
commit635445a5f262464c88287e5b5ceace4abf9cc4bc (patch)
tree81e772e47ed5deff4ab873e4ee148ac2aed6a373 /ui-react/src/api/LoopCache.test.js
parentae6a9829f0c572cb4789812ea65871132ec861fd (diff)
Update UI to define Pdp Group
Update teh UI, adding the possibilities to define Pdp Group and Pdp Subgroup info. Issue-ID: CLAMP-654 Change-Id: I3660c491d3a4c730a7414f9c6de9e3859f3c3601 Signed-off-by: xuegao <xg353y@intl.att.com>
Diffstat (limited to 'ui-react/src/api/LoopCache.test.js')
-rw-r--r--ui-react/src/api/LoopCache.test.js11
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', () => {