From 750a1d8bc224a9e3c4daa010c3780e765605117c Mon Sep 17 00:00:00 2001 From: rgomez Date: Tue, 3 Dec 2024 13:16:14 +0100 Subject: [PATCH] portal/brand: test --- .../CarrierServer/CarrierServer.cy.js | 36 ++ .../CarrierServer/CarrierServer.tests.js | 86 +++ .../e2e/Providers/Carriers/Carriers.cy.js | 26 + .../e2e/Providers/Carriers/Carriers.tests.js | 56 ++ .../BillableCalls/BillableCalls.cy.js | 31 + .../DDIProviderAddresses.cy.js | 39 ++ .../DDIProviderAddresses.tests.js | 74 +++ .../DDIProviderRegistrations.cy.js | 42 ++ .../DDIProviderRegistrations.tests.js | 110 ++++ .../Providers/DdiProviders/Ddis/Ddis.cy.js | 33 + .../Providers/DdiProviders/Ddis/Ddis.tests.js | 91 +++ .../DdiProviders/DdisProviders.cy.js | 35 ++ .../DdiProviders/DdisProviders.tests.js | 86 +++ .../Ddis/BillableCalls/BillableCalls.cy.js | 4 + .../Provider/BillableCalls/getItem.json | 22 + .../Provider/CarrierServer/getCollection.json | 35 ++ .../Provider/CarrierServer/getItem.json | 29 + .../fixtures/Provider/CarrierServer/post.json | 48 ++ .../fixtures/Provider/CarrierServer/put.json | 48 ++ .../fixtures/Provider/Carriers/getItem.json | 29 + .../fixtures/Provider/Carriers/post.json | 32 + .../fixtures/Provider/Carriers/put.json | 30 + .../Provider/DdiProviders/getItem.json | 28 + .../getProviderAddressesCollection.json | 17 + .../getProviderAddressesItem.json | 17 + .../getProviderRegistrationsCollection.json | 22 + .../getProviderRegistrationsItem.json | 24 + .../fixtures/Provider/DdiProviders/post.json | 28 + .../DdiProviders/postProviderAddresses.json | 24 + .../postProviderRegistrations.json | 38 ++ .../fixtures/Provider/DdiProviders/put.json | 28 + .../DdiProviders/putProviderAddresses.json | 24 + .../putProviderRegistrations.json | 38 ++ .../Provider/ProxyTrunks/getItem.json | 12 + ...rand-consumer-Carriers-Carrier-Server.json | 145 +++++ ...ider-Carriers-brand-consumer-Carriers.json | 107 ++++ ...and-consumer-DDIs-Providers-Addresses.json | 107 ++++ ...consumer-DDIs-Providers-Registrations.json | 133 ++++ ...oviders-brand-consumer-DDIs-Providers.json | 117 ++++ ...and-provider-DDIs-brand-consumer-DDIs.json | 226 +++---- ...-WebPortals-brand-consumer-WebPortals.json | 224 +++---- ...d-provider-login-brand-consumer-login.json | 156 ++--- ...esidential-brand-consumer-residential.json | 412 ++++++------- ...umer-residential-client-administrator.json | 252 ++++---- ...er-residential-client-rating-profiles.json | 196 +++--- ...er-residential-client-users-addresses.json | 142 ++--- ...provider-retail-brand-consumer-retail.json | 432 ++++++------- ...-consumer-retail-client-administrator.json | 252 ++++---- ...onsumer-retail-client-users-addresses.json | 194 +++--- ...nsumer-retails-client-rating-profiles.json | 196 +++--- ...and-provider-vpbx-brand-consumer-vpbx.json | 566 +++++++++--------- ...nd-consumer-vpbx-client-administrator.json | 252 ++++---- ...-consumer-vpbx-client-rating-profiles.json | 196 +++--- ...-consumer-vpbx-client-users-addresses.json | 194 +++--- ...er-wholesale-brand-consumer-wholesale.json | 400 ++++++------- ...and-consumer-wholesale-client-trusted.json | 208 +++---- .../prepareGenericPactInterceptors.js | 15 + 57 files changed, 4195 insertions(+), 2249 deletions(-) create mode 100644 web/portal/brand/cypress/e2e/Providers/Carriers/CarrierServer/CarrierServer.cy.js create mode 100644 web/portal/brand/cypress/e2e/Providers/Carriers/CarrierServer/CarrierServer.tests.js create mode 100644 web/portal/brand/cypress/e2e/Providers/Carriers/Carriers.cy.js create mode 100644 web/portal/brand/cypress/e2e/Providers/Carriers/Carriers.tests.js create mode 100644 web/portal/brand/cypress/e2e/Providers/DdiProviders/BillableCalls/BillableCalls.cy.js create mode 100644 web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderAddresses/DDIProviderAddresses.cy.js create mode 100644 web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderAddresses/DDIProviderAddresses.tests.js create mode 100644 web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderRegistrations/DDIProviderRegistrations.cy.js create mode 100644 web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderRegistrations/DDIProviderRegistrations.tests.js create mode 100644 web/portal/brand/cypress/e2e/Providers/DdiProviders/Ddis/Ddis.cy.js create mode 100644 web/portal/brand/cypress/e2e/Providers/DdiProviders/Ddis/Ddis.tests.js create mode 100644 web/portal/brand/cypress/e2e/Providers/DdiProviders/DdisProviders.cy.js create mode 100644 web/portal/brand/cypress/e2e/Providers/DdiProviders/DdisProviders.tests.js create mode 100644 web/portal/brand/cypress/fixtures/Provider/BillableCalls/getItem.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/CarrierServer/getCollection.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/CarrierServer/getItem.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/CarrierServer/post.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/CarrierServer/put.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/Carriers/getItem.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/Carriers/post.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/Carriers/put.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/getItem.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderAddressesCollection.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderAddressesItem.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderRegistrationsCollection.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderRegistrationsItem.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/post.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/postProviderAddresses.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/postProviderRegistrations.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/put.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/putProviderAddresses.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/DdiProviders/putProviderRegistrations.json create mode 100644 web/portal/brand/cypress/fixtures/Provider/ProxyTrunks/getItem.json create mode 100644 web/portal/brand/cypress/pacts/brand-provider-Carriers-Carrier-Server-brand-consumer-Carriers-Carrier-Server.json create mode 100644 web/portal/brand/cypress/pacts/brand-provider-Carriers-brand-consumer-Carriers.json create mode 100644 web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-Addresses-brand-consumer-DDIs-Providers-Addresses.json create mode 100644 web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-Registrations-brand-consumer-DDIs-Providers-Registrations.json create mode 100644 web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-brand-consumer-DDIs-Providers.json diff --git a/web/portal/brand/cypress/e2e/Providers/Carriers/CarrierServer/CarrierServer.cy.js b/web/portal/brand/cypress/e2e/Providers/Carriers/CarrierServer/CarrierServer.cy.js new file mode 100644 index 0000000000..036a3c99b3 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/Carriers/CarrierServer/CarrierServer.cy.js @@ -0,0 +1,36 @@ +import CarrierServerCollection from '../../../../fixtures/Provider/CarrierServer/getCollection.json'; +import { + deleteCarrierServer, + postCarrierServer, + putCarrierServer, +} from './CarrierServer.tests'; + +describe('in Carrier Servers', () => { + beforeEach(() => { + cy.prepareGenericPactInterceptors('Carriers-Carrier-Server'); + cy.before(); + + cy.get('svg[data-testid="PrecisionManufacturingIcon"]').first().click(); + cy.contains('Carriers').click(); + cy.get('svg[data-testid="StorageIcon"]').first().click(); + + cy.get('header').should('contain', 'Carrier servers'); + + cy.get('table').should('contain', CarrierServerCollection.body[0].id); + }); + + /////////////////////// + // POST + /////////////////////// + it('add Carrier Server', postCarrierServer); + + /////////////////////////////// + // PUT + /////////////////////////////// + it('edit Carrier Server', putCarrierServer); + + /////////////////////////////// + // DELETE + /////////////////////////////// + it('delete Carrier Server', deleteCarrierServer); +}); diff --git a/web/portal/brand/cypress/e2e/Providers/Carriers/CarrierServer/CarrierServer.tests.js b/web/portal/brand/cypress/e2e/Providers/Carriers/CarrierServer/CarrierServer.tests.js new file mode 100644 index 0000000000..0612dbe761 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/Carriers/CarrierServer/CarrierServer.tests.js @@ -0,0 +1,86 @@ +import CarrierItem from '../../../../fixtures/Provider/Carriers/getItem.json'; +import CarrierServerItem from '../../../../fixtures/Provider/CarrierServer/getItem.json'; +import newCarrierServer from '../../../../fixtures/Provider/CarrierServer/post.json'; +import editCarriersServer from '../../../../fixtures/Provider/CarrierServer/put.json'; + +export const postCarrierServer = () => { + cy.usePactIntercept( + { + method: 'POST', + url: '**/api/brand/carrier_servers*', + response: newCarrierServer.response, + matchingRules: newCarrierServer.matchingRules, + }, + 'createCarrierServer' + ); + + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/carriers/1*', + response: { ...CarrierItem }, + }, + 'getCompanies-1' + ); + cy.get('[aria-label=Add]').click(); + const { authUser, outboundProxy, sipProxy } = newCarrierServer.request; + cy.fillTheForm({ + authUser, + outboundProxy, + sipProxy, + }); + cy.get('header li.MuiBreadcrumbs-li:last').should( + 'contain', + 'Carrier servers' + ); + + cy.usePactWait(['createCarrierServer']) + .its('response.statusCode') + .should('eq', 201); +}; + +export const putCarrierServer = () => { + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/carrier_servers/1', + response: { ...CarrierServerItem }, + }, + 'getCarrier-1' + ); + + cy.usePactIntercept( + { + method: 'PUT', + url: `**/api/brand/carrier_servers/${editCarriersServer.response.body.id}`, + response: editCarriersServer.response, + }, + 'editCarriers' + ); + cy.get('svg[data-testid="EditIcon"]').eq(0).click(); + const { authUser, outboundProxy } = editCarriersServer.request; + cy.fillTheForm({ + authUser, + outboundProxy, + }); + cy.get('header').should('contain', 'Carriers'); + cy.usePactWait(['editCarriers']).its('response.statusCode').should('eq', 200); +}; + +export const deleteCarrierServer = () => { + cy.intercept('DELETE', '**/api/brand/carrier_servers/*', { + statusCode: 204, + }).as('deleteCarrierServer'); + cy.get('td button > svg[data-testid="DeleteIcon"]').first().click(); + cy.contains('Remove element'); + cy.get('div.MuiDialog-container button') + .filter(':visible') + .contains('Yes, delete it') + .click(); + + cy.get('header').should('contain', 'Carrier servers'); + + cy.usePactWait(['deleteCarrierServer']) + .its('response.statusCode') + .should('eq', 204); +}; diff --git a/web/portal/brand/cypress/e2e/Providers/Carriers/Carriers.cy.js b/web/portal/brand/cypress/e2e/Providers/Carriers/Carriers.cy.js new file mode 100644 index 0000000000..6f5eab8566 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/Carriers/Carriers.cy.js @@ -0,0 +1,26 @@ +import CarriersCollection from '../../../fixtures/Provider/Carriers/getCollection.json'; +import { postCarrier, putCarrier } from './Carriers.tests'; + +describe('in Carriers', () => { + beforeEach(() => { + cy.prepareGenericPactInterceptors('Carriers'); + cy.before(); + + cy.get('svg[data-testid="PrecisionManufacturingIcon"]').first().click(); + cy.contains('Carriers').click(); + + cy.get('header').should('contain', 'Carriers'); + + cy.get('table').should('contain', CarriersCollection.body[0].name); + }); + + /////////////////////// + // POST + /////////////////////// + it('add Carrier', postCarrier); + + /////////////////////////////// + // PUT + /////////////////////////////// + it('edit Carrier', putCarrier); +}); diff --git a/web/portal/brand/cypress/e2e/Providers/Carriers/Carriers.tests.js b/web/portal/brand/cypress/e2e/Providers/Carriers/Carriers.tests.js new file mode 100644 index 0000000000..1796651774 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/Carriers/Carriers.tests.js @@ -0,0 +1,56 @@ +import CarrierItem from '../../../fixtures/Provider/Carriers/getItem.json'; +import newCarrier from '../../../fixtures/Provider/Carriers/post.json'; +import editCarriers from '../../../fixtures/Provider/Carriers/put.json'; +import CompaniesItem from '../../../fixtures/Provider/Companies/VirtualPbxs/getItem.json'; + +export const postCarrier = () => { + cy.usePactIntercept( + { + method: 'POST', + url: '**/api/brand/carriers*', + response: newCarrier.response, + matchingRules: newCarrier.matchingRules, + }, + 'createDdi' + ); + + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/companies/1*', + response: { ...CompaniesItem }, + }, + 'getCompanies-1' + ); + cy.get('[aria-label=Add]').click(); + const { description, name, transformationRuleSet } = newCarrier.request; + cy.fillTheForm({ description, name, transformationRuleSet }); + cy.get('header li.MuiBreadcrumbs-li:last').should('contain', 'Carriers'); + + cy.usePactWait(['createDdi']).its('response.statusCode').should('eq', 201); +}; + +export const putCarrier = () => { + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/carriers/1', + response: { ...CarrierItem }, + }, + 'getDdis-1' + ); + + cy.usePactIntercept( + { + method: 'PUT', + url: `**/api/brand/carriers/${editCarriers.response.body.id}`, + response: editCarriers.response, + }, + 'editCarriers' + ); + cy.get('svg[data-testid="EditIcon"]').eq(1).click(); + const { description, name, proxyTrunk } = newCarrier.request; + cy.fillTheForm({ description, name, proxyTrunk }); + cy.get('header').should('contain', 'Carriers'); + cy.usePactWait(['editCarriers']).its('response.statusCode').should('eq', 200); +}; diff --git a/web/portal/brand/cypress/e2e/Providers/DdiProviders/BillableCalls/BillableCalls.cy.js b/web/portal/brand/cypress/e2e/Providers/DdiProviders/BillableCalls/BillableCalls.cy.js new file mode 100644 index 0000000000..f5979bf484 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/DdiProviders/BillableCalls/BillableCalls.cy.js @@ -0,0 +1,31 @@ +import BillableCallsCollection from '../../../../fixtures/Provider/BillableCalls/getCollection.json'; +import DdisCollection from '../../../../fixtures/Provider/Ddis/getCollection.json'; + +describe('in BillableCalls', () => { + beforeEach(() => { + cy.prepareGenericPactInterceptors('ddisProviders-billable_calls'); + + cy.intercept('GET', '**/api/brand/ddis/1', { + ...DdisCollection, + body: DdisCollection.body.find((row) => row.id === 3), + }).as('getDdis1'); + + cy.before('ddis'); + + cy.get('svg[data-testid="PrecisionManufacturingIcon"]').first().click(); + cy.contains('DDI Providers').click(); + cy.get('td button svg[data-testid="MoreHorizIcon"]').first().click(); + cy.get('li.MuiMenuItem-root') + .contains('External calls') + .click({ force: true }); + + cy.get('header li.MuiBreadcrumbs-li:last').should( + 'contain', + 'External calls' + ); + }); + + it('contains Billable Calls', () => { + cy.get('table').should('contain', BillableCallsCollection.body[0].caller); + }); +}); diff --git a/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderAddresses/DDIProviderAddresses.cy.js b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderAddresses/DDIProviderAddresses.cy.js new file mode 100644 index 0000000000..55bc878e71 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderAddresses/DDIProviderAddresses.cy.js @@ -0,0 +1,39 @@ +import DdisProvidersAddressesCollection from '../../../../fixtures/Provider/DdiProviders/getProviderAddressesCollection.json'; +import { + deleteDdiProviders, + postDdiProvidersAddresses, + putDdiProvidersAddresses, +} from './DDIProviderAddresses.tests'; + +describe('in Ddis Provider Addresses', () => { + beforeEach(() => { + cy.prepareGenericPactInterceptors('DDIs-Providers-Addresses'); + cy.before(); + + cy.get('svg[data-testid="PrecisionManufacturingIcon"]').first().click(); + cy.contains('DDI Providers').click(); + + cy.get('svg[data-testid="DnsIcon"]').first().click(); + cy.get('header').should('contain', 'DDI Providers'); + + cy.get('table').should( + 'contain', + DdisProvidersAddressesCollection.body[0].id + ); + }); + + /////////////////////// + // POST + /////////////////////// + it('add Ddi Providers Addresses', postDdiProvidersAddresses); + + /////////////////////////////// + // PUT + /////////////////////////////// + it('edit Ddi Providers', putDdiProvidersAddresses); + + /////////////////////// + // DELETE + /////////////////////// + it('delete Ddi Providers', deleteDdiProviders); +}); diff --git a/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderAddresses/DDIProviderAddresses.tests.js b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderAddresses/DDIProviderAddresses.tests.js new file mode 100644 index 0000000000..e9d9e8d8ad --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderAddresses/DDIProviderAddresses.tests.js @@ -0,0 +1,74 @@ +import DdiProvidersAddressesItem from '../../../../fixtures/Provider/DdiProviders/getProviderAddressesItem.json'; +import newDdiProvidersAddresses from '../../../../fixtures/Provider/DdiProviders/postProviderAddresses.json'; +import editDdisProvidersAddresses from '../../../../fixtures/Provider/DdiProviders/putProviderAddresses.json'; + +export const postDdiProvidersAddresses = () => { + cy.usePactIntercept( + { + method: 'POST', + url: '**/api/brand/ddi_provider_addresses*', + response: newDdiProvidersAddresses.response, + matchingRules: newDdiProvidersAddresses.matchingRules, + }, + 'createDdiProvidersAddresses' + ); + + cy.get('[aria-label=Add]').click(); + cy.get('header').should('contain', 'DDI Provider Addresses'); + + const { ip, description } = newDdiProvidersAddresses.request; + cy.fillTheForm({ ip, description }); + + cy.usePactWait(['createDdiProvidersAddresses']) + .its('response.statusCode') + .should('eq', 201); +}; + +export const putDdiProvidersAddresses = () => { + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/ddi_provider_addresses/1', + response: { ...DdiProvidersAddressesItem }, + }, + 'getDdisProvidersAddresses-1' + ); + + cy.usePactIntercept( + { + method: 'PUT', + url: `**/api/brand/ddi_provider_addresses/${editDdisProvidersAddresses.response.body.id}`, + response: editDdisProvidersAddresses.response, + }, + 'editDdisProvidersAddresses' + ); + + cy.get('svg[data-testid="EditIcon"]').click(); + + const { description, ip } = editDdisProvidersAddresses.request; + cy.fillTheForm({ description, ip }); + + cy.get('header').should('contain', 'DDI Provider Addresses'); + + cy.usePactWait(['editDdisProvidersAddresses']) + .its('response.statusCode') + .should('eq', 200); +}; + +export const deleteDdiProviders = () => { + cy.intercept('DELETE', '**/api/brand/ddi_provider_addresses/*', { + statusCode: 204, + }).as('deleteDdiProvidersAddresses'); + cy.get('td button > svg[data-testid="DeleteIcon"]').first().click(); + cy.contains('Remove element'); + cy.get('div.MuiDialog-container button') + .filter(':visible') + .contains('Yes, delete it') + .click(); + + cy.get('header').should('contain', 'DDI Provider Addresses'); + + cy.usePactWait(['deleteDdiProvidersAddresses']) + .its('response.statusCode') + .should('eq', 204); +}; diff --git a/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderRegistrations/DDIProviderRegistrations.cy.js b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderRegistrations/DDIProviderRegistrations.cy.js new file mode 100644 index 0000000000..7d265e8e27 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderRegistrations/DDIProviderRegistrations.cy.js @@ -0,0 +1,42 @@ +import DdisProvidersRegistrationsCollection from '../../../../fixtures/Provider/DdiProviders/getProviderRegistrationsCollection.json'; +import { + deleteDdiProvidersRegistrations, + postDdiProvidersRegistrations, + putDdiProvidersRegistrations, +} from './DDIProviderRegistrations.tests'; + +describe('in Ddis Provider Registrations', () => { + beforeEach(() => { + cy.prepareGenericPactInterceptors('DDIs-Providers-Registrations'); + cy.before(); + + cy.get('svg[data-testid="PrecisionManufacturingIcon"]').first().click(); + cy.contains('DDI Providers').click(); + + cy.get('td button svg[data-testid="MoreHorizIcon"]').first().click(); + cy.get('li.MuiMenuItem-root') + .contains('DDI Provider Registrations') + .click(); + cy.get('header').should('contain', 'DDI Provider Registrations'); + + cy.get('table').should( + 'contain', + DdisProvidersRegistrationsCollection.body[0].username + ); + }); + + /////////////////////// + // POST + /////////////////////// + it('add Ddi Providers Registrations', postDdiProvidersRegistrations); + + /////////////////////////////// + // PUT + /////////////////////////////// + it('edit Ddi Providers Registrations', putDdiProvidersRegistrations); + + /////////////////////// + // DELETE + /////////////////////// + it('delete Ddi Providers Registrations', deleteDdiProvidersRegistrations); +}); diff --git a/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderRegistrations/DDIProviderRegistrations.tests.js b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderRegistrations/DDIProviderRegistrations.tests.js new file mode 100644 index 0000000000..3ea5c98862 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DDIProviderRegistrations/DDIProviderRegistrations.tests.js @@ -0,0 +1,110 @@ +import DdiProvidersRegistrationsItem from '../../../../fixtures/Provider/DdiProviders/getProviderRegistrationsItem.json'; +import newDdiProvidersRegistrations from '../../../../fixtures/Provider/DdiProviders/postProviderRegistrations.json'; +import editDdisProvidersRegistrations from '../../../../fixtures/Provider/DdiProviders/putProviderRegistrations.json'; + +export const postDdiProvidersRegistrations = () => { + cy.usePactIntercept( + { + method: 'POST', + url: '**/api/brand/ddi_provider_registrations*', + response: newDdiProvidersRegistrations.response, + matchingRules: newDdiProvidersRegistrations.matchingRules, + }, + 'createDdiProvidersRegistrations' + ); + + cy.get('[aria-label=Add]').click(); + cy.get('header').should('contain', 'DDI Provider Registrations'); + + const { + username, + domain, + realm, + authUsername, + authPassword, + authProxy, + expires, + multiDdi, + } = newDdiProvidersRegistrations.request; + cy.fillTheForm({ + username, + domain, + realm, + authUsername, + authPassword, + authProxy, + expires, + multiDdi, + }); + + cy.usePactWait(['createDdiProvidersRegistrations']) + .its('response.statusCode') + .should('eq', 201); +}; + +export const putDdiProvidersRegistrations = () => { + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/ddi_provider_registrations/1', + response: { ...DdiProvidersRegistrationsItem }, + }, + 'getDdisProvidersRegistrations-1' + ); + + cy.usePactIntercept( + { + method: 'PUT', + url: `**/api/brand/ddi_provider_registrations/${editDdisProvidersRegistrations.response.body.id}`, + response: editDdisProvidersRegistrations.response, + }, + 'editDdisProvidersRegistrations' + ); + + cy.get('svg[data-testid="EditIcon"]').click(); + + const { + username, + realm, + authUsername, + authPassword, + authProxy, + expires, + multiDdi, + } = editDdisProvidersRegistrations.request; + cy.fillTheForm({ + username, + realm, + authUsername, + authPassword, + authProxy, + expires, + multiDdi, + }); + + cy.get('header').should('contain', 'DDI Provider Registrations'); + + cy.usePactWait(['editDdisProvidersRegistrations']) + .its('response.statusCode') + .should('eq', 200); +}; + +export const deleteDdiProvidersRegistrations = () => { + cy.intercept('DELETE', '**/api/brand/ddi_provider_registrations/*', { + statusCode: 204, + }).as('deleteDdiProvidersRegistrations'); + + cy.get('td button svg[data-testid="DeleteIcon"]').first().click(); + + cy.contains('Remove element'); + cy.get('div.MuiDialog-container button') + .filter(':visible') + .contains('Yes, delete it') + .click(); + + cy.get('header').should('contain', 'DDI Provider Registrations'); + + cy.usePactWait(['deleteDdiProvidersRegistrations']) + .its('response.statusCode') + .should('eq', 204); +}; diff --git a/web/portal/brand/cypress/e2e/Providers/DdiProviders/Ddis/Ddis.cy.js b/web/portal/brand/cypress/e2e/Providers/DdiProviders/Ddis/Ddis.cy.js new file mode 100644 index 0000000000..6f67c94c35 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/DdiProviders/Ddis/Ddis.cy.js @@ -0,0 +1,33 @@ +import DdisCollection from '../../../../fixtures/Provider/Ddis/getCollection.json'; +import { deleteDdi, postDdi, putDdi } from './Ddis.tests'; + +describe('in Ddi Providers DDIs', () => { + beforeEach(() => { + cy.prepareGenericPactInterceptors('DDIs'); + cy.before(); + + cy.get('svg[data-testid="PrecisionManufacturingIcon"]').first().click(); + cy.contains('DDI Providers').click(); + + cy.get('td button svg[data-testid="MoreHorizIcon"]').first().click(); + cy.get('li.MuiMenuItem-root').contains('DDIs').click(); + cy.get('header').should('contain', 'DDIs'); + + cy.get('table').should('contain', DdisCollection.body[0].id); + }); + + /////////////////////// + // POST + /////////////////////// + it('add Ddi', postDdi); + + /////////////////////////////// + // PUT + /////////////////////////////// + it('edit Ddi', putDdi); + + /////////////////////// + // DELETE + /////////////////////// + it('delete Ddi', deleteDdi); +}); diff --git a/web/portal/brand/cypress/e2e/Providers/DdiProviders/Ddis/Ddis.tests.js b/web/portal/brand/cypress/e2e/Providers/DdiProviders/Ddis/Ddis.tests.js new file mode 100644 index 0000000000..aec02cff4a --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/DdiProviders/Ddis/Ddis.tests.js @@ -0,0 +1,91 @@ +import CompaniesItem from '../../../../fixtures/Provider/Companies/VirtualPbxs/getItem.json'; +import DdiItem from '../../../../fixtures/Provider/Ddis/getItem.json'; +import newDdi from '../../../../fixtures/Provider/Ddis/post.json'; +import editDdis from '../../../../fixtures/Provider/Ddis/put.json'; + +export const postDdi = () => { + cy.usePactIntercept( + { + method: 'POST', + url: '**/api/brand/ddis*', + response: newDdi.response, + matchingRules: newDdi.matchingRules, + }, + 'createDdi' + ); + + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/companies/1*', + response: { ...CompaniesItem }, + }, + 'getCompanies-1' + ); + + cy.get('[aria-label=Add]').click(); + + const { ddi, description, type, company, country } = newDdi.request; + cy.fillTheForm({ + ddi, + description, + type, + company, + country, + }); + + cy.get('header li.MuiBreadcrumbs-li:last').should('contain', 'DDIs'); + + cy.usePactWait(['createDdi']).its('response.statusCode').should('eq', 201); +}; + +export const putDdi = () => { + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/ddis/1', + response: { ...DdiItem }, + }, + 'getDdis-1' + ); + + cy.usePactIntercept( + { + method: 'PUT', + url: `**/api/brand/ddis/${editDdis.response.body.id}`, + response: editDdis.response, + }, + 'editDdis' + ); + + cy.get('svg[data-testid="EditIcon"]').eq(1).click(); + + const { ddi, description, type, country } = newDdi.request; + cy.fillTheForm({ + ddi, + description, + type, + country, + }); + + cy.get('header').should('contain', 'DDIs'); + + cy.usePactWait(['editDdis']).its('response.statusCode').should('eq', 200); +}; + +export const deleteDdi = () => { + cy.intercept('DELETE', '**/api/brand/ddis/*', { + statusCode: 204, + }).as('deleteDdi'); + + cy.get('td button svg[data-testid="DeleteIcon"]').first().click(); + cy.contains('Remove element'); + cy.get('div.MuiDialog-container button') + .filter(':visible') + .contains('Yes, delete it') + .click(); + + cy.get('header li.MuiBreadcrumbs-li:last').should('contain', 'DDIs'); + + cy.usePactWait(['deleteDdi']).its('response.statusCode').should('eq', 204); +}; diff --git a/web/portal/brand/cypress/e2e/Providers/DdiProviders/DdisProviders.cy.js b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DdisProviders.cy.js new file mode 100644 index 0000000000..5a28989fe6 --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DdisProviders.cy.js @@ -0,0 +1,35 @@ +import DdisProvidersCollection from '../../../fixtures/Provider/DdiProviders/getCollection.json'; +import { + deleteDdiProviders, + postDdiProviders, + putDdiProviders, +} from './DdisProviders.tests'; + +describe('in Ddis Providers', () => { + beforeEach(() => { + cy.prepareGenericPactInterceptors('DDIs-Providers'); + cy.before(); + + cy.get('svg[data-testid="PrecisionManufacturingIcon"]').first().click(); + cy.contains('DDI Providers').click(); + + cy.get('header').should('contain', 'DDI Providers'); + + cy.get('table').should('contain', DdisProvidersCollection.body[0].id); + }); + + /////////////////////// + // POST + /////////////////////// + it('add Ddi Providers', postDdiProviders); + + /////////////////////////////// + // PUT + /////////////////////////////// + it('edit Ddi Providers', putDdiProviders); + + /////////////////////// + // DELETE + /////////////////////// + it('delete Ddi Providers', deleteDdiProviders); +}); diff --git a/web/portal/brand/cypress/e2e/Providers/DdiProviders/DdisProviders.tests.js b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DdisProviders.tests.js new file mode 100644 index 0000000000..c5e431a66f --- /dev/null +++ b/web/portal/brand/cypress/e2e/Providers/DdiProviders/DdisProviders.tests.js @@ -0,0 +1,86 @@ +import DdiProvidersItem from '../../../fixtures/Provider/DdiProviders/getItem.json'; +import newDdiProviders from '../../../fixtures/Provider/DdiProviders/post.json'; +import editDdisProviders from '../../../fixtures/Provider/DdiProviders/put.json'; +import ProxyTrunksItem from '../../../fixtures/Provider/ProxyTrunks/getItem.json'; + +export const postDdiProviders = () => { + cy.usePactIntercept( + { + method: 'POST', + url: '**/api/brand/ddi_providers*', + response: newDdiProviders.response, + matchingRules: newDdiProviders.matchingRules, + }, + 'createDdiProviders' + ); + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/proxy_trunks/1*', + response: { ...ProxyTrunksItem }, + }, + 'getProxyTrunk-1' + ); + + cy.get('[aria-label=Add]').click(); + cy.get('header').should('contain', 'DDI Providers'); + + const { description, name, transformationRuleSet } = newDdiProviders.request; + cy.fillTheForm({ description, name, transformationRuleSet }); + + cy.usePactWait(['createDdiProviders']) + .its('response.statusCode') + .should('eq', 201); +}; + +export const putDdiProviders = () => { + cy.usePactIntercept( + { + method: 'GET', + url: '**/api/brand/ddi_providers/1', + response: { ...DdiProvidersItem }, + }, + 'getDdisProviders-1' + ); + + cy.usePactIntercept( + { + method: 'PUT', + url: `**/api/brand/ddi_providers/${editDdisProviders.response.body.id}`, + response: editDdisProviders.response, + }, + 'editDdisProviders' + ); + + cy.get('svg[data-testid="EditIcon"]').click(); + + const { description, name } = editDdisProviders.request; + cy.fillTheForm({ description, name }); + + cy.get('header').should('contain', 'DDI Providers'); + + cy.usePactWait(['editDdisProviders']) + .its('response.statusCode') + .should('eq', 200); +}; + +export const deleteDdiProviders = () => { + cy.intercept('DELETE', '**/api/brand/ddi_providers/*', { + statusCode: 204, + }).as('deleteDdiProviders'); + + cy.get('td button svg[data-testid="MoreHorizIcon"]').first().click(); + cy.get('li.MuiMenuItem-root').contains('Delete').click(); + + cy.contains('Remove element'); + cy.get('div.MuiDialog-container button') + .filter(':visible') + .contains('Yes, delete it') + .click(); + + cy.get('header').should('contain', 'DDI Providers'); + + cy.usePactWait(['deleteDdiProviders']) + .its('response.statusCode') + .should('eq', 204); +}; diff --git a/web/portal/brand/cypress/e2e/Providers/Ddis/BillableCalls/BillableCalls.cy.js b/web/portal/brand/cypress/e2e/Providers/Ddis/BillableCalls/BillableCalls.cy.js index 642c8e41dd..a4bf324cae 100644 --- a/web/portal/brand/cypress/e2e/Providers/Ddis/BillableCalls/BillableCalls.cy.js +++ b/web/portal/brand/cypress/e2e/Providers/Ddis/BillableCalls/BillableCalls.cy.js @@ -11,6 +11,10 @@ describe('in BillableCalls', () => { }).as('getDdis1'); cy.before('ddis'); + + cy.get('svg[data-testid="PrecisionManufacturingIcon"]').first().click(); + cy.contains('DDIs').click(); + cy.get(`svg[data-testid="ChatBubbleIcon"]`).eq(1).click(); cy.get('header li.MuiBreadcrumbs-li:last').should( diff --git a/web/portal/brand/cypress/fixtures/Provider/BillableCalls/getItem.json b/web/portal/brand/cypress/fixtures/Provider/BillableCalls/getItem.json new file mode 100644 index 0000000000..17d706e6c7 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/BillableCalls/getItem.json @@ -0,0 +1,22 @@ +{ + "body": { + "callid": "017cc7c8-eb38-4bbd-9318-524a274f7000", + "startTime": "2019-01-01 09:00:00", + "duration": 0, + "caller": "+34633646464", + "callee": "+34633656565", + "price": 1, + "destinationName": null, + "ratingPlanName": null, + "endpointType": null, + "endpointId": null, + "endpointName": null, + "direction": "outbound", + "id": 1, + "ddi": 1 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/CarrierServer/getCollection.json b/web/portal/brand/cypress/fixtures/Provider/CarrierServer/getCollection.json new file mode 100644 index 0000000000..3378ed2766 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/CarrierServer/getCollection.json @@ -0,0 +1,35 @@ +{ + "body": [ + { + "ip": null, + "hostname": "127.0.0.1", + "authNeeded": "no", + "sipProxy": "127.0.0.1", + "outboundProxy": null, + "id": 1, + "status": { + "registered": false + } + }, + { + "ip": null, + "hostname": "127.0.0.2", + "authNeeded": "no", + "sipProxy": "127.0.0.2", + "outboundProxy": null, + "id": 2, + "status": { + "registered": false + } + + } + ], + "headers": { + "x-first-page": "/api/brand/carrier_servers?_page=1", + "x-last-page": "/api/brand/carrier_servers?_page=1", + "x-next-page": "/api/brand/carrier_servers?_page=1", + "x-total-items": "1", + "x-total-pages": "1" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/CarrierServer/getItem.json b/web/portal/brand/cypress/fixtures/Provider/CarrierServer/getItem.json new file mode 100644 index 0000000000..2682cf6b07 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/CarrierServer/getItem.json @@ -0,0 +1,29 @@ +{ + "body": { + "ip": null, + "hostname": "127.0.0.1", + "port": 5060, + "uriScheme": 1, + "transport": 1, + "sendPAI": false, + "sendRPID": false, + "authNeeded": "no", + "authUser": null, + "authPassword": "*****", + "sipProxy": "127.0.0.1", + "outboundProxy": null, + "fromUser": "", + "fromDomain": "", + "id": 1, + "carrier": { + "description": "CarrierDescription", + "name": "CarrierName", + "id": 1, + "transformationRuleSet": 1 + } + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/CarrierServer/post.json b/web/portal/brand/cypress/fixtures/Provider/CarrierServer/post.json new file mode 100644 index 0000000000..8ecbecc871 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/CarrierServer/post.json @@ -0,0 +1,48 @@ +{ + "request": { + "ip": "127.0.0.2", + "hostname": "newhost.net", + "port": 5060, + "uriScheme": 2, + "transport": 1, + "sendPAI": false, + "sendRPID": false, + "authNeeded": "no", + "authUser": null, + "authPassword": "*****", + "sipProxy": "127.0.0.3", + "outboundProxy": null, + "fromUser": "", + "fromDomain": "", + "carrier": 1 + }, + "response": { + "body": { + "ip": null, + "hostname": "127.0.0.3", + "port": 5060, + "uriScheme": 2, + "transport": 1, + "sendPAI": false, + "sendRPID": false, + "authNeeded": "no", + "authUser": null, + "authPassword": "*****", + "sipProxy": "127.0.0.3", + "outboundProxy": null, + "fromUser": "", + "fromDomain": "", + "id": 3, + "carrier": 1 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 201 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/CarrierServer/put.json b/web/portal/brand/cypress/fixtures/Provider/CarrierServer/put.json new file mode 100644 index 0000000000..8f7cad96e3 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/CarrierServer/put.json @@ -0,0 +1,48 @@ +{ + "request": { + "ip": "127.1.0.1", + "hostname": "hostname.net", + "port": 5060, + "uriScheme": 2, + "transport": 2, + "sendPAI": false, + "sendRPID": false, + "authNeeded": "no", + "authUser": null, + "authPassword": "*****", + "sipProxy": "127.0.0.1", + "outboundProxy": null, + "fromUser": "", + "fromDomain": "", + "carrier": 1 + }, + "response": { + "body": { + "ip": null, + "hostname": "127.0.0.1", + "port": 5060, + "uriScheme": 2, + "transport": 2, + "sendPAI": false, + "sendRPID": false, + "authNeeded": "no", + "authUser": null, + "authPassword": "*****", + "sipProxy": "127.0.0.1", + "outboundProxy": null, + "fromUser": "", + "fromDomain": "", + "id": 1, + "carrier": 1 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/Carriers/getItem.json b/web/portal/brand/cypress/fixtures/Provider/Carriers/getItem.json new file mode 100644 index 0000000000..b65a2cc250 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/Carriers/getItem.json @@ -0,0 +1,29 @@ +{ + "body": { + "description": "CarrierDescription", + "name": "CarrierName", + "calculateCost": true, + "id": 1, + "transformationRuleSet": { + "description": "Brand 1 transformation for Spain", + "internationalCode": "00", + "trunkPrefix": "", + "areaCode": "", + "nationalLen": 9, + "generateRules": false, + "id": 1, + "name": { + "en": "Brand 1 transformation for Spain", + "es": "Marca 1 tansformacion para España", + "ca": "Marca 1 tansformacion para España", + "it": "Brand 1 transformation for Spain" + }, + "country": 68, + "editable": true + } + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/Carriers/post.json b/web/portal/brand/cypress/fixtures/Provider/Carriers/post.json new file mode 100644 index 0000000000..7775ccdad2 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/Carriers/post.json @@ -0,0 +1,32 @@ +{ + "request": { + "description": "Artemis-New", + "name": "Artemis-New", + "proxyTrunk": 1, + "transformationRuleSet": 1, + "mediaRelaySet": 0 + }, + "response": { + "body": { + "description": "Artemis-New", + "name": "Artemis-New", + "balance": 0, + "calculateCost": false, + "id": 3, + "transformationRuleSet": 1, + "currency": null, + "proxyTrunk": 1, + "mediaRelaySets": null, + "mediaRelaySet": 0 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 201 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/Carriers/put.json b/web/portal/brand/cypress/fixtures/Provider/Carriers/put.json new file mode 100644 index 0000000000..19592ee58b --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/Carriers/put.json @@ -0,0 +1,30 @@ +{ + "request": { + "description": "Artemis-Updated", + "name": "Artemis-Updated", + "transformationRuleSet": 1 + }, + "response": { + "body": { + "description": "Artemis-Updated", + "name": "Artemis-Updated", + "balance": 0, + "calculateCost": true, + "id": 1, + "transformationRuleSet": 1, + "currency": null, + "proxyTrunk": 1, + "mediaRelaySets": null, + "mediaRelaySet": 0 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getItem.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getItem.json new file mode 100644 index 0000000000..1fdc7f9d3e --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getItem.json @@ -0,0 +1,28 @@ +{ + "body": { + "description": "DDIProviderDescription", + "name": "DDIProviderName", + "id": 1, + "transformationRuleSet": { + "description": "Brand 1 transformation for Spain", + "internationalCode": "00", + "trunkPrefix": "", + "areaCode": "", + "nationalLen": 9, + "generateRules": false, + "id": 1, + "name": { + "en": "Brand 1 transformation for Spain", + "es": "Marca 1 tansformacion para España", + "ca": "Marca 1 tansformacion para España", + "it": "Brand 1 transformation for Spain" + }, + "country": 68, + "editable": true + } + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderAddressesCollection.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderAddressesCollection.json new file mode 100644 index 0000000000..99c1236f54 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderAddressesCollection.json @@ -0,0 +1,17 @@ +{ + "body": [ + { + "ip": "127.0.0.1", + "description": "DDI Provider Address 1", + "id": 1 + } + ], + "headers": { + "x-first-page": "/api/brand/ddi_provider_addresses?_page=1", + "x-last-page": "/api/brand/ddi_provider_addresses?_page=1", + "x-next-page": "/api/brand/ddi_provider_addresses?_page=1", + "x-total-items": "1", + "x-total-pages": "1" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderAddressesItem.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderAddressesItem.json new file mode 100644 index 0000000000..0ac68b6a7d --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderAddressesItem.json @@ -0,0 +1,17 @@ +{ + "body": { + "ip": "127.0.0.1", + "description": "DDI Provider Address 1", + "id": 1, + "ddiProvider": { + "description": "DDIProviderDescription", + "name": "DDIProviderName", + "id": 1, + "transformationRuleSet": 1 + } + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderRegistrationsCollection.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderRegistrationsCollection.json new file mode 100644 index 0000000000..9b1825e02d --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderRegistrationsCollection.json @@ -0,0 +1,22 @@ +{ + "body": [ + { + "username": "DDIRegistrationUsername", + "domain": "DDIRegistrationDomain", + "id": 1, + "status": { + "registered": false, + "inProgress": false, + "expires": null + } + } + ], + "headers": { + "x-first-page": "/api/brand/ddi_provider_registrations?_page=1", + "x-last-page": "/api/brand/ddi_provider_registrations?_page=1", + "x-next-page": "/api/brand/ddi_provider_registrations?_page=1", + "x-total-items": "1", + "x-total-pages": "1" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderRegistrationsItem.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderRegistrationsItem.json new file mode 100644 index 0000000000..8333faabbc --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/getProviderRegistrationsItem.json @@ -0,0 +1,24 @@ +{ + "body": { + "username": "DDIRegistrationUsername", + "domain": "DDIRegistrationDomain", + "realm": "DDIRegistrationRealm", + "authUsername": "DDIRegistrationAuthUsername", + "authPassword": "DDIRegistrationAuthPassword", + "authProxy": "sip:DDIRegistrationAuthProxy", + "expires": 2000, + "multiDdi": false, + "contactUsername": "DDIRegistrationContactUsername", + "id": 1, + "ddiProvider": { + "description": "DDIProviderDescription", + "name": "DDIProviderName", + "id": 1, + "transformationRuleSet": 1 + } + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/post.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/post.json new file mode 100644 index 0000000000..f11c7c757a --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/post.json @@ -0,0 +1,28 @@ +{ + "request": { + "description": "NewDDIProviderDescription", + "name": "NewDDIProviderName", + "proxyTrunk": 1, + "transformationRuleSet": 1 + }, + "response": { + "body": { + "description": "NewDDIProviderDescription", + "name": "NewDDIProviderName", + "id": 2, + "transformationRuleSet": 1, + "proxyTrunk": 1, + "mediaRelaySets": null, + "mediaRelaySet": 0 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 201 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/postProviderAddresses.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/postProviderAddresses.json new file mode 100644 index 0000000000..ca04e28308 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/postProviderAddresses.json @@ -0,0 +1,24 @@ +{ + "request": { + "ip": "1.1.1.1", + "description": "NewDDIProviderAddress", + "ddiProvider": 1 + }, + "response": { + "body": { + "ip": "1.1.1.1", + "description": "NewDDIProviderAddress", + "id": 2, + "ddiProvider": 1 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 201 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/postProviderRegistrations.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/postProviderRegistrations.json new file mode 100644 index 0000000000..ffd7ab1fe4 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/postProviderRegistrations.json @@ -0,0 +1,38 @@ +{ + "request": { + "username": "NewDDIRegistrationUsername", + "domain": "NewDDIRegistrationDomain", + "realm": "NewDDIRegistrationRealm", + "authUsername": "NewDDIRegistrationAuthUsername", + "authPassword": "NewDDIRegistrationAuthPassword", + "authProxy": "sip:NewDDIRegistrationAuthProxy", + "expires": 3600, + "multiDdi": true, + "contactUsername": "", + "ddiProvider": 1 + }, + "response": { + "body": { + "username": "NewDDIRegistrationUsername", + "domain": "NewDDIRegistrationDomain", + "realm": "NewDDIRegistrationRealm", + "authUsername": "NewDDIRegistrationAuthUsername", + "authPassword": "NewDDIRegistrationAuthPassword", + "authProxy": "sip:NewDDIRegistrationAuthProxy", + "expires": 3600, + "multiDdi": true, + "contactUsername": "", + "id": 2, + "ddiProvider": 1 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 201 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/put.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/put.json new file mode 100644 index 0000000000..1a6a982172 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/put.json @@ -0,0 +1,28 @@ +{ + "request": { + "description": "UpdateDDIProviderDescription", + "name": "UpdateDDIProviderName", + "proxyTrunk": 1, + "transformationRuleSet": 1 + }, + "response": { + "body": { + "description": "UpdateDDIProviderDescription", + "name": "UpdateDDIProviderName", + "id": 1, + "transformationRuleSet": 1, + "proxyTrunk": 1, + "mediaRelaySets": null, + "mediaRelaySet": 0 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/putProviderAddresses.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/putProviderAddresses.json new file mode 100644 index 0000000000..4b9fa69f33 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/putProviderAddresses.json @@ -0,0 +1,24 @@ +{ + "request": { + "ip": "2.2.2.2", + "description": "UpdatedDDIProviderAddress", + "ddiProvider": 1 + }, + "response": { + "body": { + "ip": "2.2.2.2", + "description": "UpdatedDDIProviderAddress", + "id": 1, + "ddiProvider": 1 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/DdiProviders/putProviderRegistrations.json b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/putProviderRegistrations.json new file mode 100644 index 0000000000..c551bf144d --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/DdiProviders/putProviderRegistrations.json @@ -0,0 +1,38 @@ +{ + "request": { + "username": "UpdatedDDIRegistrationUsername", + "domain": "UpdatedDDIRegistrationDomain", + "realm": "UpdatedDDIRegistrationRealm", + "authUsername": "UpdatedDDIRegistrationAuthUsername", + "authPassword": "UpdatedDDIRegistrationAuthPassword", + "authProxy": "sip:UpdatedDDIRegistrationAuthProxy", + "expires": 36005, + "multiDdi": true, + "contactUsername": "", + "ddiProvider": 1 + }, + "response": { + "body": { + "username": "UpdatedDDIRegistrationUsername", + "domain": "UpdatedDDIRegistrationDomain", + "realm": "UpdatedDDIRegistrationRealm", + "authUsername": "UpdatedDDIRegistrationAuthUsername", + "authPassword": "UpdatedDDIRegistrationAuthPassword", + "authProxy": "sip:UpdatedDDIRegistrationAuthProxy", + "expires": 36005, + "multiDdi": true, + "contactUsername": "", + "id": 1, + "ddiProvider": 1 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } +} \ No newline at end of file diff --git a/web/portal/brand/cypress/fixtures/Provider/ProxyTrunks/getItem.json b/web/portal/brand/cypress/fixtures/Provider/ProxyTrunks/getItem.json new file mode 100644 index 0000000000..01f2cfc596 --- /dev/null +++ b/web/portal/brand/cypress/fixtures/Provider/ProxyTrunks/getItem.json @@ -0,0 +1,12 @@ +{ + "body": { + "name": "proxytrunks", + "ip": "10.60.205.115", + "advertisedIp": null, + "id": 1 + }, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "statusCode": 200 +} \ No newline at end of file diff --git a/web/portal/brand/cypress/pacts/brand-provider-Carriers-Carrier-Server-brand-consumer-Carriers-Carrier-Server.json b/web/portal/brand/cypress/pacts/brand-provider-Carriers-Carrier-Server-brand-consumer-Carriers-Carrier-Server.json new file mode 100644 index 0000000000..3431588124 --- /dev/null +++ b/web/portal/brand/cypress/pacts/brand-provider-Carriers-Carrier-Server-brand-consumer-Carriers-Carrier-Server.json @@ -0,0 +1,145 @@ +{ + "consumer": { + "name": "brand-consumer-Carriers-Carrier-Server" + }, + "provider": { + "name": "brand-provider-Carriers-Carrier-Server" + }, + "interactions": [ + { + "description": "add Carrier Server", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/carrier_servers", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "163", + "content-type": "application/json" + }, + "body": { + "uriScheme": 1, + "transport": 1, + "sendPAI": true, + "sendRPID": false, + "authNeeded": "no", + "sipProxy": "127.0.0.3", + "outboundProxy": "", + "fromUser": "", + "fromDomain": "", + "carrier": 2 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "ip": null, + "hostname": "127.0.0.3", + "port": 5060, + "uriScheme": 2, + "transport": 1, + "sendPAI": false, + "sendRPID": false, + "authNeeded": "no", + "authUser": null, + "authPassword": "*****", + "sipProxy": "127.0.0.3", + "outboundProxy": null, + "fromUser": "", + "fromDomain": "", + "id": 3, + "carrier": 1 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } + }, + { + "description": "edit Carrier Server", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/carrier_servers/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "164", + "content-type": "application/json" + }, + "body": { + "uriScheme": 1, + "transport": 1, + "sendPAI": false, + "sendRPID": false, + "authNeeded": "no", + "sipProxy": "127.0.0.1", + "outboundProxy": "", + "fromUser": "", + "fromDomain": "", + "carrier": 1 + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "ip": null, + "hostname": "127.0.0.1", + "port": 5060, + "uriScheme": 2, + "transport": 2, + "sendPAI": false, + "sendRPID": false, + "authNeeded": "no", + "authUser": null, + "authPassword": "*****", + "sipProxy": "127.0.0.1", + "outboundProxy": null, + "fromUser": "", + "fromDomain": "", + "id": 1, + "carrier": 1 + } + } + }, + { + "description": "delete Carrier Server", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/carrier_servers/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" + }, + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } + } +} diff --git a/web/portal/brand/cypress/pacts/brand-provider-Carriers-brand-consumer-Carriers.json b/web/portal/brand/cypress/pacts/brand-provider-Carriers-brand-consumer-Carriers.json new file mode 100644 index 0000000000..0088d331e5 --- /dev/null +++ b/web/portal/brand/cypress/pacts/brand-provider-Carriers-brand-consumer-Carriers.json @@ -0,0 +1,107 @@ +{ + "consumer": { + "name": "brand-consumer-Carriers" + }, + "provider": { + "name": "brand-provider-Carriers" + }, + "interactions": [ + { + "description": "add Carrier", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/carriers", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "140", + "content-type": "application/json" + }, + "body": { + "description": "Artemis-New", + "calculateCost": false, + "transformationRuleSet": 1, + "proxyTrunk": 1, + "mediaRelaySet": "__auto__", + "name": "Artemis-New" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "description": "Artemis-New", + "name": "Artemis-New", + "balance": 0, + "calculateCost": false, + "id": 3, + "transformationRuleSet": 1, + "currency": null, + "proxyTrunk": 1, + "mediaRelaySets": null, + "mediaRelaySet": 0 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } + }, + { + "description": "edit Carrier", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/carriers/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "155", + "content-type": "application/json" + }, + "body": { + "description": "Artemis-New", + "calculateCost": true, + "transformationRuleSet": 1, + "currency": null, + "proxyTrunk": 1, + "mediaRelaySet": "__auto__", + "name": "Artemis-New" + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "description": "Artemis-Updated", + "name": "Artemis-Updated", + "balance": 0, + "calculateCost": true, + "id": 1, + "transformationRuleSet": 1, + "currency": null, + "proxyTrunk": 1, + "mediaRelaySets": null, + "mediaRelaySet": 0 + } + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" + }, + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } + } +} diff --git a/web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-Addresses-brand-consumer-DDIs-Providers-Addresses.json b/web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-Addresses-brand-consumer-DDIs-Providers-Addresses.json new file mode 100644 index 0000000000..8f93600df1 --- /dev/null +++ b/web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-Addresses-brand-consumer-DDIs-Providers-Addresses.json @@ -0,0 +1,107 @@ +{ + "consumer": { + "name": "brand-consumer-DDIs-Providers-Addresses" + }, + "provider": { + "name": "brand-provider-DDIs-Providers-Addresses" + }, + "interactions": [ + { + "description": "add Ddi Providers Addresses", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/ddi_provider_addresses", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "70", + "content-type": "application/json" + }, + "body": { + "ip": "1.1.1.1", + "description": "NewDDIProviderAddress", + "ddiProvider": 1 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "ip": "1.1.1.1", + "description": "NewDDIProviderAddress", + "id": 2, + "ddiProvider": 1 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } + }, + { + "description": "edit Ddi Providers", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/ddi_provider_addresses/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "74", + "content-type": "application/json" + }, + "body": { + "ip": "2.2.2.2", + "description": "UpdatedDDIProviderAddress", + "ddiProvider": 1 + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "ip": "2.2.2.2", + "description": "UpdatedDDIProviderAddress", + "id": 1, + "ddiProvider": 1 + } + } + }, + { + "description": "delete Ddi Providers", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/ddi_provider_addresses/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" + }, + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } + } +} diff --git a/web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-Registrations-brand-consumer-DDIs-Providers-Registrations.json b/web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-Registrations-brand-consumer-DDIs-Providers-Registrations.json new file mode 100644 index 0000000000..b2c764d77f --- /dev/null +++ b/web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-Registrations-brand-consumer-DDIs-Providers-Registrations.json @@ -0,0 +1,133 @@ +{ + "consumer": { + "name": "brand-consumer-DDIs-Providers-Registrations" + }, + "provider": { + "name": "brand-provider-DDIs-Providers-Registrations" + }, + "interactions": [ + { + "description": "add Ddi Providers Registrations", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/ddi_provider_registrations", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "299", + "content-type": "application/json" + }, + "body": { + "username": "NewDDIRegistrationUsername", + "domain": "NewDDIRegistrationDomain", + "realm": "NewDDIRegistrationRealm", + "authUsername": "NewDDIRegistrationAuthUsername", + "authPassword": "NewDDIRegistrationAuthPassword", + "authProxy": "sip:NewDDIRegistrationAuthProxy", + "expires": 3600, + "multiDdi": "1", + "ddiProvider": 1 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "NewDDIRegistrationUsername", + "domain": "NewDDIRegistrationDomain", + "realm": "NewDDIRegistrationRealm", + "authUsername": "NewDDIRegistrationAuthUsername", + "authPassword": "NewDDIRegistrationAuthPassword", + "authProxy": "sip:NewDDIRegistrationAuthProxy", + "expires": 3600, + "multiDdi": true, + "contactUsername": "", + "id": 2, + "ddiProvider": 1 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } + }, + { + "description": "edit Ddi Providers Registrations", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/ddi_provider_registrations/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "317", + "content-type": "application/json" + }, + "body": { + "username": "UpdatedDDIRegistrationUsername", + "domain": "DDIRegistrationDomain", + "realm": "UpdatedDDIRegistrationRealm", + "authUsername": "UpdatedDDIRegistrationAuthUsername", + "authPassword": "UpdatedDDIRegistrationAuthPassword", + "authProxy": "sip:UpdatedDDIRegistrationAuthProxy", + "expires": 36005, + "multiDdi": "1", + "ddiProvider": 1 + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "UpdatedDDIRegistrationUsername", + "domain": "UpdatedDDIRegistrationDomain", + "realm": "UpdatedDDIRegistrationRealm", + "authUsername": "UpdatedDDIRegistrationAuthUsername", + "authPassword": "UpdatedDDIRegistrationAuthPassword", + "authProxy": "sip:UpdatedDDIRegistrationAuthProxy", + "expires": 36005, + "multiDdi": true, + "contactUsername": "", + "id": 1, + "ddiProvider": 1 + } + } + }, + { + "description": "delete Ddi Providers Registrations", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/ddi_provider_registrations/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" + }, + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } + } +} diff --git a/web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-brand-consumer-DDIs-Providers.json b/web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-brand-consumer-DDIs-Providers.json new file mode 100644 index 0000000000..ffc1b907c7 --- /dev/null +++ b/web/portal/brand/cypress/pacts/brand-provider-DDIs-Providers-brand-consumer-DDIs-Providers.json @@ -0,0 +1,117 @@ +{ + "consumer": { + "name": "brand-consumer-DDIs-Providers" + }, + "provider": { + "name": "brand-provider-DDIs-Providers" + }, + "interactions": [ + { + "description": "add Ddi Providers", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/ddi_providers", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "139", + "content-type": "application/json" + }, + "body": { + "description": "NewDDIProviderDescription", + "transformationRuleSet": 1, + "proxyTrunk": 1, + "mediaRelaySet": "__auto__", + "name": "NewDDIProviderName" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "description": "NewDDIProviderDescription", + "name": "NewDDIProviderName", + "id": 2, + "transformationRuleSet": 1, + "proxyTrunk": 1, + "mediaRelaySets": null, + "mediaRelaySet": 0 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } + }, + { + "description": "edit Ddi Providers", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/ddi_providers/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "148", + "content-type": "application/json" + }, + "body": { + "description": "UpdateDDIProviderDescription", + "transformationRuleSet": 1, + "proxyTrunk": null, + "mediaRelaySet": "__auto__", + "name": "UpdateDDIProviderName" + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "description": "UpdateDDIProviderDescription", + "name": "UpdateDDIProviderName", + "id": 1, + "transformationRuleSet": 1, + "proxyTrunk": 1, + "mediaRelaySets": null, + "mediaRelaySet": 0 + } + } + }, + { + "description": "delete Ddi Providers", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/ddi_providers/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" + }, + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } + } +} diff --git a/web/portal/brand/cypress/pacts/brand-provider-DDIs-brand-consumer-DDIs.json b/web/portal/brand/cypress/pacts/brand-provider-DDIs-brand-consumer-DDIs.json index fc3a877625..60d4a12585 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-DDIs-brand-consumer-DDIs.json +++ b/web/portal/brand/cypress/pacts/brand-provider-DDIs-brand-consumer-DDIs.json @@ -1,121 +1,121 @@ { - "consumer": { - "name": "brand-consumer-DDIs" - }, - "provider": { - "name": "brand-provider-DDIs" - }, - "interactions": [ - { - "description": "add Ddi", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/ddis", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "104", - "content-type": "application/json" - }, - "body": { - "type": "inout", - "ddi": "321", - "description": "Description for 321", - "country": 8, - "ddiProvider": 1, - "company": 1 - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "ddi": "321", - "ddie164": "+34321", - "description": "Description for 321", - "type": "inout", - "id": 4, - "company": 1, - "ddiProvider": 1, - "country": 8 - }, - "matchingRules": { - "$.body.id": { - "match": "type" - } - } - } + "consumer": { + "name": "brand-consumer-DDIs" }, - { - "description": "edit Ddi", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/ddis/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "108", - "content-type": "application/json" - }, - "body": { - "type": "inout", - "ddi": "128", - "description": "Description for DDI 123", - "company": 1, - "ddiProvider": 1, - "country": 1 + "provider": { + "name": "brand-provider-DDIs" + }, + "interactions": [ + { + "description": "add Ddi", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/ddis", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "104", + "content-type": "application/json" + }, + "body": { + "type": "inout", + "ddi": "321", + "description": "Description for 321", + "country": 8, + "ddiProvider": 1, + "company": 1 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "ddi": "321", + "ddie164": "+34321", + "description": "Description for 321", + "type": "inout", + "id": 4, + "company": 1, + "ddiProvider": 1, + "country": 8 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit Ddi", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/ddis/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "104", + "content-type": "application/json" + }, + "body": { + "type": "inout", + "ddi": "321", + "description": "Description for 321", + "company": 1, + "ddiProvider": 1, + "country": 8 + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "ddi": "128", + "ddie164": "+34128", + "description": "Description for DDI 123", + "type": "inout", + "id": 1, + "company": 1, + "ddiProvider": 1, + "country": 1 + } + } }, - "body": { - "ddi": "128", - "ddie164": "+34128", - "description": "Description for DDI 123", - "type": "inout", - "id": 1, - "company": 1, - "ddiProvider": 1, - "country": 1 + { + "description": "delete Ddi", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/ddis/3", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } } - } - }, - { - "description": "delete Ddi", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/ddis/3", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 204, - "headers": {}, - "body": "" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-WebPortals-brand-consumer-WebPortals.json b/web/portal/brand/cypress/pacts/brand-provider-WebPortals-brand-consumer-WebPortals.json index 6d8a3e3d3e..6ff735b982 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-WebPortals-brand-consumer-WebPortals.json +++ b/web/portal/brand/cypress/pacts/brand-provider-WebPortals-brand-consumer-WebPortals.json @@ -1,119 +1,119 @@ { - "consumer": { - "name": "brand-consumer-WebPortals" - }, - "provider": { - "name": "brand-provider-WebPortals" - }, - "interactions": [ - { - "description": "add WebPortal", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/web_portals", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "121", - "content-type": "application/json" - }, - "body": { - "urlType": "user", - "name": "Platform user Portal", - "color": "#000000", - "company": 2, - "url": "https://post-example.com", - "logo": "" - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "url": "https://post-example.com", - "urlType": "user", - "name": "Platform user Portal", - "id": 7, - "logo": { - "fileSize": null, - "mimeType": null, - "baseName": null - }, - "company": { - "id": 2 - } - }, - "matchingRules": { - "$.body.id": { - "match": "type" - } - } - } + "consumer": { + "name": "brand-consumer-WebPortals" }, - { - "description": "edit WebPortal", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/web_portals/3", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "167", - "content-type": "application/json" - }, - "body": { - "urlType": "user", - "name": "renamed user Portal", - "color": "#000000", - "company": 2, - "url": "https://post-example.com", - "logo": { - "fileSize": null, - "mimeType": null, - "baseName": null - } - }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + "provider": { + "name": "brand-provider-WebPortals" + }, + "interactions": [ + { + "description": "add WebPortal", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/web_portals", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "121", + "content-type": "application/json" + }, + "body": { + "urlType": "user", + "name": "Platform user Portal", + "color": "#000000", + "company": 2, + "url": "https://post-example.com", + "logo": "" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "url": "https://post-example.com", + "urlType": "user", + "name": "Platform user Portal", + "id": 7, + "logo": { + "fileSize": null, + "mimeType": null, + "baseName": null + }, + "company": { + "id": 2 + } + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } }, - "body": { - "url": "https://post-example.com", - "urlType": "user", - "name": "Platform user Portal", - "id": 7, - "logo": { - "fileSize": null, - "mimeType": null, - "baseName": null - }, - "company": { - "id": 2 - } + { + "description": "edit WebPortal", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/web_portals/3", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "167", + "content-type": "application/json" + }, + "body": { + "urlType": "user", + "name": "renamed user Portal", + "color": "#000000", + "company": 2, + "url": "https://post-example.com", + "logo": { + "fileSize": null, + "mimeType": null, + "baseName": null + } + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "url": "https://post-example.com", + "urlType": "user", + "name": "Platform user Portal", + "id": 7, + "logo": { + "fileSize": null, + "mimeType": null, + "baseName": null + }, + "company": { + "id": 2 + } + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "matchingRules": { - "$.body.id": { - "match": "type" - } + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" } - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-login-brand-consumer-login.json b/web/portal/brand/cypress/pacts/brand-provider-login-brand-consumer-login.json index 9675110cba..e80cc9624c 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-login-brand-consumer-login.json +++ b/web/portal/brand/cypress/pacts/brand-provider-login-brand-consumer-login.json @@ -1,85 +1,85 @@ { - "consumer": { - "name": "brand-consumer-login" - }, - "provider": { - "name": "brand-provider-login" - }, - "interactions": [ - { - "description": "logout and login fails with wrong password", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/admin_login", - "headers": { - "accept": "application/json, text/plain, */*", - "content-length": "38", - "content-type": "application/x-www-form-urlencoded" - }, - "body": "username=admin&password=wrong-password", - "query": "" - }, - "response": { - "status": 401, - "headers": { - "content-type": "application/json" - }, - "body": { - "code": 401, - "message": "Invalid credentials." - }, - "matchingRules": { - "$.body.code": { - "match": "type" - }, - "$.body.message": { - "match": "type" - } - } - } + "consumer": { + "name": "brand-consumer-login" }, - { - "description": "login", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/admin_login", - "headers": { - "accept": "application/json, text/plain, */*", - "content-length": "38", - "content-type": "application/x-www-form-urlencoded" - }, - "body": "username=irontec&password=ee4aeVie7AiH", - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json" + "provider": { + "name": "brand-provider-login" + }, + "interactions": [ + { + "description": "logout and login fails with wrong password", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/admin_login", + "headers": { + "accept": "application/json, text/plain, */*", + "content-length": "38", + "content-type": "application/x-www-form-urlencoded" + }, + "body": "username=admin&password=wrong-password", + "query": "" + }, + "response": { + "status": 401, + "headers": { + "content-type": "application/json" + }, + "body": { + "code": 401, + "message": "Invalid credentials." + }, + "matchingRules": { + "$.body.code": { + "match": "type" + }, + "$.body.message": { + "match": "type" + } + } + } }, - "body": { - "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MTk0MTc5NTEsImV4cCI6MTcxOTQyMTU1MSwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIiwiaWQiOjUsImlkZW4iOiJicmFuZCBbQWRtaW5pc3RyYXRvciM1XSJ9.jPsOn3hfZfqs_QbJuSI4HXzZXBPi4uduX95HWgIiDFA-xWz6enDLa6P3YS2aTsX4i9hkHZcYdf2FFv_TGvbkRpHkujifM6YQKXebpXlcmbmzotI-rEUvR_XsL9cZwlAYbdqz-YRTeBUQ3fbCy54WYWbrHB522Uluul7z7sqbE0lDz4Ui4xMvmCBS8CJDQxePM4lF00sh7NJP8TXderZj5kN_N046ThU_RAJPd7YpuxvWKg2bUzA4cwjsFIxJx-FadZVJJn-zQpK6b36iuohRym-BZrkTB-JhWZMT3uyeh5ZZPjHYYZaBe4S_1v_Vma2jTpWl4ZlAMHB-xy_ML4h_cZp2BceG0DDFZuKCE9JO0DCNnTzZY2naoJ4Sam-E00X3QPtoVoIcMCF1rs87UkgVVmrYubgAgHYl189UK0D4sy4sWRub5LGz_iyPi52jITCXWEzByP9DkoKHuYYihcBRq75AjVyNXXM0IJLxi1synOKf8yt5PR1CiyDVe4KlkDuABfVS3ejnk3eNUsKrrO7TM7j5bLeDN2m9yplr82WLaIHCN5eELDYyJgJFBhKdhNNNga0BTPeSr_LES1TyWES0l2R9Uo4du1Mb2qrBavVlg9LJUieoL-4JL4eBBIawt0CwRvjr7yEDMNG7o5-YE1O5wzqKYSqnzjtsuKVoSfjrawU", - "refresh_token": "refresh_token" + { + "description": "login", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/admin_login", + "headers": { + "accept": "application/json, text/plain, */*", + "content-length": "38", + "content-type": "application/x-www-form-urlencoded" + }, + "body": "username=irontec&password=ee4aeVie7AiH", + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json" + }, + "body": { + "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE3MTk0MTc5NTEsImV4cCI6MTcxOTQyMTU1MSwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIiwiaWQiOjUsImlkZW4iOiJicmFuZCBbQWRtaW5pc3RyYXRvciM1XSJ9.jPsOn3hfZfqs_QbJuSI4HXzZXBPi4uduX95HWgIiDFA-xWz6enDLa6P3YS2aTsX4i9hkHZcYdf2FFv_TGvbkRpHkujifM6YQKXebpXlcmbmzotI-rEUvR_XsL9cZwlAYbdqz-YRTeBUQ3fbCy54WYWbrHB522Uluul7z7sqbE0lDz4Ui4xMvmCBS8CJDQxePM4lF00sh7NJP8TXderZj5kN_N046ThU_RAJPd7YpuxvWKg2bUzA4cwjsFIxJx-FadZVJJn-zQpK6b36iuohRym-BZrkTB-JhWZMT3uyeh5ZZPjHYYZaBe4S_1v_Vma2jTpWl4ZlAMHB-xy_ML4h_cZp2BceG0DDFZuKCE9JO0DCNnTzZY2naoJ4Sam-E00X3QPtoVoIcMCF1rs87UkgVVmrYubgAgHYl189UK0D4sy4sWRub5LGz_iyPi52jITCXWEzByP9DkoKHuYYihcBRq75AjVyNXXM0IJLxi1synOKf8yt5PR1CiyDVe4KlkDuABfVS3ejnk3eNUsKrrO7TM7j5bLeDN2m9yplr82WLaIHCN5eELDYyJgJFBhKdhNNNga0BTPeSr_LES1TyWES0l2R9Uo4du1Mb2qrBavVlg9LJUieoL-4JL4eBBIawt0CwRvjr7yEDMNG7o5-YE1O5wzqKYSqnzjtsuKVoSfjrawU", + "refresh_token": "refresh_token" + }, + "matchingRules": { + "$.body.token": { + "match": "type" + }, + "$.body.refresh_token": { + "match": "type" + } + } + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "matchingRules": { - "$.body.token": { - "match": "type" - }, - "$.body.refresh_token": { - "match": "type" - } + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" } - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-residential-brand-consumer-residential.json b/web/portal/brand/cypress/pacts/brand-provider-residential-brand-consumer-residential.json index 6a32befc62..5c21ad3834 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-residential-brand-consumer-residential.json +++ b/web/portal/brand/cypress/pacts/brand-provider-residential-brand-consumer-residential.json @@ -1,213 +1,213 @@ { - "consumer": { - "name": "brand-consumer-residential" - }, - "provider": { - "name": "brand-provider-residential" - }, - "interactions": [ - { - "description": "add Residential Companies", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/companies", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "348", - "content-type": "application/json" - }, - "body": { - "type": "residential", - "maxCalls": 0, - "maxDailyUsage": 1000000, - "ipfilter": "1", - "billingMethod": "postpaid", - "language": 2, - "defaultTimezone": "1", - "country": 4, - "currency": null, - "outgoingDdi": null, - "applicationServerSet": 1, - "mediaRelaySet": 0, - "featureIds": [], - "geoIpAllowedCountries": [], - "name": "Residential Company", - "maxDailyUsageEmail": "", - "transformationRuleSet": 1 - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "type": "residential", - "name": "Residential Company", - "domainUsers": null, - "maxCalls": 0, - "maxDailyUsage": 1000000, - "currentDayUsage": 0, - "maxDailyUsageEmail": null, - "ipfilter": true, - "onDemandRecord": 0, - "allowRecordingRemoval": true, - "onDemandRecordCode": "", - "externallyextraopts": null, - "billingMethod": "postpaid", - "balance": 0, - "showInvoices": false, - "id": 4, - "invoicing": { - "nif": "12345679-Z", - "postalAddress": "", - "postalCode": "", - "town": "", - "province": "", - "countryName": "" - }, - "language": 2, - "defaultTimezone": 1, - "country": 4, - "currency": null, - "transformationRuleSet": 1, - "outgoingDdi": null, - "outgoingDdiRule": null, - "voicemailNotificationTemplate": 1, - "faxNotificationTemplate": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "accessCredentialNotificationTemplate": null, - "corporation": null, - "domainName": "retail.irontec.com", - "featureIds": [], - "geoIpAllowedCountries": [], - "routingTagIds": [], - "codecIds": [], - "applicationServerSet": 0, - "mediaRelaySet": 1 - }, - "matchingRules": { - "$.body.id": { - "match": "type" - } - } - } + "consumer": { + "name": "brand-consumer-residential" }, - { - "description": "edit Residential Companies", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/companies/4", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "692", - "content-type": "application/json" - }, - "body": { - "type": "residential", - "maxCalls": 0, - "maxDailyUsage": 1000000, - "ipfilter": "1", - "billingMethod": "postpaid", - "showInvoices": "0", - "language": 2, - "defaultTimezone": "1", - "country": 8, - "currency": null, - "outgoingDdi": null, - "voicemailNotificationTemplate": "1", - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "accessCredentialNotificationTemplate": null, - "applicationServerSet": 0, - "mediaRelaySet": 1, - "featureIds": [], - "geoIpAllowedCountries": [], - "invoicing": { - "nif": "12345679-Z", - "postalAddress": "", - "postalCode": "", - "town": "", - "province": "", - "countryName": "" - }, - "name": "Residential Company", - "maxDailyUsageEmail": "", - "externallyextraopts": "", - "transformationRuleSet": 3 + "provider": { + "name": "brand-provider-residential" + }, + "interactions": [ + { + "description": "add Residential Companies", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/companies", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "348", + "content-type": "application/json" + }, + "body": { + "type": "residential", + "maxCalls": 0, + "maxDailyUsage": 1000000, + "ipfilter": "1", + "billingMethod": "postpaid", + "language": 2, + "defaultTimezone": "1", + "country": 4, + "currency": null, + "outgoingDdi": null, + "applicationServerSet": 1, + "mediaRelaySet": 0, + "featureIds": [], + "geoIpAllowedCountries": [], + "name": "Residential Company", + "maxDailyUsageEmail": "", + "transformationRuleSet": 1 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "type": "residential", + "name": "Residential Company", + "domainUsers": null, + "maxCalls": 0, + "maxDailyUsage": 1000000, + "currentDayUsage": 0, + "maxDailyUsageEmail": null, + "ipfilter": true, + "onDemandRecord": 0, + "allowRecordingRemoval": true, + "onDemandRecordCode": "", + "externallyextraopts": null, + "billingMethod": "postpaid", + "balance": 0, + "showInvoices": false, + "id": 4, + "invoicing": { + "nif": "12345679-Z", + "postalAddress": "", + "postalCode": "", + "town": "", + "province": "", + "countryName": "" + }, + "language": 2, + "defaultTimezone": 1, + "country": 4, + "currency": null, + "transformationRuleSet": 1, + "outgoingDdi": null, + "outgoingDdiRule": null, + "voicemailNotificationTemplate": 1, + "faxNotificationTemplate": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "accessCredentialNotificationTemplate": null, + "corporation": null, + "domainName": "retail.irontec.com", + "featureIds": [], + "geoIpAllowedCountries": [], + "routingTagIds": [], + "codecIds": [], + "applicationServerSet": 0, + "mediaRelaySet": 1 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit Residential Companies", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/companies/4", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "692", + "content-type": "application/json" + }, + "body": { + "type": "residential", + "maxCalls": 0, + "maxDailyUsage": 1000000, + "ipfilter": "1", + "billingMethod": "postpaid", + "showInvoices": "0", + "language": 2, + "defaultTimezone": "1", + "country": 8, + "currency": null, + "outgoingDdi": null, + "voicemailNotificationTemplate": "1", + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "accessCredentialNotificationTemplate": null, + "applicationServerSet": 0, + "mediaRelaySet": 1, + "featureIds": [], + "geoIpAllowedCountries": [], + "invoicing": { + "nif": "12345679-Z", + "postalAddress": "", + "postalCode": "", + "town": "", + "province": "", + "countryName": "" + }, + "name": "Residential Company", + "maxDailyUsageEmail": "", + "externallyextraopts": "", + "transformationRuleSet": 3 + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "type": "residential", + "name": "Residential Company", + "domainUsers": null, + "maxCalls": 0, + "maxDailyUsage": 1000000, + "currentDayUsage": 0, + "maxDailyUsageEmail": null, + "ipfilter": true, + "onDemandRecord": 0, + "allowRecordingRemoval": true, + "onDemandRecordCode": "", + "externallyextraopts": null, + "billingMethod": "postpaid", + "balance": 0, + "showInvoices": false, + "id": 4, + "invoicing": { + "nif": "12345679-Z", + "postalAddress": "", + "postalCode": "", + "town": "", + "province": "", + "countryName": "" + }, + "language": 2, + "defaultTimezone": 1, + "country": 8, + "currency": null, + "transformationRuleSet": 3, + "outgoingDdi": null, + "outgoingDdiRule": null, + "voicemailNotificationTemplate": 1, + "faxNotificationTemplate": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "accessCredentialNotificationTemplate": null, + "corporation": null, + "domainName": "retail.irontec.com", + "featureIds": [], + "geoIpAllowedCountries": [], + "routingTagIds": [], + "codecIds": [], + "applicationServerSet": 0, + "mediaRelaySet": 1 + } + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": { - "type": "residential", - "name": "Residential Company", - "domainUsers": null, - "maxCalls": 0, - "maxDailyUsage": 1000000, - "currentDayUsage": 0, - "maxDailyUsageEmail": null, - "ipfilter": true, - "onDemandRecord": 0, - "allowRecordingRemoval": true, - "onDemandRecordCode": "", - "externallyextraopts": null, - "billingMethod": "postpaid", - "balance": 0, - "showInvoices": false, - "id": 4, - "invoicing": { - "nif": "12345679-Z", - "postalAddress": "", - "postalCode": "", - "town": "", - "province": "", - "countryName": "" - }, - "language": 2, - "defaultTimezone": 1, - "country": 8, - "currency": null, - "transformationRuleSet": 3, - "outgoingDdi": null, - "outgoingDdiRule": null, - "voicemailNotificationTemplate": 1, - "faxNotificationTemplate": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "accessCredentialNotificationTemplate": null, - "corporation": null, - "domainName": "retail.irontec.com", - "featureIds": [], - "geoIpAllowedCountries": [], - "routingTagIds": [], - "codecIds": [], - "applicationServerSet": 0, - "mediaRelaySet": 1 + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" } - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-residential-client-administrator-brand-consumer-residential-client-administrator.json b/web/portal/brand/cypress/pacts/brand-provider-residential-client-administrator-brand-consumer-residential-client-administrator.json index 97f183297b..7ab6c76216 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-residential-client-administrator-brand-consumer-residential-client-administrator.json +++ b/web/portal/brand/cypress/pacts/brand-provider-residential-client-administrator-brand-consumer-residential-client-administrator.json @@ -1,134 +1,134 @@ { - "consumer": { - "name": "brand-consumer-residential-client-administrator" - }, - "provider": { - "name": "brand-provider-residential-client-administrator" - }, - "interactions": [ - { - "description": "add Administrator", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/administrators", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "164", - "content-type": "application/json" - }, - "body": { - "pass": "changeme", - "email": "post-test@example.com", - "active": true, - "restricted": "0", - "company": 4, - "timezone": "8", - "username": "post-test", - "name": "post", - "lastname": "test" - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "username": "post-test", - "pass": "*****", - "email": "post-test@example.com", - "active": true, - "restricted": false, - "name": "post", - "lastname": "test", - "canImpersonate": true, - "id": 15, - "company": 1, - "timezone": 8 - }, - "matchingRules": { - "$.body.id": { - "match": "type" - } - } - } + "consumer": { + "name": "brand-consumer-residential-client-administrator" }, - { - "description": "edit Administrator", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/administrators/7", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "202", - "content-type": "application/json" - }, - "body": { - "pass": "1234", - "email": "modified@example.com", - "active": "0", - "restricted": "1", - "canImpersonate": true, - "company": 1, - "timezone": "8", - "username": "newUserName", - "name": "Updated admin name", - "lastname": "a lastname" + "provider": { + "name": "brand-provider-residential-client-administrator" + }, + "interactions": [ + { + "description": "add Administrator", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/administrators", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "164", + "content-type": "application/json" + }, + "body": { + "pass": "changeme", + "email": "post-test@example.com", + "active": true, + "restricted": "0", + "company": 4, + "timezone": "8", + "username": "post-test", + "name": "post", + "lastname": "test" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "post-test", + "pass": "*****", + "email": "post-test@example.com", + "active": true, + "restricted": false, + "name": "post", + "lastname": "test", + "canImpersonate": true, + "id": 15, + "company": 1, + "timezone": 8 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit Administrator", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/administrators/7", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "202", + "content-type": "application/json" + }, + "body": { + "pass": "1234", + "email": "modified@example.com", + "active": "0", + "restricted": "1", + "canImpersonate": true, + "company": 1, + "timezone": "8", + "username": "newUserName", + "name": "Updated admin name", + "lastname": "a lastname" + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "newUserName", + "pass": "*****", + "email": "modified@example.com", + "active": false, + "restricted": true, + "name": "Updated admin name", + "lastname": "a lastname", + "canImpersonate": true, + "id": 7, + "company": 1, + "timezone": 8 + } + } }, - "body": { - "username": "newUserName", - "pass": "*****", - "email": "modified@example.com", - "active": false, - "restricted": true, - "name": "Updated admin name", - "lastname": "a lastname", - "canImpersonate": true, - "id": 7, - "company": 1, - "timezone": 8 + { + "description": "delete Administrator", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/administrators/7", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } } - } - }, - { - "description": "delete Administrator", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/administrators/7", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 204, - "headers": {}, - "body": "" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-residential-client-rating-profiles-brand-consumer-residential-client-rating-profiles.json b/web/portal/brand/cypress/pacts/brand-provider-residential-client-rating-profiles-brand-consumer-residential-client-rating-profiles.json index 49c785cdef..6892992e13 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-residential-client-rating-profiles-brand-consumer-residential-client-rating-profiles.json +++ b/web/portal/brand/cypress/pacts/brand-provider-residential-client-rating-profiles-brand-consumer-residential-client-rating-profiles.json @@ -1,106 +1,106 @@ { - "consumer": { - "name": "brand-consumer-residential-client-rating-profiles" - }, - "provider": { - "name": "brand-provider-residential-client-rating-profiles" - }, - "interactions": [ - { - "description": "add RatingProfile", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/rating_profiles", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "74", - "content-type": "application/json" - }, - "body": { - "activationTime": "2018-03-03T10:00:00", - "company": 3, - "ratingPlanGroup": "1" - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "activationTime": "2018-03-03 10:00:00", - "id": 3, - "company": 1, - "carrier": null, - "ratingPlanGroup": 1, - "routingTag": null - } - } + "consumer": { + "name": "brand-consumer-residential-client-rating-profiles" }, - { - "description": "edit RatingProfile", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/rating_profiles/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "74", - "content-type": "application/json" - }, - "body": { - "activationTime": "2018-03-03T20:30:30", - "company": 1, - "ratingPlanGroup": "2" + "provider": { + "name": "brand-provider-residential-client-rating-profiles" + }, + "interactions": [ + { + "description": "add RatingProfile", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/rating_profiles", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "74", + "content-type": "application/json" + }, + "body": { + "activationTime": "2018-03-03T10:00:00", + "company": 3, + "ratingPlanGroup": "1" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "activationTime": "2018-03-03 10:00:00", + "id": 3, + "company": 1, + "carrier": null, + "ratingPlanGroup": 1, + "routingTag": null + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit RatingProfile", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/rating_profiles/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "74", + "content-type": "application/json" + }, + "body": { + "activationTime": "2018-03-03T20:30:30", + "company": 1, + "ratingPlanGroup": "2" + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "activationTime": "2018-03-03 20:30:30", + "id": 1, + "company": 3, + "carrier": null, + "ratingPlanGroup": 2, + "routingTag": 1 + } + } }, - "body": { - "activationTime": "2018-03-03 20:30:30", - "id": 1, - "company": 3, - "carrier": null, - "ratingPlanGroup": 2, - "routingTag": 1 + { + "description": "delete RatingProfile", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/rating_profiles/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } } - } - }, - { - "description": "delete RatingProfile", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/rating_profiles/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 204, - "headers": {}, - "body": "" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-residential-client-users-addresses-brand-consumer-residential-client-users-addresses.json b/web/portal/brand/cypress/pacts/brand-provider-residential-client-users-addresses-brand-consumer-residential-client-users-addresses.json index c9cc9bc87b..e9471ea9c2 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-residential-client-users-addresses-brand-consumer-residential-client-users-addresses.json +++ b/web/portal/brand/cypress/pacts/brand-provider-residential-client-users-addresses-brand-consumer-residential-client-users-addresses.json @@ -1,77 +1,77 @@ { - "consumer": { - "name": "brand-consumer-residential-client-users-addresses" - }, - "provider": { - "name": "brand-provider-residential-client-users-addresses" - }, - "interactions": [ - { - "description": "add UserAddress", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/users_addresses", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "62", - "content-type": "application/json" - }, - "body": { - "sourceAddress": "127.0.0.8", - "description": "Test", - "company": 3 - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" + "consumer": { + "name": "brand-consumer-residential-client-users-addresses" + }, + "provider": { + "name": "brand-provider-residential-client-users-addresses" + }, + "interactions": [ + { + "description": "add UserAddress", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/users_addresses", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "62", + "content-type": "application/json" + }, + "body": { + "sourceAddress": "127.0.0.8", + "description": "Test", + "company": 3 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "newUserName", + "pass": "*****", + "email": "modified@example.com", + "active": false, + "restricted": true, + "name": "Updated admin name", + "lastname": "a lastname", + "canImpersonate": true, + "id": 7, + "company": 1, + "timezone": 8 + } + } }, - "body": { - "username": "newUserName", - "pass": "*****", - "email": "modified@example.com", - "active": false, - "restricted": true, - "name": "Updated admin name", - "lastname": "a lastname", - "canImpersonate": true, - "id": 7, - "company": 1, - "timezone": 8 + { + "description": "delete UserAddress", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/users_addresses/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 200, + "headers": {}, + "body": "200" + } } - } - }, - { - "description": "delete UserAddress", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/users_addresses/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 200, - "headers": {}, - "body": "200" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-retail-brand-consumer-retail.json b/web/portal/brand/cypress/pacts/brand-provider-retail-brand-consumer-retail.json index b2a5c15151..3b32a29aa2 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-retail-brand-consumer-retail.json +++ b/web/portal/brand/cypress/pacts/brand-provider-retail-brand-consumer-retail.json @@ -1,223 +1,223 @@ { - "consumer": { - "name": "brand-consumer-retail" - }, - "provider": { - "name": "brand-provider-retail" - }, - "interactions": [ - { - "description": "add Retail Companies", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/companies", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "376", - "content-type": "application/json" - }, - "body": { - "type": "retail", - "maxCalls": 0, - "maxDailyUsage": 1000000, - "ipfilter": "1", - "billingMethod": "postpaid", - "language": 2, - "defaultTimezone": "8", - "country": 6, - "currency": null, - "outgoingDdi": null, - "applicationServerSet": 1, - "mediaRelaySet": 0, - "featureIds": [], - "geoIpAllowedCountries": [], - "routingTagIds": [], - "domainUsers": null, - "name": "Retail Company", - "maxDailyUsageEmail": "", - "transformationRuleSet": 1 - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "type": "retail", - "name": "Retail Company", - "domainUsers": null, - "maxCalls": 0, - "maxDailyUsage": 1000000, - "currentDayUsage": 0, - "maxDailyUsageEmail": null, - "ipfilter": true, - "onDemandRecord": 0, - "allowRecordingRemoval": true, - "onDemandRecordCode": "", - "externallyextraopts": null, - "billingMethod": "postpaid", - "balance": 0, - "showInvoices": true, - "id": 3, - "invoicing": { - "nif": "12345679-Z", - "postalAddress": "", - "postalCode": "", - "town": "", - "province": "", - "countryName": "" - }, - "language": 2, - "defaultTimezone": 8, - "country": 6, - "currency": null, - "transformationRuleSet": 1, - "outgoingDdi": null, - "outgoingDdiRule": null, - "voicemailNotificationTemplate": 1, - "faxNotificationTemplate": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "accessCredentialNotificationTemplate": null, - "corporation": null, - "domainName": "retail.irontec.com", - "featureIds": [], - "geoIpAllowedCountries": [], - "routingTagIds": [ - 1 - ], - "codecIds": [], - "applicationServerSet": 1, - "mediaRelaySet": 0 - }, - "matchingRules": { - "$.body.id": { - "match": "type" - } - } - } + "consumer": { + "name": "brand-consumer-retail" }, - { - "description": "edit Retail Companies", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/companies/3", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "699", - "content-type": "application/json" - }, - "body": { - "type": "retail", - "maxCalls": 0, - "maxDailyUsage": 1000000, - "ipfilter": "1", - "billingMethod": "postpaid", - "showInvoices": "1", - "language": 2, - "defaultTimezone": "8", - "country": 6, - "currency": null, - "outgoingDdi": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "accessCredentialNotificationTemplate": null, - "applicationServerSet": 0, - "mediaRelaySet": 1, - "featureIds": [], - "geoIpAllowedCountries": [], - "routingTagIds": [ - 1 - ], - "codecIds": [], - "invoicing": { - "nif": "12345679-Z", - "postalAddress": "", - "postalCode": "", - "town": "", - "province": "", - "countryName": "" - }, - "name": "Retail Company", - "domainUsers": null, - "maxDailyUsageEmail": "", - "externallyextraopts": "", - "transformationRuleSet": 3 + "provider": { + "name": "brand-provider-retail" + }, + "interactions": [ + { + "description": "add Retail Companies", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/companies", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "376", + "content-type": "application/json" + }, + "body": { + "type": "retail", + "maxCalls": 0, + "maxDailyUsage": 1000000, + "ipfilter": "1", + "billingMethod": "postpaid", + "language": 2, + "defaultTimezone": "8", + "country": 6, + "currency": null, + "outgoingDdi": null, + "applicationServerSet": 1, + "mediaRelaySet": 0, + "featureIds": [], + "geoIpAllowedCountries": [], + "routingTagIds": [], + "domainUsers": null, + "name": "Retail Company", + "maxDailyUsageEmail": "", + "transformationRuleSet": 1 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "type": "retail", + "name": "Retail Company", + "domainUsers": null, + "maxCalls": 0, + "maxDailyUsage": 1000000, + "currentDayUsage": 0, + "maxDailyUsageEmail": null, + "ipfilter": true, + "onDemandRecord": 0, + "allowRecordingRemoval": true, + "onDemandRecordCode": "", + "externallyextraopts": null, + "billingMethod": "postpaid", + "balance": 0, + "showInvoices": true, + "id": 3, + "invoicing": { + "nif": "12345679-Z", + "postalAddress": "", + "postalCode": "", + "town": "", + "province": "", + "countryName": "" + }, + "language": 2, + "defaultTimezone": 8, + "country": 6, + "currency": null, + "transformationRuleSet": 1, + "outgoingDdi": null, + "outgoingDdiRule": null, + "voicemailNotificationTemplate": 1, + "faxNotificationTemplate": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "accessCredentialNotificationTemplate": null, + "corporation": null, + "domainName": "retail.irontec.com", + "featureIds": [], + "geoIpAllowedCountries": [], + "routingTagIds": [ + 1 + ], + "codecIds": [], + "applicationServerSet": 1, + "mediaRelaySet": 0 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit Retail Companies", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/companies/3", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "699", + "content-type": "application/json" + }, + "body": { + "type": "retail", + "maxCalls": 0, + "maxDailyUsage": 1000000, + "ipfilter": "1", + "billingMethod": "postpaid", + "showInvoices": "1", + "language": 2, + "defaultTimezone": "8", + "country": 6, + "currency": null, + "outgoingDdi": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "accessCredentialNotificationTemplate": null, + "applicationServerSet": 0, + "mediaRelaySet": 1, + "featureIds": [], + "geoIpAllowedCountries": [], + "routingTagIds": [ + 1 + ], + "codecIds": [], + "invoicing": { + "nif": "12345679-Z", + "postalAddress": "", + "postalCode": "", + "town": "", + "province": "", + "countryName": "" + }, + "name": "Retail Company", + "domainUsers": null, + "maxDailyUsageEmail": "", + "externallyextraopts": "", + "transformationRuleSet": 3 + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "type": "retail", + "name": "Retail Company", + "domainUsers": null, + "maxCalls": 0, + "maxDailyUsage": 1000000, + "currentDayUsage": 0, + "maxDailyUsageEmail": null, + "ipfilter": true, + "onDemandRecord": 0, + "allowRecordingRemoval": true, + "onDemandRecordCode": "", + "externallyextraopts": null, + "billingMethod": "postpaid", + "balance": 0, + "showInvoices": true, + "id": 3, + "invoicing": { + "nif": "12345679-Z", + "postalAddress": "", + "postalCode": "", + "town": "", + "province": "", + "countryName": "" + }, + "language": 2, + "defaultTimezone": 8, + "country": 6, + "currency": null, + "transformationRuleSet": 3, + "outgoingDdi": null, + "outgoingDdiRule": null, + "voicemailNotificationTemplate": 1, + "faxNotificationTemplate": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "accessCredentialNotificationTemplate": null, + "corporation": null, + "domainName": "retail.irontec.com", + "featureIds": [], + "geoIpAllowedCountries": [], + "routingTagIds": [ + 1 + ], + "codecIds": [], + "applicationServerSet": 0, + "mediaRelaySet": 1 + } + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": { - "type": "retail", - "name": "Retail Company", - "domainUsers": null, - "maxCalls": 0, - "maxDailyUsage": 1000000, - "currentDayUsage": 0, - "maxDailyUsageEmail": null, - "ipfilter": true, - "onDemandRecord": 0, - "allowRecordingRemoval": true, - "onDemandRecordCode": "", - "externallyextraopts": null, - "billingMethod": "postpaid", - "balance": 0, - "showInvoices": true, - "id": 3, - "invoicing": { - "nif": "12345679-Z", - "postalAddress": "", - "postalCode": "", - "town": "", - "province": "", - "countryName": "" - }, - "language": 2, - "defaultTimezone": 8, - "country": 6, - "currency": null, - "transformationRuleSet": 3, - "outgoingDdi": null, - "outgoingDdiRule": null, - "voicemailNotificationTemplate": 1, - "faxNotificationTemplate": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "accessCredentialNotificationTemplate": null, - "corporation": null, - "domainName": "retail.irontec.com", - "featureIds": [], - "geoIpAllowedCountries": [], - "routingTagIds": [ - 1 - ], - "codecIds": [], - "applicationServerSet": 0, - "mediaRelaySet": 1 + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" } - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-retail-client-administrator-brand-consumer-retail-client-administrator.json b/web/portal/brand/cypress/pacts/brand-provider-retail-client-administrator-brand-consumer-retail-client-administrator.json index 6db80ad16a..5df51de54b 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-retail-client-administrator-brand-consumer-retail-client-administrator.json +++ b/web/portal/brand/cypress/pacts/brand-provider-retail-client-administrator-brand-consumer-retail-client-administrator.json @@ -1,134 +1,134 @@ { - "consumer": { - "name": "brand-consumer-retail-client-administrator" - }, - "provider": { - "name": "brand-provider-retail-client-administrator" - }, - "interactions": [ - { - "description": "add Administrator", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/administrators", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "164", - "content-type": "application/json" - }, - "body": { - "pass": "changeme", - "email": "post-test@example.com", - "active": true, - "restricted": "0", - "company": 3, - "timezone": "8", - "username": "post-test", - "name": "post", - "lastname": "test" - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "username": "post-test", - "pass": "*****", - "email": "post-test@example.com", - "active": true, - "restricted": false, - "name": "post", - "lastname": "test", - "canImpersonate": true, - "id": 15, - "company": 1, - "timezone": 8 - }, - "matchingRules": { - "$.body.id": { - "match": "type" - } - } - } + "consumer": { + "name": "brand-consumer-retail-client-administrator" }, - { - "description": "edit Administrator", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/administrators/7", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "202", - "content-type": "application/json" - }, - "body": { - "pass": "1234", - "email": "modified@example.com", - "active": "0", - "restricted": "1", - "canImpersonate": true, - "company": 1, - "timezone": "8", - "username": "newUserName", - "name": "Updated admin name", - "lastname": "a lastname" + "provider": { + "name": "brand-provider-retail-client-administrator" + }, + "interactions": [ + { + "description": "add Administrator", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/administrators", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "164", + "content-type": "application/json" + }, + "body": { + "pass": "changeme", + "email": "post-test@example.com", + "active": true, + "restricted": "0", + "company": 3, + "timezone": "8", + "username": "post-test", + "name": "post", + "lastname": "test" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "post-test", + "pass": "*****", + "email": "post-test@example.com", + "active": true, + "restricted": false, + "name": "post", + "lastname": "test", + "canImpersonate": true, + "id": 15, + "company": 1, + "timezone": 8 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit Administrator", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/administrators/7", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "202", + "content-type": "application/json" + }, + "body": { + "pass": "1234", + "email": "modified@example.com", + "active": "0", + "restricted": "1", + "canImpersonate": true, + "company": 1, + "timezone": "8", + "username": "newUserName", + "name": "Updated admin name", + "lastname": "a lastname" + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "newUserName", + "pass": "*****", + "email": "modified@example.com", + "active": false, + "restricted": true, + "name": "Updated admin name", + "lastname": "a lastname", + "canImpersonate": true, + "id": 7, + "company": 1, + "timezone": 8 + } + } }, - "body": { - "username": "newUserName", - "pass": "*****", - "email": "modified@example.com", - "active": false, - "restricted": true, - "name": "Updated admin name", - "lastname": "a lastname", - "canImpersonate": true, - "id": 7, - "company": 1, - "timezone": 8 + { + "description": "delete Administrator", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/administrators/7", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } } - } - }, - { - "description": "delete Administrator", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/administrators/7", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 204, - "headers": {}, - "body": "" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-retail-client-users-addresses-brand-consumer-retail-client-users-addresses.json b/web/portal/brand/cypress/pacts/brand-provider-retail-client-users-addresses-brand-consumer-retail-client-users-addresses.json index 414ba2a1ad..df6b2d6a83 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-retail-client-users-addresses-brand-consumer-retail-client-users-addresses.json +++ b/web/portal/brand/cypress/pacts/brand-provider-retail-client-users-addresses-brand-consumer-retail-client-users-addresses.json @@ -1,104 +1,104 @@ { - "consumer": { - "name": "brand-consumer-retail-client-users-addresses" - }, - "provider": { - "name": "brand-provider-retail-client-users-addresses" - }, - "interactions": [ - { - "description": "add UsersAddress", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/users_addresses", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "62", - "content-type": "application/json" - }, - "body": { - "sourceAddress": "127.0.0.8", - "description": "Test", - "company": 3 - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "username": "newUserName", - "pass": "*****", - "email": "modified@example.com", - "active": false, - "restricted": true, - "name": "Updated admin name", - "lastname": "a lastname", - "canImpersonate": true, - "id": 7, - "company": 1, - "timezone": 8 - } - } + "consumer": { + "name": "brand-consumer-retail-client-users-addresses" }, - { - "description": "update UsersAddress", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/users_addresses/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "70", - "content-type": "application/json" - }, - "body": { - "sourceAddress": "127.0.0.7", - "description": "Updated Test", - "company": 1 + "provider": { + "name": "brand-provider-retail-client-users-addresses" + }, + "interactions": [ + { + "description": "add UsersAddress", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/users_addresses", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "62", + "content-type": "application/json" + }, + "body": { + "sourceAddress": "127.0.0.8", + "description": "Test", + "company": 3 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "newUserName", + "pass": "*****", + "email": "modified@example.com", + "active": false, + "restricted": true, + "name": "Updated admin name", + "lastname": "a lastname", + "canImpersonate": true, + "id": 7, + "company": 1, + "timezone": 8 + } + } }, - "query": "" - }, - "response": { - "status": 204, - "headers": { - "content-type": "application/json" + { + "description": "update UsersAddress", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/users_addresses/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "70", + "content-type": "application/json" + }, + "body": { + "sourceAddress": "127.0.0.7", + "description": "Updated Test", + "company": 1 + }, + "query": "" + }, + "response": { + "status": 204, + "headers": { + "content-type": "application/json" + }, + "body": "" + } }, - "body": "" - } - }, - { - "description": "delete UsersAddress", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/users_addresses/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + { + "description": "delete UsersAddress", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/users_addresses/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 200, + "headers": {}, + "body": "200" + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 200, - "headers": {}, - "body": "200" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-retails-client-rating-profiles-brand-consumer-retails-client-rating-profiles.json b/web/portal/brand/cypress/pacts/brand-provider-retails-client-rating-profiles-brand-consumer-retails-client-rating-profiles.json index bdcf3fd126..a6710870b0 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-retails-client-rating-profiles-brand-consumer-retails-client-rating-profiles.json +++ b/web/portal/brand/cypress/pacts/brand-provider-retails-client-rating-profiles-brand-consumer-retails-client-rating-profiles.json @@ -1,106 +1,106 @@ { - "consumer": { - "name": "brand-consumer-retails-client-rating-profiles" - }, - "provider": { - "name": "brand-provider-retails-client-rating-profiles" - }, - "interactions": [ - { - "description": "add RatingProfile", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/rating_profiles", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "74", - "content-type": "application/json" - }, - "body": { - "activationTime": "2018-03-03T10:00:00", - "company": 3, - "ratingPlanGroup": "1" - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "activationTime": "2018-03-03 10:00:00", - "id": 3, - "company": 1, - "carrier": null, - "ratingPlanGroup": 1, - "routingTag": null - } - } + "consumer": { + "name": "brand-consumer-retails-client-rating-profiles" }, - { - "description": "edit RatingProfile", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/rating_profiles/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "74", - "content-type": "application/json" - }, - "body": { - "activationTime": "2018-03-03T20:30:30", - "company": 1, - "ratingPlanGroup": "2" + "provider": { + "name": "brand-provider-retails-client-rating-profiles" + }, + "interactions": [ + { + "description": "add RatingProfile", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/rating_profiles", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "74", + "content-type": "application/json" + }, + "body": { + "activationTime": "2018-03-03T10:00:00", + "company": 3, + "ratingPlanGroup": "1" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "activationTime": "2018-03-03 10:00:00", + "id": 3, + "company": 1, + "carrier": null, + "ratingPlanGroup": 1, + "routingTag": null + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit RatingProfile", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/rating_profiles/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "74", + "content-type": "application/json" + }, + "body": { + "activationTime": "2018-03-03T20:30:30", + "company": 1, + "ratingPlanGroup": "2" + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "activationTime": "2018-03-03 20:30:30", + "id": 1, + "company": 3, + "carrier": null, + "ratingPlanGroup": 2, + "routingTag": 1 + } + } }, - "body": { - "activationTime": "2018-03-03 20:30:30", - "id": 1, - "company": 3, - "carrier": null, - "ratingPlanGroup": 2, - "routingTag": 1 + { + "description": "delete RatingProfile", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/rating_profiles/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } } - } - }, - { - "description": "delete RatingProfile", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/rating_profiles/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 204, - "headers": {}, - "body": "" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-vpbx-brand-consumer-vpbx.json b/web/portal/brand/cypress/pacts/brand-provider-vpbx-brand-consumer-vpbx.json index 4419d05c1f..b63741e45e 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-vpbx-brand-consumer-vpbx.json +++ b/web/portal/brand/cypress/pacts/brand-provider-vpbx-brand-consumer-vpbx.json @@ -1,292 +1,292 @@ { - "consumer": { - "name": "brand-consumer-vpbx" - }, - "provider": { - "name": "brand-provider-vpbx" - }, - "interactions": [ - { - "description": "Impersonate enabled", - "providerState": "", - "request": { - "method": "GET", - "path": "/api/brand/web_portals", - "headers": { - "accept": "application/json", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" - }, - "body": "", - "query": "_order%5Bid%5D=ASC&urlType=admin&_pagination=false" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json", - "x-first-page": "/api/brand/web_portals?_page=1", - "x-last-page": "/api/brand/web_portals?_page=1", - "x-next-page": "/api/brand/web_portals?_page=1", - "x-total-items": "3", - "x-total-pages": "1" - }, - "body": [ - { - "url": "https://client-ivozprovider.irontec.com", - "urlType": "admin", - "name": "Irontec Ivozprovider Client Admin Portal", - "id": 3, - "logo": { - "fileSize": 10, - "mimeType": "image/jpeg", - "baseName": "client-logo.jpeg" - }, - "company": null - }, - { - "url": "https://users-ivozprovider.irontec.com", - "urlType": "user", - "name": "Irontec Ivozprovider User Admin Portal", - "id": 4, - "logo": { - "fileSize": 10, - "mimeType": "image/jpeg", - "baseName": "user-logo.jpeg" - }, - "company": null - }, - { - "url": "https://users2-ivozprovider.irontec.com", - "urlType": "user", - "name": "Irontec Ivozprovider User Admin Portal", - "id": 6, - "logo": { - "fileSize": 10, - "mimeType": "image/jpeg", - "baseName": "user-logo.jpeg" - }, - "company": 1 - } - ] - } + "consumer": { + "name": "brand-consumer-vpbx" }, - { - "description": "add Virtual Pbx Companies", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/companies", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "361", - "content-type": "application/json" - }, - "body": { - "type": "vpbx", - "maxCalls": 0, - "maxDailyUsage": 100, - "ipfilter": "1", - "billingMethod": "postpaid", - "language": 2, - "defaultTimezone": "1", - "country": 1, - "currency": null, - "corporation": null, - "applicationServerSet": 0, - "mediaRelaySet": 0, - "featureIds": [], - "geoIpAllowedCountries": [], - "name": "API company", - "domainUsers": "api.irontec.com", - "maxDailyUsageEmail": "", - "transformationRuleSet": 1 - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "type": "vpbx", - "name": "API company", - "domainUsers": "api.irontec.com", - "invoicing": { - "nif": "1234", - "postalAddress": "abc", - "postalCode": "4848", - "town": "Usansolocity", - "province": "some", - "countryName": "country" - }, - "maxCalls": 0, - "maxDailyUsage": 100, - "currentDayUsage": 0, - "maxDailyUsageEmail": null, - "ipfilter": true, - "onDemandRecord": 0, - "allowRecordingRemoval": true, - "onDemandRecordCode": "", - "externallyextraopts": "", - "billingMethod": "postpaid", - "balance": 0, - "showInvoices": false, - "id": 6, - "language": 1, - "defaultTimezone": 1, - "country": 1, - "currency": null, - "transformationRuleSet": 1, - "outgoingDdi": 1, - "outgoingDdiRule": 1, - "voicemailNotificationTemplate": 1, - "faxNotificationTemplate": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "featureIds": [ - 1 - ], - "geoIpAllowedCountries": [ - 1 - ], - "routingTagIds": [], - "codecIds": [], - "applicationServerSet": 0, - "mediaRelaySet": 0 - }, - "matchingRules": { - "$.body.id": { - "match": "type" - } - } - } + "provider": { + "name": "brand-provider-vpbx" }, - { - "description": "edit Virtual Pbx Companies", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/companies/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "884", - "content-type": "application/json" + "interactions": [ + { + "description": "Impersonate enabled", + "providerState": "", + "request": { + "method": "GET", + "path": "/api/brand/web_portals", + "headers": { + "accept": "application/json", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "_order%5Bid%5D=ASC&urlType=admin&_pagination=false" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json", + "x-first-page": "/api/brand/web_portals?_page=1", + "x-last-page": "/api/brand/web_portals?_page=1", + "x-next-page": "/api/brand/web_portals?_page=1", + "x-total-items": "3", + "x-total-pages": "1" + }, + "body": [ + { + "url": "https://client-ivozprovider.irontec.com", + "urlType": "admin", + "name": "Irontec Ivozprovider Client Admin Portal", + "id": 3, + "logo": { + "fileSize": 10, + "mimeType": "image/jpeg", + "baseName": "client-logo.jpeg" + }, + "company": null + }, + { + "url": "https://users-ivozprovider.irontec.com", + "urlType": "user", + "name": "Irontec Ivozprovider User Admin Portal", + "id": 4, + "logo": { + "fileSize": 10, + "mimeType": "image/jpeg", + "baseName": "user-logo.jpeg" + }, + "company": null + }, + { + "url": "https://users2-ivozprovider.irontec.com", + "urlType": "user", + "name": "Irontec Ivozprovider User Admin Portal", + "id": 6, + "logo": { + "fileSize": 10, + "mimeType": "image/jpeg", + "baseName": "user-logo.jpeg" + }, + "company": 1 + } + ] + } }, - "body": { - "type": "vpbx", - "maxCalls": 0, - "maxDailyUsage": 100, - "ipfilter": "0", - "onDemandRecord": 0, - "allowRecordingRemoval": true, - "billingMethod": "prepaid", - "showInvoices": true, - "language": 2, - "defaultTimezone": "1", - "country": 30, - "currency": null, - "outgoingDdi": null, - "outgoingDdiRule": null, - "voicemailNotificationTemplate": "1", - "faxNotificationTemplate": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": 2, - "accessCredentialNotificationTemplate": 1, - "corporation": 1, - "applicationServerSet": 1, - "mediaRelaySet": 0, - "featureIds": [ - 1, - 2, - 3, - 4, - 5 - ], - "invoicing": { - "nif": "12345678A", - "postalAddress": "Company Address", - "postalCode": "54321", - "town": "Company Town", - "province": "Company Province", - "countryName": "Company Country" - }, - "name": "DemoCompany", - "domainUsers": "127.0.0.1", - "maxDailyUsageEmail": "no-replay-updated@domain.net", - "externallyextraopts": "", - "transformationRuleSet": 3 + { + "description": "add Virtual Pbx Companies", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/companies", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "361", + "content-type": "application/json" + }, + "body": { + "type": "vpbx", + "maxCalls": 0, + "maxDailyUsage": 100, + "ipfilter": "1", + "billingMethod": "postpaid", + "language": 2, + "defaultTimezone": "1", + "country": 1, + "currency": null, + "corporation": null, + "applicationServerSet": 0, + "mediaRelaySet": 0, + "featureIds": [], + "geoIpAllowedCountries": [], + "name": "API company", + "domainUsers": "api.irontec.com", + "maxDailyUsageEmail": "", + "transformationRuleSet": 1 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "type": "vpbx", + "name": "API company", + "domainUsers": "api.irontec.com", + "invoicing": { + "nif": "1234", + "postalAddress": "abc", + "postalCode": "4848", + "town": "Usansolocity", + "province": "some", + "countryName": "country" + }, + "maxCalls": 0, + "maxDailyUsage": 100, + "currentDayUsage": 0, + "maxDailyUsageEmail": null, + "ipfilter": true, + "onDemandRecord": 0, + "allowRecordingRemoval": true, + "onDemandRecordCode": "", + "externallyextraopts": "", + "billingMethod": "postpaid", + "balance": 0, + "showInvoices": false, + "id": 6, + "language": 1, + "defaultTimezone": 1, + "country": 1, + "currency": null, + "transformationRuleSet": 1, + "outgoingDdi": 1, + "outgoingDdiRule": 1, + "voicemailNotificationTemplate": 1, + "faxNotificationTemplate": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "featureIds": [ + 1 + ], + "geoIpAllowedCountries": [ + 1 + ], + "routingTagIds": [], + "codecIds": [], + "applicationServerSet": 0, + "mediaRelaySet": 0 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit Virtual Pbx Companies", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/companies/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "884", + "content-type": "application/json" + }, + "body": { + "type": "vpbx", + "maxCalls": 0, + "maxDailyUsage": 100, + "ipfilter": "0", + "onDemandRecord": 0, + "allowRecordingRemoval": true, + "billingMethod": "prepaid", + "showInvoices": true, + "language": 2, + "defaultTimezone": "1", + "country": 30, + "currency": null, + "outgoingDdi": null, + "outgoingDdiRule": null, + "voicemailNotificationTemplate": "1", + "faxNotificationTemplate": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": 2, + "accessCredentialNotificationTemplate": 1, + "corporation": 1, + "applicationServerSet": 1, + "mediaRelaySet": 0, + "featureIds": [ + 1, + 2, + 3, + 4, + 5 + ], + "invoicing": { + "nif": "12345678A", + "postalAddress": "Company Address", + "postalCode": "54321", + "town": "Company Town", + "province": "Company Province", + "countryName": "Company Country" + }, + "name": "DemoCompany", + "domainUsers": "127.0.0.1", + "maxDailyUsageEmail": "no-replay-updated@domain.net", + "externallyextraopts": "", + "transformationRuleSet": 3 + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "type": "vpbx", + "name": "DemoCompany", + "domainUsers": "127.0.0.1", + "maxCalls": 0, + "maxDailyUsage": 100, + "currentDayUsage": 1, + "maxDailyUsageEmail": "no-replay-updated@domain.net", + "ipfilter": false, + "onDemandRecord": 0, + "allowRecordingRemoval": true, + "onDemandRecordCode": "", + "externallyextraopts": "", + "billingMethod": "postpaid", + "balance": 1.2, + "showInvoices": false, + "id": 1, + "invoicing": { + "nif": "12345678B", + "postalAddress": "Company Address", + "postalCode": "54321", + "town": "Company Town", + "province": "Company Province", + "countryName": "Company Country" + }, + "language": 2, + "defaultTimezone": 1, + "country": 30, + "currency": null, + "transformationRuleSet": 3, + "outgoingDdi": null, + "outgoingDdiRule": null, + "voicemailNotificationTemplate": 1, + "faxNotificationTemplate": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": 2, + "accessCredentialNotificationTemplate": 1, + "corporation": 1, + "featureIds": [ + 3 + ], + "geoIpAllowedCountries": [ + 1 + ], + "routingTagIds": [], + "codecIds": [], + "applicationServerSet": 1, + "mediaRelaySet": 0 + } + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": { - "type": "vpbx", - "name": "DemoCompany", - "domainUsers": "127.0.0.1", - "maxCalls": 0, - "maxDailyUsage": 100, - "currentDayUsage": 1, - "maxDailyUsageEmail": "no-replay-updated@domain.net", - "ipfilter": false, - "onDemandRecord": 0, - "allowRecordingRemoval": true, - "onDemandRecordCode": "", - "externallyextraopts": "", - "billingMethod": "postpaid", - "balance": 1.2, - "showInvoices": false, - "id": 1, - "invoicing": { - "nif": "12345678B", - "postalAddress": "Company Address", - "postalCode": "54321", - "town": "Company Town", - "province": "Company Province", - "countryName": "Company Country" - }, - "language": 2, - "defaultTimezone": 1, - "country": 30, - "currency": null, - "transformationRuleSet": 3, - "outgoingDdi": null, - "outgoingDdiRule": null, - "voicemailNotificationTemplate": 1, - "faxNotificationTemplate": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": 2, - "accessCredentialNotificationTemplate": 1, - "corporation": 1, - "featureIds": [ - 3 - ], - "geoIpAllowedCountries": [ - 1 - ], - "routingTagIds": [], - "codecIds": [], - "applicationServerSet": 1, - "mediaRelaySet": 0 + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" } - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-administrator-brand-consumer-vpbx-client-administrator.json b/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-administrator-brand-consumer-vpbx-client-administrator.json index 1ee959410c..7a8090bbb6 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-administrator-brand-consumer-vpbx-client-administrator.json +++ b/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-administrator-brand-consumer-vpbx-client-administrator.json @@ -1,134 +1,134 @@ { - "consumer": { - "name": "brand-consumer-vpbx-client-administrator" - }, - "provider": { - "name": "brand-provider-vpbx-client-administrator" - }, - "interactions": [ - { - "description": "add Administrator", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/administrators", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "164", - "content-type": "application/json" - }, - "body": { - "pass": "changeme", - "email": "post-test@example.com", - "active": true, - "restricted": "0", - "company": 1, - "timezone": "8", - "username": "post-test", - "name": "post", - "lastname": "test" - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "username": "post-test", - "pass": "*****", - "email": "post-test@example.com", - "active": true, - "restricted": false, - "name": "post", - "lastname": "test", - "canImpersonate": true, - "id": 15, - "company": 1, - "timezone": 8 - }, - "matchingRules": { - "$.body.id": { - "match": "type" - } - } - } + "consumer": { + "name": "brand-consumer-vpbx-client-administrator" }, - { - "description": "edit Administrator", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/administrators/7", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "202", - "content-type": "application/json" - }, - "body": { - "pass": "1234", - "email": "modified@example.com", - "active": "0", - "restricted": "1", - "canImpersonate": true, - "company": 1, - "timezone": "8", - "username": "newUserName", - "name": "Updated admin name", - "lastname": "a lastname" + "provider": { + "name": "brand-provider-vpbx-client-administrator" + }, + "interactions": [ + { + "description": "add Administrator", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/administrators", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "164", + "content-type": "application/json" + }, + "body": { + "pass": "changeme", + "email": "post-test@example.com", + "active": true, + "restricted": "0", + "company": 1, + "timezone": "8", + "username": "post-test", + "name": "post", + "lastname": "test" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "post-test", + "pass": "*****", + "email": "post-test@example.com", + "active": true, + "restricted": false, + "name": "post", + "lastname": "test", + "canImpersonate": true, + "id": 15, + "company": 1, + "timezone": 8 + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit Administrator", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/administrators/7", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "202", + "content-type": "application/json" + }, + "body": { + "pass": "1234", + "email": "modified@example.com", + "active": "0", + "restricted": "1", + "canImpersonate": true, + "company": 1, + "timezone": "8", + "username": "newUserName", + "name": "Updated admin name", + "lastname": "a lastname" + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "newUserName", + "pass": "*****", + "email": "modified@example.com", + "active": false, + "restricted": true, + "name": "Updated admin name", + "lastname": "a lastname", + "canImpersonate": true, + "id": 7, + "company": 1, + "timezone": 8 + } + } }, - "body": { - "username": "newUserName", - "pass": "*****", - "email": "modified@example.com", - "active": false, - "restricted": true, - "name": "Updated admin name", - "lastname": "a lastname", - "canImpersonate": true, - "id": 7, - "company": 1, - "timezone": 8 + { + "description": "delete Administrator", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/administrators/7", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } } - } - }, - { - "description": "delete Administrator", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/administrators/7", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 204, - "headers": {}, - "body": "" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-rating-profiles-brand-consumer-vpbx-client-rating-profiles.json b/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-rating-profiles-brand-consumer-vpbx-client-rating-profiles.json index 3535e803ee..080f98c0f5 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-rating-profiles-brand-consumer-vpbx-client-rating-profiles.json +++ b/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-rating-profiles-brand-consumer-vpbx-client-rating-profiles.json @@ -1,106 +1,106 @@ { - "consumer": { - "name": "brand-consumer-vpbx-client-rating-profiles" - }, - "provider": { - "name": "brand-provider-vpbx-client-rating-profiles" - }, - "interactions": [ - { - "description": "add RatingProfile", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/rating_profiles", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "74", - "content-type": "application/json" - }, - "body": { - "activationTime": "2018-03-03T10:00:00", - "company": 3, - "ratingPlanGroup": "1" - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "activationTime": "2018-03-03 10:00:00", - "id": 3, - "company": 1, - "carrier": null, - "ratingPlanGroup": 1, - "routingTag": null - } - } + "consumer": { + "name": "brand-consumer-vpbx-client-rating-profiles" }, - { - "description": "edit RatingProfile", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/rating_profiles/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "74", - "content-type": "application/json" - }, - "body": { - "activationTime": "2018-03-03T20:30:30", - "company": 1, - "ratingPlanGroup": "2" + "provider": { + "name": "brand-provider-vpbx-client-rating-profiles" + }, + "interactions": [ + { + "description": "add RatingProfile", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/rating_profiles", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "74", + "content-type": "application/json" + }, + "body": { + "activationTime": "2018-03-03T10:00:00", + "company": 3, + "ratingPlanGroup": "1" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "activationTime": "2018-03-03 10:00:00", + "id": 3, + "company": 1, + "carrier": null, + "ratingPlanGroup": 1, + "routingTag": null + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit RatingProfile", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/rating_profiles/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "74", + "content-type": "application/json" + }, + "body": { + "activationTime": "2018-03-03T20:30:30", + "company": 1, + "ratingPlanGroup": "2" + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "activationTime": "2018-03-03 20:30:30", + "id": 1, + "company": 3, + "carrier": null, + "ratingPlanGroup": 2, + "routingTag": 1 + } + } }, - "body": { - "activationTime": "2018-03-03 20:30:30", - "id": 1, - "company": 3, - "carrier": null, - "ratingPlanGroup": 2, - "routingTag": 1 + { + "description": "delete RatingProfile", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/rating_profiles/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 204, + "headers": {}, + "body": "" + } } - } - }, - { - "description": "delete RatingProfile", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/rating_profiles/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 204, - "headers": {}, - "body": "" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-users-addresses-brand-consumer-vpbx-client-users-addresses.json b/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-users-addresses-brand-consumer-vpbx-client-users-addresses.json index de5828b5ba..f0054a993f 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-users-addresses-brand-consumer-vpbx-client-users-addresses.json +++ b/web/portal/brand/cypress/pacts/brand-provider-vpbx-client-users-addresses-brand-consumer-vpbx-client-users-addresses.json @@ -1,104 +1,104 @@ { - "consumer": { - "name": "brand-consumer-vpbx-client-users-addresses" - }, - "provider": { - "name": "brand-provider-vpbx-client-users-addresses" - }, - "interactions": [ - { - "description": "add UsersAddress", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/users_addresses", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "62", - "content-type": "application/json" - }, - "body": { - "sourceAddress": "127.0.0.8", - "description": "Test", - "company": 3 - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "username": "newUserName", - "pass": "*****", - "email": "modified@example.com", - "active": false, - "restricted": true, - "name": "Updated admin name", - "lastname": "a lastname", - "canImpersonate": true, - "id": 7, - "company": 1, - "timezone": 8 - } - } + "consumer": { + "name": "brand-consumer-vpbx-client-users-addresses" }, - { - "description": "edit UsersAddress", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/users_addresses/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "70", - "content-type": "application/json" - }, - "body": { - "sourceAddress": "127.0.0.7", - "description": "Updated Test", - "company": 1 + "provider": { + "name": "brand-provider-vpbx-client-users-addresses" + }, + "interactions": [ + { + "description": "add UsersAddress", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/users_addresses", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "62", + "content-type": "application/json" + }, + "body": { + "sourceAddress": "127.0.0.8", + "description": "Test", + "company": 3 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "username": "newUserName", + "pass": "*****", + "email": "modified@example.com", + "active": false, + "restricted": true, + "name": "Updated admin name", + "lastname": "a lastname", + "canImpersonate": true, + "id": 7, + "company": 1, + "timezone": 8 + } + } }, - "query": "" - }, - "response": { - "status": 204, - "headers": { - "content-type": "application/json" + { + "description": "edit UsersAddress", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/users_addresses/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "70", + "content-type": "application/json" + }, + "body": { + "sourceAddress": "127.0.0.7", + "description": "Updated Test", + "company": 1 + }, + "query": "" + }, + "response": { + "status": 204, + "headers": { + "content-type": "application/json" + }, + "body": "" + } }, - "body": "" - } - }, - { - "description": "delete UsersAddress", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/users_addresses/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + { + "description": "delete UsersAddress", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/users_addresses/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 200, + "headers": {}, + "body": "200" + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 200, - "headers": {}, - "body": "200" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-wholesale-brand-consumer-wholesale.json b/web/portal/brand/cypress/pacts/brand-provider-wholesale-brand-consumer-wholesale.json index 741d4621a7..5691b33048 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-wholesale-brand-consumer-wholesale.json +++ b/web/portal/brand/cypress/pacts/brand-provider-wholesale-brand-consumer-wholesale.json @@ -1,207 +1,207 @@ { - "consumer": { - "name": "brand-consumer-wholesale" - }, - "provider": { - "name": "brand-provider-wholesale" - }, - "interactions": [ - { - "description": "add Wholesale Companies", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/companies", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "297", - "content-type": "application/json" - }, - "body": { - "type": "wholesale", - "maxCalls": 0, - "maxDailyUsage": 1000000, - "billingMethod": "postpaid", - "language": 2, - "defaultTimezone": "1", - "country": 3, - "currency": null, - "applicationServerSet": 1, - "mediaRelaySet": 0, - "routingTagIds": [], - "domainUsers": null, - "name": "Wholesale", - "maxDailyUsageEmail": "", - "transformationRuleSet": 1 - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "type": "wholesale", - "name": "Wholesale", - "domainUsers": "wholesale.irontec.com", - "maxCalls": 0, - "maxDailyUsage": 1000000, - "currentDayUsage": 0, - "maxDailyUsageEmail": null, - "ipfilter": true, - "onDemandRecord": 0, - "allowRecordingRemoval": true, - "onDemandRecordCode": "", - "externallyextraopts": null, - "billingMethod": "postpaid", - "balance": 0, - "showInvoices": false, - "id": 5, - "invoicing": { - "nif": "12345689-Z", - "postalAddress": "", - "postalCode": "", - "town": "", - "province": "", - "countryName": "" - }, - "language": 1, - "defaultTimezone": 145, - "country": 68, - "currency": null, - "transformationRuleSet": 1, - "outgoingDdi": null, - "outgoingDdiRule": null, - "voicemailNotificationTemplate": 1, - "faxNotificationTemplate": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "accessCredentialNotificationTemplate": null, - "corporation": null, - "applicationServerSet": 1, - "mediaRelaySet": 0, - "featureIds": [], - "geoIpAllowedCountries": [], - "routingTagIds": [], - "codecIds": [] - }, - "matchingRules": { - "$.body.id": { - "match": "type" - } - } - } + "consumer": { + "name": "brand-consumer-wholesale" }, - { - "description": "edit Wholesale Companies", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/companies/5", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "630", - "content-type": "application/json" - }, - "body": { - "type": "wholesale", - "maxCalls": 2000, - "maxDailyUsage": 1000001, - "billingMethod": "postpaid", - "showInvoices": "0", - "language": 2, - "defaultTimezone": "3", - "country": 1, - "currency": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "accessCredentialNotificationTemplate": null, - "applicationServerSet": 1, - "mediaRelaySet": 0, - "routingTagIds": [], - "codecIds": [], - "invoicing": { - "nif": "12345689-Z", - "postalAddress": "", - "postalCode": "", - "town": "", - "province": "", - "countryName": "" - }, - "name": "Renamed Wholesale", - "domainUsers": null, - "maxDailyUsageEmail": "", - "externallyextraopts": "", - "transformationRuleSet": 1 + "provider": { + "name": "brand-provider-wholesale" + }, + "interactions": [ + { + "description": "add Wholesale Companies", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/companies", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "297", + "content-type": "application/json" + }, + "body": { + "type": "wholesale", + "maxCalls": 0, + "maxDailyUsage": 1000000, + "billingMethod": "postpaid", + "language": 2, + "defaultTimezone": "1", + "country": 3, + "currency": null, + "applicationServerSet": 1, + "mediaRelaySet": 0, + "routingTagIds": [], + "domainUsers": null, + "name": "Wholesale", + "maxDailyUsageEmail": "", + "transformationRuleSet": 1 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "type": "wholesale", + "name": "Wholesale", + "domainUsers": "wholesale.irontec.com", + "maxCalls": 0, + "maxDailyUsage": 1000000, + "currentDayUsage": 0, + "maxDailyUsageEmail": null, + "ipfilter": true, + "onDemandRecord": 0, + "allowRecordingRemoval": true, + "onDemandRecordCode": "", + "externallyextraopts": null, + "billingMethod": "postpaid", + "balance": 0, + "showInvoices": false, + "id": 5, + "invoicing": { + "nif": "12345689-Z", + "postalAddress": "", + "postalCode": "", + "town": "", + "province": "", + "countryName": "" + }, + "language": 1, + "defaultTimezone": 145, + "country": 68, + "currency": null, + "transformationRuleSet": 1, + "outgoingDdi": null, + "outgoingDdiRule": null, + "voicemailNotificationTemplate": 1, + "faxNotificationTemplate": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "accessCredentialNotificationTemplate": null, + "corporation": null, + "applicationServerSet": 1, + "mediaRelaySet": 0, + "featureIds": [], + "geoIpAllowedCountries": [], + "routingTagIds": [], + "codecIds": [] + }, + "matchingRules": { + "$.body.id": { + "match": "type" + } + } + } }, - "query": "" - }, - "response": { - "status": 200, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit Wholesale Companies", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/companies/5", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "630", + "content-type": "application/json" + }, + "body": { + "type": "wholesale", + "maxCalls": 2000, + "maxDailyUsage": 1000001, + "billingMethod": "postpaid", + "showInvoices": "0", + "language": 2, + "defaultTimezone": "3", + "country": 1, + "currency": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "accessCredentialNotificationTemplate": null, + "applicationServerSet": 1, + "mediaRelaySet": 0, + "routingTagIds": [], + "codecIds": [], + "invoicing": { + "nif": "12345689-Z", + "postalAddress": "", + "postalCode": "", + "town": "", + "province": "", + "countryName": "" + }, + "name": "Renamed Wholesale", + "domainUsers": null, + "maxDailyUsageEmail": "", + "externallyextraopts": "", + "transformationRuleSet": 1 + }, + "query": "" + }, + "response": { + "status": 200, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "type": "wholesale", + "name": "Renamed Wholesale", + "domainUsers": "wholesale.irontec.com", + "maxCalls": 2000, + "maxDailyUsage": 1000001, + "currentDayUsage": 153, + "maxDailyUsageEmail": null, + "ipfilter": true, + "onDemandRecord": 0, + "allowRecordingRemoval": true, + "onDemandRecordCode": "", + "externallyextraopts": null, + "billingMethod": "postpaid", + "balance": 0, + "showInvoices": false, + "id": 5, + "invoicing": { + "nif": "12345689-Z", + "postalAddress": "", + "postalCode": "", + "town": "", + "province": "", + "countryName": "" + }, + "language": 1, + "defaultTimezone": 145, + "country": 68, + "currency": null, + "transformationRuleSet": 1, + "outgoingDdi": null, + "outgoingDdiRule": null, + "voicemailNotificationTemplate": 1, + "faxNotificationTemplate": null, + "invoiceNotificationTemplate": null, + "callCsvNotificationTemplate": null, + "maxDailyUsageNotificationTemplate": null, + "accessCredentialNotificationTemplate": null, + "corporation": null, + "applicationServerSet": 1, + "mediaRelaySet": 0, + "featureIds": [], + "geoIpAllowedCountries": [], + "routingTagIds": [], + "codecIds": [] + } + } + } + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": { - "type": "wholesale", - "name": "Renamed Wholesale", - "domainUsers": "wholesale.irontec.com", - "maxCalls": 2000, - "maxDailyUsage": 1000001, - "currentDayUsage": 153, - "maxDailyUsageEmail": null, - "ipfilter": true, - "onDemandRecord": 0, - "allowRecordingRemoval": true, - "onDemandRecordCode": "", - "externallyextraopts": null, - "billingMethod": "postpaid", - "balance": 0, - "showInvoices": false, - "id": 5, - "invoicing": { - "nif": "12345689-Z", - "postalAddress": "", - "postalCode": "", - "town": "", - "province": "", - "countryName": "" - }, - "language": 1, - "defaultTimezone": 145, - "country": 68, - "currency": null, - "transformationRuleSet": 1, - "outgoingDdi": null, - "outgoingDdiRule": null, - "voicemailNotificationTemplate": 1, - "faxNotificationTemplate": null, - "invoiceNotificationTemplate": null, - "callCsvNotificationTemplate": null, - "maxDailyUsageNotificationTemplate": null, - "accessCredentialNotificationTemplate": null, - "corporation": null, - "applicationServerSet": 1, - "mediaRelaySet": 0, - "featureIds": [], - "geoIpAllowedCountries": [], - "routingTagIds": [], - "codecIds": [] + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" } - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" } - } } diff --git a/web/portal/brand/cypress/pacts/brand-provider-wholesale-client-trusted-brand-consumer-wholesale-client-trusted.json b/web/portal/brand/cypress/pacts/brand-provider-wholesale-client-trusted-brand-consumer-wholesale-client-trusted.json index 9def96c5c7..d9ee8d2dfa 100644 --- a/web/portal/brand/cypress/pacts/brand-provider-wholesale-client-trusted-brand-consumer-wholesale-client-trusted.json +++ b/web/portal/brand/cypress/pacts/brand-provider-wholesale-client-trusted-brand-consumer-wholesale-client-trusted.json @@ -1,112 +1,112 @@ { - "consumer": { - "name": "brand-consumer-wholesale-client-trusted" - }, - "provider": { - "name": "brand-provider-wholesale-client-trusted" - }, - "interactions": [ - { - "description": "add Trusted", - "providerState": "", - "request": { - "method": "POST", - "path": "/api/brand/trusteds", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "54", - "content-type": "application/json" - }, - "body": { - "srcIp": "127.0.1.2", - "description": "desc", - "company": 3 - }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" - }, - "body": { - "srcIp": "127.0.1.2", - "proto": "any", - "fromPattern": null, - "ruriPattern": null, - "tag": "1", - "description": "desc", - "priority": 0, - "id": 2, - "company": 1 - } - } + "consumer": { + "name": "brand-consumer-wholesale-client-trusted" }, - { - "description": "edit Trusted", - "providerState": "", - "request": { - "method": "PUT", - "path": "/api/brand/trusteds/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", - "content-length": "62", - "content-type": "application/json" - }, - "body": { - "srcIp": "194.30.6.88", - "description": "new desc", - "company": "1" + "provider": { + "name": "brand-provider-wholesale-client-trusted" + }, + "interactions": [ + { + "description": "add Trusted", + "providerState": "", + "request": { + "method": "POST", + "path": "/api/brand/trusteds", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "54", + "content-type": "application/json" + }, + "body": { + "srcIp": "127.0.1.2", + "description": "desc", + "company": 3 + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "srcIp": "127.0.1.2", + "proto": "any", + "fromPattern": null, + "ruriPattern": null, + "tag": "1", + "description": "desc", + "priority": 0, + "id": 2, + "company": 1 + } + } }, - "query": "" - }, - "response": { - "status": 201, - "headers": { - "content-type": "application/json; charset=utf-8" + { + "description": "edit Trusted", + "providerState": "", + "request": { + "method": "PUT", + "path": "/api/brand/trusteds/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ", + "content-length": "62", + "content-type": "application/json" + }, + "body": { + "srcIp": "194.30.6.88", + "description": "new desc", + "company": "1" + }, + "query": "" + }, + "response": { + "status": 201, + "headers": { + "content-type": "application/json; charset=utf-8" + }, + "body": { + "srcIp": "127.0.1.2", + "proto": "any", + "fromPattern": null, + "ruriPattern": null, + "tag": "1", + "description": "desc", + "priority": 0, + "id": 2, + "company": 1 + } + } }, - "body": { - "srcIp": "127.0.1.2", - "proto": "any", - "fromPattern": null, - "ruriPattern": null, - "tag": "1", - "description": "desc", - "priority": 0, - "id": 2, - "company": 1 + { + "description": "delete Trusted", + "providerState": "", + "request": { + "method": "DELETE", + "path": "/api/brand/trusteds/1", + "headers": { + "accept": "application/json, text/plain, */*", + "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + }, + "body": "", + "query": "" + }, + "response": { + "status": 200, + "headers": {}, + "body": "200" + } } - } - }, - { - "description": "delete Trusted", - "providerState": "", - "request": { - "method": "DELETE", - "path": "/api/brand/trusteds/1", - "headers": { - "accept": "application/json, text/plain, */*", - "authorization": "Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJpYXQiOjE2NzU5ODA2MjAsImV4cCI6MTY3NTk4NDIyMCwicm9sZXMiOlsiUk9MRV9CUkFORF9BRE1JTiJdLCJ1c2VybmFtZSI6ImJyYW5kIn0.Sa-LdjAzOp2Q9d4__VyS9SA0z-caFuClUY7hVGxR0LqGjOwQdj7d-y3_3F381lRumS4FZbanE6KEWA8vdpE9mwdGN5yMXDqngyLuDzZaEUjrC2EHR_fujBpexJC3ZBn7_ew-gwRjsqcAmVfwo35LlzKGka0Df403cJGC-nIvAgfB8c74GgEowEe2wIPLO9rBMSA4f4a5BdNOhV-kH7bGtbnTguldYwR1kIT_touQjEPKVeA_iTes-7rfBeCmv3SLyv7nM0P2X78Xnf5cMQSxtWrkPSB4-siOOi6nrEdnGxmLxiqJ4w9RP0WRUEPAb5qzJMUodnZtAA2_yb38Rj1v-kzG_MXv9j3mkxBfKe1pMNIxml915D95_xquxDk05HKOkjz5cFdIuPxuOQBF3L6ExpRXrF_h1Hu8UIovn8EYxsRWnzxFMVrntroUWVAT3ZiSAA3pZqThAFyGDyZ1FZTgEqe3QHOUllHF1446WLj6LX9nG5zkWGfT1gQ-9INuZftUkfzZKH-E5lbN6VuLWCqsWuL6Nv8ErbH6EYxEQROLgjny1Rfl_nPyJD2xx_4iE-6C-Smzv6_uRGeKCTgTNxJtUkCiau6obRR8U1SRAxXvR-YL7MnnUCrtGFcGlUIcbVLU7Uklr-Qxctc6D_Hu_aeCdn4MvjR5LPGGq1NyM4VvhaQ" + ], + "metadata": { + "pactSpecification": { + "version": "2.0.0" }, - "body": "", - "query": "" - }, - "response": { - "status": 200, - "headers": {}, - "body": "200" - } - } - ], - "metadata": { - "pactSpecification": { - "version": "2.0.0" - }, - "client": { - "name": "pact-cypress-adapter", - "version": "1.3.0" + "client": { + "name": "pact-cypress-adapter", + "version": "1.3.0" + } } - } } diff --git a/web/portal/brand/cypress/support/commands/prepareGenericPactInterceptors.js b/web/portal/brand/cypress/support/commands/prepareGenericPactInterceptors.js index ef3af62fdd..ca05d79064 100644 --- a/web/portal/brand/cypress/support/commands/prepareGenericPactInterceptors.js +++ b/web/portal/brand/cypress/support/commands/prepareGenericPactInterceptors.js @@ -10,12 +10,15 @@ import ApplicationServerSetsCollection from '../../fixtures/Provider/Application import BannedAddressesCollection from '../../fixtures/Provider/BannedAddress/getCollection.json'; import BillableCallsCollection from '../../fixtures/Provider/BillableCalls/getCollection.json'; import CarriersCollection from '../../fixtures/Provider/Carriers/getCollection.json'; +import CarrierServerCollection from '../../fixtures/Provider/CarrierServer/getCollection.json'; import CodecsCollection from '../../fixtures/Provider/Codecs/getCollection.json'; import CompaniesCollection from '../../fixtures/Provider/Companies/getCollection.json'; import CorporationsCollection from '../../fixtures/Provider/Corporations/getCollection.json'; import CountriesCollection from '../../fixtures/Provider/Countries/getCollection.json'; import CurrenciesCollection from '../../fixtures/Provider/Currencies/getCollection.json'; import DdiProvidersCollection from '../../fixtures/Provider/DdiProviders/getCollection.json'; +import DdiProvidersAddressesCollection from '../../fixtures/Provider/DdiProviders/getProviderAddressesCollection.json'; +import DdiProvidersRegistrationsCollection from '../../fixtures/Provider/DdiProviders/getProviderRegistrationsCollection.json'; import DdisCollection from '../../fixtures/Provider/Ddis/getCollection.json'; import FeaturesCollection from '../../fixtures/Provider/Features/getCollection.json'; import LanguagesCollection from '../../fixtures/Provider/Languages/getCollection.json'; @@ -63,10 +66,22 @@ Cypress.Commands.add( ...CarriersCollection, }).as('getCarriers'); + cy.intercept('GET', '**/api/brand/carrier_servers?*', { + ...CarrierServerCollection, + }).as('getCarriersServer'); + cy.intercept('GET', '**/api/brand/ddi_providers?*', { ...DdiProvidersCollection, }).as('getDdiProviders'); + cy.intercept('GET', '**/api/brand/ddi_provider_addresses?*', { + ...DdiProvidersAddressesCollection, + }).as('getDdiProvidersAddresses'); + + cy.intercept('GET', '**/api/brand/ddi_provider_registrations?*', { + ...DdiProvidersRegistrationsCollection, + }).as('getDdiProvidersRegistrations'); + cy.intercept('GET', '**/api/brand/ddis?*', { ...DdisCollection, }).as('getDdis');