@@ -100,12 +100,12 @@ describe('InstrumentationPatchTest', () => {
100100 expect ( services . has ( 'SNS' ) ) . toBeTruthy ( ) ;
101101 expect ( services . has ( 'DynamoDB' ) ) . toBeTruthy ( ) ;
102102 expect ( services . has ( 'Lambda' ) ) . toBeTruthy ( ) ;
103+ expect ( services . has ( 'S3' ) ) . toBeTruthy ( ) ;
104+ expect ( services . has ( 'Kinesis' ) ) . toBeTruthy ( ) ;
103105
104106 // From patching
105107 expect ( services . has ( 'SecretsManager' ) ) . toBeTruthy ( ) ;
106108 expect ( services . has ( 'SFN' ) ) . toBeTruthy ( ) ;
107- expect ( services . has ( 'S3' ) ) . toBeTruthy ( ) ;
108- expect ( services . has ( 'Kinesis' ) ) . toBeTruthy ( ) ;
109109 expect ( services . get ( 'SNS' ) . _requestPreSpanHook ) . toBeTruthy ( ) ;
110110 expect ( services . get ( 'SNS' ) . requestPreSpanHook ) . toBeTruthy ( ) ;
111111 expect ( services . get ( 'Lambda' ) . _requestPreSpanHook ) . toBeTruthy ( ) ;
@@ -123,18 +123,6 @@ describe('InstrumentationPatchTest', () => {
123123 expect ( awsSdkInstrumentation ) . toBeInstanceOf ( AwsSdkInstrumentationExtended ) ;
124124 } ) ;
125125
126- it ( 'S3 without patching' , ( ) => {
127- const unpatchedAwsSdkInstrumentation : AwsInstrumentation = extractAwsSdkInstrumentation ( UNPATCHED_INSTRUMENTATIONS ) ;
128- const services : Map < string , any > = extractServicesFromAwsSdkInstrumentation ( unpatchedAwsSdkInstrumentation ) ;
129- expect ( ( ) => doExtractS3Attributes ( services ) ) . toThrow ( ) ;
130- } ) ;
131-
132- it ( 'Kinesis without patching' , ( ) => {
133- const unpatchedAwsSdkInstrumentation : AwsInstrumentation = extractAwsSdkInstrumentation ( UNPATCHED_INSTRUMENTATIONS ) ;
134- const services : Map < string , any > = extractServicesFromAwsSdkInstrumentation ( unpatchedAwsSdkInstrumentation ) ;
135- expect ( ( ) => doExtractKinesisAttributes ( services ) ) . toThrow ( ) ;
136- } ) ;
137-
138126 it ( 'SQS without patching' , ( ) => {
139127 const unpatchedAwsSdkInstrumentation : AwsInstrumentation = extractAwsSdkInstrumentation ( UNPATCHED_INSTRUMENTATIONS ) ;
140128 const services : Map < string , any > = extractServicesFromAwsSdkInstrumentation ( unpatchedAwsSdkInstrumentation ) ;
0 commit comments