This repository was archived by the owner on Jan 16, 2025. It is now read-only.
File tree 2 files changed +4
-4
lines changed
lambdas/functions/webhook/src
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,6 @@ export class Config {
10
10
this . repositoryAllowList = JSON . parse ( repositoryAllowListEnv ) as Array < string > ;
11
11
const queuesConfigEnv = process . env . RUNNER_CONFIG || '[]' ;
12
12
this . queuesConfig = JSON . parse ( queuesConfigEnv ) as Array < QueueConfig > ;
13
- this . workflowJobEventSecondaryQueue = process . env . WORKFLOW_JOB_EVENT_SECONDARY_QUEUE || undefined ;
13
+ this . workflowJobEventSecondaryQueue = process . env . SQS_WORKFLOW_JOB_QUEUE || undefined ;
14
14
}
15
15
}
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ describe('Test sending message to SQS.', () => {
80
80
81
81
it ( 'sends webhook events to workflow job queue' , async ( ) => {
82
82
// Arrange
83
- process . env . WORKFLOW_JOB_EVENT_SECONDARY_QUEUE = sqsMessage . QueueUrl ;
83
+ process . env . SQS_WORKFLOW_JOB_QUEUE = sqsMessage . QueueUrl ;
84
84
const config = new Config ( ) ;
85
85
86
86
// Act
@@ -93,7 +93,7 @@ describe('Test sending message to SQS.', () => {
93
93
94
94
it ( 'Does not send webhook events to workflow job event copy queue' , async ( ) => {
95
95
// Arrange
96
- process . env . WORKFLOW_JOB_EVENT_SECONDARY_QUEUE = '' ;
96
+ process . env . SQS_WORKFLOW_JOB_QUEUE = '' ;
97
97
const config = new Config ( ) ;
98
98
// Act
99
99
await sendWebhookEventToWorkflowJobQueue ( message , config ) ;
@@ -104,7 +104,7 @@ describe('Test sending message to SQS.', () => {
104
104
105
105
it ( 'Catch the exception when even copy queue throws exception' , async ( ) => {
106
106
// Arrange
107
- process . env . WORKFLOW_JOB_EVENT_SECONDARY_QUEUE = sqsMessage . QueueUrl ;
107
+ process . env . SQS_WORKFLOW_JOB_QUEUE = sqsMessage . QueueUrl ;
108
108
const config = new Config ( ) ;
109
109
110
110
const mockSQS = {
You can’t perform that action at this time.
0 commit comments