From b5fc0c41c168b028f0578ea39d4c2bff6e01b9fa Mon Sep 17 00:00:00 2001 From: Amir Blum Date: Mon, 17 Jul 2023 12:48:48 +0300 Subject: [PATCH] chore(deps): update dependency nock to v13.3.2 (#1592) * chore(deps): update dependency nock to v13.3.2 * chore: lint --------- Co-authored-by: Haddas Bronfman <85441461+haddasbronfman@users.noreply.github.com> --- .../node/opentelemetry-resource-detector-aws/package.json | 2 +- .../package.json | 2 +- .../node/opentelemetry-resource-detector-gcp/package.json | 2 +- .../opentelemetry-resource-detector-instana/package.json | 2 +- .../test/InstanaAgentDetectorUnitTest.test.ts | 8 +++++--- packages/opentelemetry-sampler-aws-xray/package.json | 2 +- .../opentelemetry-instrumentation-aws-sdk/package.json | 2 +- 7 files changed, 11 insertions(+), 9 deletions(-) diff --git a/detectors/node/opentelemetry-resource-detector-aws/package.json b/detectors/node/opentelemetry-resource-detector-aws/package.json index 9f2ae523ea..585bd9d51c 100644 --- a/detectors/node/opentelemetry-resource-detector-aws/package.json +++ b/detectors/node/opentelemetry-resource-detector-aws/package.json @@ -47,7 +47,7 @@ "@types/node": "18.16.19", "@types/sinon": "10.0.2", "mocha": "7.2.0", - "nock": "12.0.3", + "nock": "13.3.2", "nyc": "15.1.0", "rimraf": "5.0.0", "sinon": "15.0.1", diff --git a/detectors/node/opentelemetry-resource-detector-container/package.json b/detectors/node/opentelemetry-resource-detector-container/package.json index 01aeebcdc2..64f8d2291d 100644 --- a/detectors/node/opentelemetry-resource-detector-container/package.json +++ b/detectors/node/opentelemetry-resource-detector-container/package.json @@ -42,7 +42,7 @@ "@types/sinon": "10.0.2", "eslint-plugin-header": "^3.1.1", "mocha": "7.2.0", - "nock": "12.0.3", + "nock": "13.3.2", "nyc": "15.1.0", "rimraf": "5.0.0", "sinon": "15.0.1", diff --git a/detectors/node/opentelemetry-resource-detector-gcp/package.json b/detectors/node/opentelemetry-resource-detector-gcp/package.json index c6ce4b4041..86c3929f05 100644 --- a/detectors/node/opentelemetry-resource-detector-gcp/package.json +++ b/detectors/node/opentelemetry-resource-detector-gcp/package.json @@ -47,7 +47,7 @@ "@types/node": "18.16.19", "@types/semver": "7.5.0", "mocha": "7.2.0", - "nock": "12.0.3", + "nock": "13.3.2", "nyc": "15.1.0", "rimraf": "5.0.0", "ts-mocha": "10.0.0", diff --git a/detectors/node/opentelemetry-resource-detector-instana/package.json b/detectors/node/opentelemetry-resource-detector-instana/package.json index bbdf279ae4..f2dd1daa44 100644 --- a/detectors/node/opentelemetry-resource-detector-instana/package.json +++ b/detectors/node/opentelemetry-resource-detector-instana/package.json @@ -46,7 +46,7 @@ "@types/node": "18.16.19", "@types/semver": "7.5.0", "mocha": "7.2.0", - "nock": "12.0.3", + "nock": "13.3.2", "nyc": "15.1.0", "rimraf": "5.0.0", "ts-mocha": "10.0.0", diff --git a/detectors/node/opentelemetry-resource-detector-instana/test/InstanaAgentDetectorUnitTest.test.ts b/detectors/node/opentelemetry-resource-detector-instana/test/InstanaAgentDetectorUnitTest.test.ts index 6799d96013..abe4ef5a51 100644 --- a/detectors/node/opentelemetry-resource-detector-instana/test/InstanaAgentDetectorUnitTest.test.ts +++ b/detectors/node/opentelemetry-resource-detector-instana/test/InstanaAgentDetectorUnitTest.test.ts @@ -65,7 +65,7 @@ describe('[UNIT] instanaAgentDetector', () => { }); it('should return agent resource with env variables', async () => { - process.env.INSTANA_AGENT_PORT = '88866'; + process.env.INSTANA_AGENT_PORT = '56001'; process.env.INSTANA_AGENT_HOST = 'instanaagent'; const mockedReply = { @@ -108,12 +108,14 @@ describe('[UNIT] instanaAgentDetector', () => { }); it('agent timeout', async () => { - process.env.INSTANA_AGENT_PORT = '878787'; + process.env.INSTANA_AGENT_PORT = '56002'; process.env.INSTANA_AGENT_HOST = 'instanaagent'; process.env.INSTANA_AGENT_TIMEOUT_MS = '200'; const expectedError = new Error('Instana Agent request timed out.'); - nock('http://instanaagent:878787') + nock( + `http://${process.env.INSTANA_AGENT_HOST}:${process.env.INSTANA_AGENT_PORT}` + ) .persist() .put('/com.instana.plugin.nodejs.discovery') .delay(500) diff --git a/packages/opentelemetry-sampler-aws-xray/package.json b/packages/opentelemetry-sampler-aws-xray/package.json index c4d9d91cdc..18d1eb0aa3 100644 --- a/packages/opentelemetry-sampler-aws-xray/package.json +++ b/packages/opentelemetry-sampler-aws-xray/package.json @@ -59,7 +59,7 @@ "eslint": "8.7.0", "expect": "29.2.0", "mocha": "7.2.0", - "nock": "13.2.1", + "nock": "13.3.2", "sinon": "15.0.1", "ts-mocha": "10.0.0", "nyc": "15.1.0", diff --git a/plugins/node/opentelemetry-instrumentation-aws-sdk/package.json b/plugins/node/opentelemetry-instrumentation-aws-sdk/package.json index ae47c9d525..b3ed817329 100644 --- a/plugins/node/opentelemetry-instrumentation-aws-sdk/package.json +++ b/plugins/node/opentelemetry-instrumentation-aws-sdk/package.json @@ -69,7 +69,7 @@ "eslint": "8.7.0", "expect": "29.2.0", "mocha": "7.2.0", - "nock": "13.2.1", + "nock": "13.3.2", "nyc": "15.1.0", "rimraf": "5.0.0", "sinon": "15.0.1",