TT-17688: test: add local httpbin.org mock to smoke tests (backport #8409)#8418
Conversation
|
SentinelOne CNS Hardcoded Secret Detector SentinelOne CNS is a cloud-agnostic, agentless CSPM & CWPP solution that continuously detects and prevents vulnerabilities that have the highest probability of being exploited in Azure, AWS, Google Cloud, and Kubernetes. |
|
This pull request backports a change from PR #8409 to the Files Changed Analysis
Architecture & Impact Assessment
Here is a visualization of the change: Before: graph TD
subgraph Smoke Test Environment
TestRunner -->|HTTP Request| TykGateway
TykGateway -->|Proxied Request| ExternalHttpbin(httpbin.org public service)
end
After: graph TD
subgraph "Smoke Test Environment (Docker Compose)"
TestRunner -->|HTTP Request| TykGateway
TykGateway -->|Proxied Request| LocalHttpbin(httpbin.org container)
end
Scope Discovery & Context Expansion
Metadata
Powered by Visor from Probelabs Last updated: 2026-07-01T15:26:48.768Z | Triggered by: pr_opened | Commit: 96de147 💡 TIP: You can chat with Visor using |
Security Issues (1)
✅ Architecture Check PassedNo architecture issues found – changes LGTM. ✅ Performance Check PassedNo performance issues found – changes LGTM. Powered by Visor from Probelabs Last updated: 2026-07-01T15:26:33.456Z | Triggered by: pr_opened | Commit: 96de147 💡 TIP: You can chat with Visor using |
🚨 Jira Linter FailedCommit: The Jira linter failed to validate your PR. Please check the error details below: 🔍 Click to view error detailsNext Steps
This comment will be automatically deleted once the linter passes. |
…e (5.14.0) (#8450) Reverts the httpbin test-infra migration back to the pre-migration baseline. Supersedes/Reverts: - tyk #8418 - tyk #8428 - tyk #8440 Jira: https://tyktech.atlassian.net/browse/DX-2386 Requested by: U3P2L4XNE Slack thread: https://slack.com/archives/D09SZABNLG3/p1783328328323169 - [x] No go.mod changes --------- Co-authored-by: Leonid Bugaev <[email protected]>
Problem / Task
The smoke tests are failing because they rely on the public
httpbin.orgservice, which was down. We need to remove the publichttpbin.orgdependency from smoke tests by adding a local mock service todocker-compose.yml. Also, thekennethreitz/httpbinimage is outdated, so we are updating it tomccutchen/go-httpbin.Requested by: U3P2L4XNE
Slack thread: https://slack.com/archives/C0ATZQCMG58/p1782915217567649
Changes
httpbin.orgservice usingmccutchen/go-httpbinimage toci/smoke-tests/plugin-aliasing/docker-compose.yml. This allows Docker's internal DNS to intercept requests tohttpbin.organd route them to the local container, avoiding reliance on the public internet.kennethreitz/httpbintomccutchen/go-httpbinacross the repository.Testing
httpbin.orgservice is added to thedocker-compose.ymlfile.ci/tests/already use this pattern successfully.