Skip to content

fix(e2e): give TestLab the mock server address the cluster reaches - #820

Merged
matbmoser merged 1 commit into
eclipse-tractusx:mainfrom
arkabide:fix/e2e-mock-public-url
Dec 4, 2026
Merged

matbmoser merged 1 commit into
eclipse-tractusx:mainfrom
arkabide:fix/e2e-mock-public-url

Conversation

@arkabide

@arkabide arkabide commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Description

Sets TESTLAB_MOCK_PUBLIC_URL on the testlab run step of .github/workflows/e2e-test.yml to the developer toolbox's mock-server-external-url output. 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 the mock_server_external_url variable). testlab run did not get it, so TestLab used its default http://localhost:8100 for every mock. When a test offers a mock as an asset with connector/provider/create_mock_asset, the data address points at localhost: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:

call_data_plane #1 testlab/http_client → GET http://consumer.local/api/public/parts/42 ← 500 in 15541ms

Every project that uses this workflow and a mock asset is affected.

How it was checked:

  • TestLab 1.0.0a25 reads mock_public_url from TESTLAB_MOCK_PUBLIC_URL and uses it as the root of every mock URL (config/settings.py, steps/mock/api.py). Unset, it falls back to http://localhost:<server_port>.
  • tractusx-starter-kit/developer-toolbox/action.yml declares the mock-server-external-url output ("The runner's mock server, as a pod reaches it").
  • The workflow still parses as YAML. The change has not run in CI yet.

Pre-review checks

🤖 Generated with Claude Code

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>
@arkabide
arkabide requested a review from bmg13 as a code owner December 4, 2026 09:49

@mgarciaLKS mgarciaLKS left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 👍

@matbmoser
matbmoser merged commit 9d0572d into eclipse-tractusx:main Dec 4, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants