X-Git-Url: https://gerrit.onap.org/r/gitweb?a=blobdiff_plain;f=ui-react%2Fsrc%2F__test__%2FLoopCache.test.js;h=101f864aaf62b85c16ac1bf9655a1dee48b15788;hb=4aedf73ee896f8bac3dce6d728cb40a9519b76d7;hp=e5b50259de495446336126df411d73e360a7672a;hpb=b0710ba41d0d0cc4f06a4dc27c5090867c26113e;p=clamp.git diff --git a/ui-react/src/__test__/LoopCache.test.js b/ui-react/src/__test__/LoopCache.test.js index e5b50259..101f864a 100644 --- a/ui-react/src/__test__/LoopCache.test.js +++ b/ui-react/src/__test__/LoopCache.test.js @@ -77,7 +77,7 @@ describe('Verify LoopCache functions', () => { expect(loopCache.getDcaeDeploymentProperties()).toStrictEqual(deploymentProp); }); - it('getMicroServicesJsonForType', () => { + it('getMicroServiceForName', () => { const msJson = { "name": "TCA_h2NMX_v1_0_ResourceInstanceName1_tca", "modelType": "onap.policies.monitoring.cdap.tca.hi.lo.app", @@ -89,7 +89,7 @@ describe('Verify LoopCache functions', () => { expect(loopCache.getMicroServicesJsonForType("TCA_h2NMX_v1_0_ResourceInstanceName1_tca_2")).toBeNull(); }); - it('getMicroServiceProperties', () => { + it('getMicroServicePropertiesForName', () => { const msProp = {"domain": "measurementsForVfScaling"}; expect(loopCache.getMicroServiceProperties("TCA_h2NMX_v1_0_ResourceInstanceName1_tca")).toStrictEqual(msProp); expect(loopCache.getMicroServiceProperties("TCA_h2NMX_v1_0_ResourceInstanceName1_tca_2")).toBeNull(); @@ -100,7 +100,7 @@ describe('Verify LoopCache functions', () => { expect(loopCache.getMicroServiceJsonRepresentationForType("TCA_h2NMX_v1_0_ResourceInstanceName1_tca")).toStrictEqual(msJsonRepresentation); }); - it('getMicroServiceJsonRepresentationForType', () => { + it('getMicroServiceJsonRepresentationForName', () => { const msJsonRepresentation = {"schema": {}}; expect(loopCache.getMicroServiceJsonRepresentationForType("TCA_h2NMX_v1_0_ResourceInstanceName1_tca")).toStrictEqual(msJsonRepresentation); });