aboutsummaryrefslogtreecommitdiffstats
path: root/openecomp-ui/test/licenseModel/entitlementPools/test.js
diff options
context:
space:
mode:
Diffstat (limited to 'openecomp-ui/test/licenseModel/entitlementPools/test.js')
-rw-r--r--openecomp-ui/test/licenseModel/entitlementPools/test.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/openecomp-ui/test/licenseModel/entitlementPools/test.js b/openecomp-ui/test/licenseModel/entitlementPools/test.js
index 63eab1f7b9..6ea4e0924b 100644
--- a/openecomp-ui/test/licenseModel/entitlementPools/test.js
+++ b/openecomp-ui/test/licenseModel/entitlementPools/test.js
@@ -154,6 +154,17 @@ describe('Entitlement Pools Module Tests', function() {
};
});
+ mockRest.addHandler('fetch', ({ data, options, baseUrl }) => {
+ expect(baseUrl).toEqual(
+ `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${
+ version.id
+ }/entitlement-pools`
+ );
+ expect(data).toEqual(undefined);
+ expect(options).toEqual(undefined);
+ return { results: [] };
+ });
+
return EntitlementPoolsActionHelper.deleteEntitlementPool(
store.dispatch,
{
@@ -243,6 +254,17 @@ describe('Entitlement Pools Module Tests', function() {
};
});
+ mockRest.addHandler('fetch', ({ data, options, baseUrl }) => {
+ expect(baseUrl).toEqual(
+ `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${
+ version.id
+ }/entitlement-pools`
+ );
+ expect(data).toEqual(undefined);
+ expect(options).toEqual(undefined);
+ return { results: [entitlementPoolAfterAdd] };
+ });
+
return EntitlementPoolsActionHelper.saveEntitlementPool(
store.dispatch,
{
@@ -347,6 +369,17 @@ describe('Entitlement Pools Module Tests', function() {
};
});
+ mockRest.addHandler('fetch', ({ data, options, baseUrl }) => {
+ expect(baseUrl).toEqual(
+ `/onboarding-api/v1.0/vendor-license-models/${LICENSE_MODEL_ID}/versions/${
+ version.id
+ }/entitlement-pools`
+ );
+ expect(data).toEqual(undefined);
+ expect(options).toEqual(undefined);
+ return { results: [entitlementPoolUpdateData] };
+ });
+
return EntitlementPoolsActionHelper.saveEntitlementPool(
store.dispatch,
{