chore(sentry_webhook): update Salesforce values (#1419)

* Update Salesforce values.

* Update tests.
This commit is contained in:
Sander Bruens 2023-10-06 14:42:33 -04:00 committed by GitHub
parent 61a8f7d290
commit 836778324e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 11 deletions

View file

@ -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();
});

View file

@ -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 = {