|
2 | 2 | // SPDX-License-Identifier: Apache-2.0 |
3 | 3 | import expect from 'expect'; |
4 | 4 | import * as sinon from 'sinon'; |
5 | | -import { OTLPAwsSpanExporter } from '../src/exporter/otlp-aws-span-exporter'; |
| 5 | +import { OTLPAwsSpanExporter } from '../src/aws-span-exporter/otlp-aws-span-exporter'; |
6 | 6 | import * as proxyquire from 'proxyquire'; |
7 | 7 | import * as nock from 'nock'; |
8 | 8 | import { getNodeVersion } from '../src/utils'; |
@@ -36,7 +36,7 @@ if (nodeVersion >= 16) { |
36 | 36 | return [200, '']; |
37 | 37 | }); |
38 | 38 |
|
39 | | - mockModule = proxyquire('../src/exporter/otlp-aws-span-exporter', { |
| 39 | + mockModule = proxyquire('../src/aws-span-exporter/otlp-aws-span-exporter', { |
40 | 40 | '@smithy/signature-v4': { |
41 | 41 | SignatureV4: class MockSignatureV4 { |
42 | 42 | sign(req: any) { |
@@ -127,7 +127,7 @@ if (nodeVersion >= 16) { |
127 | 127 | }); |
128 | 128 |
|
129 | 129 | it('should not inject SigV4 headers if failure to sign headers', done => { |
130 | | - const stubbedModule = proxyquire('../src/otlp-aws-span-exporter', { |
| 130 | + const stubbedModule = proxyquire('../src/aws-span-exporter/otlp-aws-span-exporter', { |
131 | 131 | '@smithy/signature-v4': { |
132 | 132 | SignatureV4: class MockSignatureV4 { |
133 | 133 | sign() { |
@@ -156,7 +156,7 @@ if (nodeVersion >= 16) { |
156 | 156 | }); |
157 | 157 |
|
158 | 158 | it('should not inject SigV4 headers if failure to retrieve credentials', done => { |
159 | | - const stubbedModule = proxyquire('../src/otlp-aws-span-exporter', { |
| 159 | + const stubbedModule = proxyquire('../src/aws-span-exporter/otlp-aws-span-exporter', { |
160 | 160 | '@aws-sdk/credential-provider-node': { |
161 | 161 | defaultProvider: () => async () => { |
162 | 162 | throw new Error('credentials error'); |
|
0 commit comments