diff options
author | svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com> | 2018-08-06 23:08:39 +0300 |
---|---|---|
committer | Einav Keidar <einavw@amdocs.com> | 2018-08-07 07:55:38 +0000 |
commit | 8f13330349a9a78b4cd2e32218237955f86fb4d8 (patch) | |
tree | fdf41c5cf34419c5d6e67bdabed877017e2c2656 /openecomp-ui/test | |
parent | a53629a4c022f8cbfca7d7ead1c13ae7d30042e9 (diff) |
ui user feedback 1810
Enhance LKG & EP to include MRN
Enhance EP & LKG UI to display Invariant UUID & UUID
Remove MRN from FG
Issue-ID: SDC-1524
Change-Id: Id6259f746ba4b4dcd5684d58d66f0df769107589
Signed-off-by: svishnev <shlomo-stanisla.vishnevetskiy@amdocs.com>
Diffstat (limited to 'openecomp-ui/test')
-rw-r--r-- | openecomp-ui/test/licenseModel/entitlementPools/test.js | 33 | ||||
-rw-r--r-- | openecomp-ui/test/licenseModel/licenseKeyGroups/test.js | 33 |
2 files changed, 66 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, { diff --git a/openecomp-ui/test/licenseModel/licenseKeyGroups/test.js b/openecomp-ui/test/licenseModel/licenseKeyGroups/test.js index 1326025e5d..ec091a411a 100644 --- a/openecomp-ui/test/licenseModel/licenseKeyGroups/test.js +++ b/openecomp-ui/test/licenseModel/licenseKeyGroups/test.js @@ -153,6 +153,17 @@ describe('License Key Groups 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 + }/license-key-groups` + ); + expect(data).toEqual(undefined); + expect(options).toEqual(undefined); + return { results: [] }; + }); + return LicenseKeyGroupsActionHelper.deleteLicenseKeyGroup( store.dispatch, { @@ -237,6 +248,17 @@ describe('License Key Groups 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 + }/license-key-groups` + ); + expect(data).toEqual(undefined); + expect(options).toEqual(undefined); + return { results: [LicenseKeyGroupStore] }; + }); + return LicenseKeyGroupsActionHelper.saveLicenseKeyGroup( store.dispatch, { @@ -338,6 +360,17 @@ describe('License Key Groups 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 + }/license-key-groups` + ); + expect(data).toEqual(undefined); + expect(options).toEqual(undefined); + return { results: [licenseKeyGroupUpdatedData] }; + }); + return LicenseKeyGroupsActionHelper.saveLicenseKeyGroup( store.dispatch, { |