Skip to content

Commit

Permalink
feat: update proxy v1 test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
utsabc committed Jan 25, 2024
1 parent 7d6ea12 commit b1327eb
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 103 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -415,34 +415,6 @@ export const data = [
kind: 'dfareporting#conversionsBatchInsertResponse',
},
status: 200,
rudderJobMetadata: [
{
jobId: 2,
attemptNum: 0,
userId: '',
sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr',
destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L',
workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o',
secret: {
access_token: 'secret',
refresh_token: 'refresh',
developer_token: 'developer_Token',
},
},
{
jobId: 3,
attemptNum: 1,
userId: '',
sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr',
destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L',
workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o',
secret: {
access_token: 'secret',
refresh_token: 'refresh',
developer_token: 'developer_Token',
},
},
],
},
response: [
{
Expand Down Expand Up @@ -530,19 +502,21 @@ export const data = [
XML: {},
FORM: {},
},
metadata: {
jobId: 2,
attemptNum: 0,
userId: '',
sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr',
destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L',
workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o',
secret: {
access_token: 'secret',
refresh_token: 'refresh',
developer_token: 'developer_Token',
metadata: [
{
jobId: 2,
attemptNum: 0,
userId: '',
sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr',
destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L',
workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o',
secret: {
access_token: 'secret',
refresh_token: 'refresh',
developer_token: 'developer_Token',
},
},
},
],
files: {},
},
method: 'POST',
Expand Down Expand Up @@ -576,22 +550,22 @@ export const data = [
kind: 'dfareporting#conversionsBatchInsertResponse',
},
status: 200,
rudderJobMetadata: {
jobId: 2,
attemptNum: 0,
userId: '',
sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr',
destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L',
workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o',
secret: {
access_token: 'secret',
refresh_token: 'refresh',
developer_token: 'developer_Token',
},
},
},
response: [
{
metadata: {
jobId: 2,
attemptNum: 0,
userId: '',
sourceId: '2Vsge2uWYdrLfG7pZb5Y82eo4lr',
destinationId: '2RHh08uOsXqE9KvCDg3hoaeuK2L',
workspaceId: '2Csl0lSTbuM3qyHdaOQB2GcDH8o',
secret: {
access_token: 'secret',
refresh_token: 'refresh',
developer_token: 'developer_Token',
},
},
error: 'success',
statusCode: 200,
},
Expand Down
50 changes: 0 additions & 50 deletions test/integrations/destinations/salesforce/dataDelivery/data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@ export const data = [
statusText: 'No Content',
},
status: 204,
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
},
},
},
Expand Down Expand Up @@ -128,11 +123,6 @@ export const data = [
errorCode: 'INVALID_SESSION_ID',
},
],
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
status: 401,
},
statTags: {
Expand Down Expand Up @@ -210,11 +200,6 @@ export const data = [
},
],
status: 401,
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
},
statTags: {
destType: 'SALESFORCE',
Expand Down Expand Up @@ -291,11 +276,6 @@ export const data = [
},
],
status: 403,
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
},
statTags: {
destType: 'SALESFORCE',
Expand Down Expand Up @@ -372,11 +352,6 @@ export const data = [
},
],
status: 503,
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
},
statTags: {
destType: 'SALESFORCE',
Expand Down Expand Up @@ -451,11 +426,6 @@ export const data = [
error_description: 'authentication failure',
},
status: 400,
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
},
statTags: {
destType: 'SALESFORCE',
Expand Down Expand Up @@ -526,11 +496,6 @@ export const data = [
errorCode: 'SERVER_UNAVAILABLE',
message: 'Server Unavailable',
},
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
status: 503,
},
message:
Expand Down Expand Up @@ -619,11 +584,6 @@ export const data = [
],
},
status: 200,
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
},
},
},
Expand Down Expand Up @@ -685,11 +645,6 @@ export const data = [
destinationResponse: {
response: '[ECONNABORTED] :: Connection aborted',
status: 500,
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
},
statTags: {
destType: 'SALESFORCE',
Expand Down Expand Up @@ -783,11 +738,6 @@ export const data = [
destinationResponse: {
response: '[EAI_AGAIN] :: Temporary failure in name resolution',
status: 500,
rudderJobMetadata: {
destInfo: {
authKey: '2HezPl1w11opbFSxnLDEgZ7kWTf',
},
},
},
statTags: {
destType: 'SALESFORCE',
Expand Down

0 comments on commit b1327eb

Please sign in to comment.