File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change 11import { PT_VERSION } from './version.js' ;
22
3+ const env = process . env . AWS_EXECUTION_ENV || 'NA' ;
34if ( ! process . env . AWS_SDK_UA_APP_ID ) {
4- process . env . AWS_SDK_UA_APP_ID = `PT/TEST /${ PT_VERSION } ` ;
5+ process . env . AWS_SDK_UA_APP_ID = `PT/NO-OP /${ PT_VERSION } /PTEnv/ ${ env } ` ;
56} else {
6- process . env . AWS_SDK_UA_APP_ID = `${ process . env . AWS_SDK_UA_APP_ID } /PT/TEST /${ PT_VERSION } ` ;
7+ process . env . AWS_SDK_UA_APP_ID = `${ process . env . AWS_SDK_UA_APP_ID } /PT/NO-OP /${ PT_VERSION } /PTEnv/ ${ env } ` ;
78}
89
910export { addUserAgentMiddleware , isSdkClient } from './awsSdkUtils.js' ;
Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ describe('Helpers: awsSdk', () => {
8484
8585 it ( 'concatenates the PT AWS_SDK_UA_APP_ID when one is already set' , ( ) => {
8686 // Assess
87- expect ( process . env . AWS_SDK_UA_APP_ID ) . toEqual ( `test/PT/TEST/${ version } ` ) ;
87+ expect ( process . env . AWS_SDK_UA_APP_ID ) . toEqual (
88+ `test/PT/NO-OP/${ version } /PTEnv/NA`
89+ ) ;
8890 } ) ;
8991
9092 describe ( 'Function: customUserAgentMiddleware' , ( ) => {
You can’t perform that action at this time.
0 commit comments