mirror of
https://github.com/OutlineFoundation/outline-server.git
synced 2026-05-13 13:58:57 +00:00
chore(sentry_webhook): update Salesforce values (#1419)
* Update Salesforce values. * Update tests.
This commit is contained in:
parent
61a8f7d290
commit
836778324e
2 changed files with 11 additions and 11 deletions
|
|
@ -66,7 +66,7 @@ describe('postSentryEventToSalesforce', () => {
|
|||
postSentryEventToSalesforce(BASIC_EVENT, 'outline-clients-dev');
|
||||
|
||||
const expectedOptions = {
|
||||
host: 'google-jigsaw--uat.my.salesforce.com',
|
||||
host: 'google-jigsaw--jigsawuat.sandbox.my.salesforce.com',
|
||||
path: '/servlet/servlet.WebToCase',
|
||||
protocol: 'https:',
|
||||
method: 'post',
|
||||
|
|
@ -76,7 +76,7 @@ describe('postSentryEventToSalesforce', () => {
|
|||
expectToHaveBeenCalledWith(requestSpy, expectedOptions);
|
||||
expectToHaveBeenCalledWith(
|
||||
mockRequest.write,
|
||||
'orgid=00D3F000000DDDH' +
|
||||
'orgid=00D750000004dFg' +
|
||||
'&recordType=0123F000000MWTS' +
|
||||
'&email=foo%40bar.com' +
|
||||
'&00N3F000002Rqhq=' +
|
||||
|
|
@ -108,9 +108,9 @@ describe('postSentryEventToSalesforce', () => {
|
|||
'&00N0b00000BqOA4=' +
|
||||
'&description=my%20message' +
|
||||
'&type=Outline%20client' +
|
||||
'&00N0b00000BqOA2=test%20category' +
|
||||
'&00N0b00000BqOfW=test%20os' +
|
||||
'&00N0b00000BqOfR=test%20version'
|
||||
'&00N5a00000DXy19=test%20category' +
|
||||
'&00N5a00000DXxmo=test%20os' +
|
||||
'&00N5a00000DXxmq=test%20version'
|
||||
);
|
||||
expect(mockRequest.end).toHaveBeenCalled();
|
||||
});
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ interface SalesforceFormValues {
|
|||
recordType: string;
|
||||
}
|
||||
|
||||
const SALESFORCE_DEV_HOST = 'google-jigsaw--uat.my.salesforce.com';
|
||||
const SALESFORCE_DEV_HOST = 'google-jigsaw--jigsawuat.sandbox.my.salesforce.com';
|
||||
const SALESFORCE_PROD_HOST = 'webto.salesforce.com';
|
||||
const SALESFORCE_PATH = '/servlet/servlet.WebToCase';
|
||||
const SALESFORCE_FORM_FIELDS_DEV: SalesforceFormFields = {
|
||||
|
|
@ -55,15 +55,15 @@ const SALESFORCE_FORM_FIELDS_PROD: SalesforceFormFields = {
|
|||
recordType: 'recordType',
|
||||
email: 'email',
|
||||
description: 'description',
|
||||
category: '00N0b00000BqOA2',
|
||||
cloudProvider: '00N0b00000BqOA7',
|
||||
category: '00N5a00000DXy19',
|
||||
cloudProvider: '00N5a00000DXxmn',
|
||||
sentryEventUrl: '00N0b00000BqOA4',
|
||||
os: '00N0b00000BqOfW',
|
||||
version: '00N0b00000BqOfR',
|
||||
os: '00N5a00000DXxmo',
|
||||
version: '00N5a00000DXxmq',
|
||||
type: 'type',
|
||||
};
|
||||
const SALESFORCE_FORM_VALUES_DEV: SalesforceFormValues = {
|
||||
orgId: '00D3F000000DDDH',
|
||||
orgId: '00D750000004dFg',
|
||||
recordType: '0123F000000MWTS',
|
||||
};
|
||||
const SALESFORCE_FORM_VALUES_PROD: SalesforceFormValues = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue