Repository navigation
fix(e2e): give TestLab the mock server address the cluster reaches - #820
Merged
Merged
Conversation
The developer toolbox exposes the runner's mock server as a pod reaches it (mock-server-external-url), but testlab run did not get it. TestLab then published mocks under http://localhost:8100, and a data plane in the cluster that forwards to a mock asset timed out and answered 500. Signed-off-by: arkaitz.carbajo <arkaitz.carbajo@gobtech.lksnext.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Description
Sets
TESTLAB_MOCK_PUBLIC_URLon thetestlab runstep of.github/workflows/e2e-test.ymlto the developer toolbox'smock-server-external-urloutput. It fixes a bug.The toolbox already works out where a pod reaches the runner's mock server and exposes it as
mock-server-external-url(and as themock_server_external_urlvariable).testlab rundid not get it, so TestLab used its defaulthttp://localhost:8100for every mock. When a test offers a mock as an asset withconnector/provider/create_mock_asset, the data address points atlocalhost:8100. The engine's data plane runs in the kind cluster, so it forwards to its own pod, waits about 15 seconds and answers 500.Found in eclipse-tractusx/tractusx-edc#3191 (run 47305719808): in the two consumer-side tests, catalog, negotiation and EDR pass, and only the call through the data plane fails:
Every project that uses this workflow and a mock asset is affected.
How it was checked:
mock_public_urlfromTESTLAB_MOCK_PUBLIC_URLand uses it as the root of every mock URL (config/settings.py,steps/mock/api.py). Unset, it falls back tohttp://localhost:<server_port>.tractusx-starter-kit/developer-toolbox/action.ymldeclares themock-server-external-urloutput ("The runner's mock server, as a pod reaches it").Pre-review checks
🤖 Generated with Claude Code