File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
aws-distro-opentelemetry-node-autoinstrumentation/test/exporter/otlp/aws/common Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -113,12 +113,12 @@ describe('AwsAuthenticator', () => {
113113 'https://xray.us-east-1.amazonaws.com/v1/traces' ,
114114 'xray'
115115 ) . authenticate ( oldHeaders , new Uint8Array ( ) ) ;
116- expect ( result ) . toHaveProperty ( AUTHORIZATION_HEADER ) ;
117- expect ( result ) . toHaveProperty ( X_AMZ_DATE_HEADER ) ;
118- expect ( result ) . toHaveProperty ( X_AMZ_SECURITY_TOKEN_HEADER ) ;
119- expect ( result ) . toHaveProperty ( X_AMZ_CONTENT_SHA256_HEADER ) ;
120116
121117 if ( version >= 16 ) {
118+ expect ( result ) . toHaveProperty ( AUTHORIZATION_HEADER ) ;
119+ expect ( result ) . toHaveProperty ( X_AMZ_DATE_HEADER ) ;
120+ expect ( result ) . toHaveProperty ( X_AMZ_SECURITY_TOKEN_HEADER ) ;
121+ expect ( result ) . toHaveProperty ( X_AMZ_CONTENT_SHA256_HEADER ) ;
122122 expect ( result [ AUTHORIZATION_HEADER ] ) . not . toBe ( oldHeaders [ AUTHORIZATION_HEADER ] ) ;
123123 expect ( result [ X_AMZ_DATE_HEADER ] ) . not . toBe ( oldHeaders [ X_AMZ_DATE_HEADER ] ) ;
124124 expect ( result [ X_AMZ_SECURITY_TOKEN_HEADER ] ) . not . toBe ( oldHeaders [ X_AMZ_SECURITY_TOKEN_HEADER ] ) ;
You can’t perform that action at this time.
0 commit comments