File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed
packages/artillery/lib/platform/aws-lambda Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -428,6 +428,10 @@ class PlatformLambda {
428428 ARTILLERY_CLOUD_API_KEY : this . cloudKey
429429 } ;
430430
431+ if ( process . env . ARTILLERY_CLOUD_ENDPOINT ) {
432+ event . ARTILLERY_CLOUD_ENDPOINT = process . env . ARTILLERY_CLOUD_ENDPOINT ;
433+ }
434+
431435 debug ( 'Lambda event payload:' ) ;
432436 debug ( { event } ) ;
433437
Original file line number Diff line number Diff line change @@ -52,7 +52,8 @@ async function handler(event, context) {
5252 BUCKET ,
5353 ENV ,
5454 WAIT_FOR_GREEN ,
55- ARTILLERY_CLOUD_API_KEY
55+ ARTILLERY_CLOUD_API_KEY ,
56+ ARTILLERY_CLOUD_ENDPOINT
5657 } = event ;
5758
5859 console . log ( 'TEST_RUN_ID: ' , TEST_RUN_ID ) ;
@@ -147,7 +148,8 @@ async function handler(event, context) {
147148 ARTILLERY_ARGS ,
148149 TEST_DATA_LOCATION ,
149150 ENV ,
150- ARTILLERY_CLOUD_API_KEY
151+ ARTILLERY_CLOUD_API_KEY ,
152+ ARTILLERY_CLOUD_ENDPOINT
151153 } ) ;
152154
153155 if ( err || code !== 0 ) {
@@ -186,7 +188,8 @@ async function execArtillery(options) {
186188 NODE_BINARY_PATH ,
187189 ARTILLERY_BINARY_PATH ,
188190 TEST_DATA_LOCATION ,
189- ARTILLERY_CLOUD_API_KEY
191+ ARTILLERY_CLOUD_API_KEY ,
192+ ARTILLERY_CLOUD_ENDPOINT
190193 } = options ;
191194
192195 const env = Object . assign (
@@ -206,6 +209,7 @@ async function execArtillery(options) {
206209 // SHIP_LOGS: 'true',
207210 } ,
208211 ARTILLERY_CLOUD_API_KEY ? { ARTILLERY_CLOUD_API_KEY } : { } ,
212+ ARTILLERY_CLOUD_ENDPOINT ? { ARTILLERY_CLOUD_ENDPOINT } : { } ,
209213 ENV
210214 ) ;
211215
You can’t perform that action at this time.
0 commit comments