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 1
1
import { PT_VERSION } from './version.js' ;
2
2
3
+ const env = process . env . AWS_EXECUTION_ENV || 'NA' ;
3
4
if ( ! 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 } ` ;
5
6
} 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 } ` ;
7
8
}
8
9
9
10
export { addUserAgentMiddleware , isSdkClient } from './awsSdkUtils.js' ;
Original file line number Diff line number Diff line change @@ -84,7 +84,9 @@ describe('Helpers: awsSdk', () => {
84
84
85
85
it ( 'concatenates the PT AWS_SDK_UA_APP_ID when one is already set' , ( ) => {
86
86
// 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
+ ) ;
88
90
} ) ;
89
91
90
92
describe ( 'Function: customUserAgentMiddleware' , ( ) => {
You can’t perform that action at this time.
0 commit comments