chore: Stop using httpbin.org for tests#2695
Merged
MSNev merged 1 commit intomicrosoft:betafrom Feb 3, 2026
Merged
Conversation
Contributor
There was a problem hiding this comment.
Pull request overview
This pull request removes the dependency on the external httpbin.org service in tests by replacing all references with localhost:9001 endpoints. The local test server (configured in gruntfile.js on port 9001) provides test resources like README.md as replacements for the httpbin.org endpoints.
Changes:
- Replaced httpbin.org URLs with http://localhost:9001/README.md in test files
- Updated test patterns to use localhost:9001 instead of generic localhost
- Updated npm dependencies (minor version bumps for various packages)
Reviewed changes
Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| tools/chrome-debug-extension/src/dataSources/dataSources.ts | Changed localhost detection to specifically match localhost:9001 for NoOpDataSource usage |
| shared/AppInsightsCore/Tests/Unit/src/Common/Util.tests.ts | Updated correlation header tests to use localhost:9001 instead of localhost |
| extensions/applicationinsights-dependencies-js/Tests/Unit/src/ajax.tests.ts | Changed exclusion pattern from localhost to localhost:9001 |
| extensions/applicationinsights-dependencies-js/Tests/Unit/src/W3CTraceStateDependency.tests.ts | Replaced httpbin.org URLs with localhost:9001 endpoints in W3C trace tests |
| common/Tests/Framework/src/TestHelper.ts | Updated test helper domain from localhost to localhost:9001 |
| AISKU/Tests/Unit/src/applicationinsights.e2e.tests.ts | Replaced httpbin.org fetch URLs with localhost:9001 in E2E tests |
| AISKU/Tests/Unit/src/SnippetInitialization.Tests.ts | Replaced httpbin.org URLs with localhost:9001 in snippet initialization tests |
| common/config/rush/npm-shrinkwrap.json | Updated dependency versions (@isaacs/brace-expansion, @nevware21/ts-utils, caniuse-lite, electron-to-chromium) and deprecation messages |
Files not reviewed (1)
- common/config/rush/npm-shrinkwrap.json: Language not supported
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.