diff --git a/.github/workflows/e2e-test.yml b/.github/workflows/e2e-test.yml index 049c758f..a5a5d2a5 100644 --- a/.github/workflows/e2e-test.yml +++ b/.github/workflows/e2e-test.yml @@ -28,10 +28,12 @@ # with: # tck-directory: tck/e2e # -# Job "validate" needs nothing but Python. Job "e2e" creates a kind cluster, -# deploys two connectors, two wallets (IdentityHub), a Digital Twin Registry, -# a BDRS and an IssuerService from the Tractus-X Umbrella chart, issues the -# participants' credentials, and then runs the compiled package against it. +# Job "validate" needs nothing but Python. Job "e2e" starts the Eclipse +# Tractus-X developer toolbox: a kind cluster in the runner with two +# connectors, two wallets (IdentityHub), a Digital Twin Registry, a BDRS and an +# IssuerService, deployed from the Tractus-X Umbrella chart with a small +# dataspace configuration. It issues the participants' credentials, and then +# runs the compiled package against it. # No secrets and no external cluster are used. # # The dataspace bring-up (every step between "Reclaim runner disk space" and @@ -54,16 +56,16 @@ on: description: Version of tractusx-testlab on PyPI that validates, compiles and runs the project. type: string default: "1.0.0a24" - run-in-umbrella: - description: Run the tests against a Tractus-X Umbrella created in the runner. Set to false to only validate and compile. + run-in-toolbox: + description: Run the tests in the Eclipse Tractus-X developer toolbox, a dataspace created in the runner. Set to false to only validate and compile. type: boolean default: true config: - description: Optional run configuration (a YAML file with "variables:") in the calling repository. It is merged over the Umbrella's values. + description: Optional run configuration (a YAML file with "variables:") in the calling repository. It is merged over the developer toolbox's values. type: string default: "" - umbrella-values: - description: Optional extra Helm values file in the calling repository, applied last. Use it to deploy the image built from this pull request. + toolbox-values: + description: Optional extra Helm values file for the developer toolbox in the calling repository, applied last. Use it to deploy the image built from this pull request. type: string default: "" testlab-ci-ref: @@ -134,9 +136,9 @@ jobs: retention-days: 14 e2e: - name: Run in Tractus-X Umbrella + name: Run in Eclipse Tractus-X developer toolbox needs: validate - if: ${{ inputs.run-in-umbrella }} + if: ${{ inputs.run-in-toolbox }} runs-on: ubuntu-latest timeout-minutes: 75 env: @@ -160,7 +162,7 @@ jobs: SUBMODEL_SERVER_URL: http://tck-submodel.local PROBE_SCRIPT: .testlab-ci/tests/e2e/connector-dtr-smoke/ci/probe_from_pod.sh WEDGE_SCRIPT: .testlab-ci/tests/e2e/connector-dtr-smoke/ci/restart_wedged_runtimes.py - UMBRELLA_EXTRA_VALUES: ${{ inputs.umbrella-values }} + UMBRELLA_EXTRA_VALUES: ${{ inputs.toolbox-values }} CALLER_CONFIG: ${{ inputs.config }} # Single source of truth for the dataspace hostnames, used for both the # runner's /etc/hosts and the cluster's CoreDNS. @@ -431,7 +433,7 @@ jobs: PY echo "UMBRELLA_VAULT_SECRETS=${secrets}" >> "${GITHUB_ENV}" - - name: Prepare and validate pinned Umbrella chart + - name: Prepare and validate the developer toolbox (pinned Umbrella chart) run: | set -euo pipefail chart_dir="${RUNNER_TEMP}/umbrella" @@ -567,7 +569,7 @@ jobs: } missing = sorted(expected_deployments - deployments) if missing: - raise SystemExit(f"Umbrella manifest is missing deployments: {', '.join(missing)}") + raise SystemExit(f"Developer toolbox manifest is missing deployments: {', '.join(missing)}") hooks = { document["metadata"]["name"] @@ -577,7 +579,7 @@ jobs: missing_hooks = sorted(expected_hooks - hooks) if missing_hooks: raise SystemExit( - f"Umbrella manifest is missing install hooks: {', '.join(missing_hooks)}" + f"Developer toolbox manifest is missing install hooks: {', '.join(missing_hooks)}" ) install_resources = [ @@ -593,7 +595,7 @@ jobs: ] duplicates = sorted(key for key, count in Counter(install_resources).items() if count > 1) if duplicates: - raise SystemExit(f"Umbrella manifest has duplicate resources: {duplicates}") + raise SystemExit(f"Developer toolbox manifest has duplicate resources: {duplicates}") expected_routes = { "provider-dsp.local": {"/api/v1/dsp"}, @@ -615,7 +617,7 @@ jobs: if ingress_routes.get(host) != paths } if wrong_routes: - raise SystemExit(f"Umbrella manifest has incorrect connector routes: {wrong_routes}") + raise SystemExit(f"Developer toolbox manifest has incorrect connector routes: {wrong_routes}") # Public EDR endpoint lives on .local via the control # plane's metrics slot. DSP must NOT share that host — the chart # still derives the callback from ingresses[0], but peers must only @@ -633,7 +635,7 @@ jobs: if path.startswith("/connector") ) if prefixed_routes: - raise SystemExit(f"Umbrella manifest still has /connector routes: {prefixed_routes}") + raise SystemExit(f"Developer toolbox manifest still has /connector routes: {prefixed_routes}") # The tractusx-connector chart derives EDC_DSP_CALLBACK_ADDRESS from # controlplane.ingresses[0] unless the env is pinned. A wrong host @@ -662,11 +664,11 @@ jobs: } if wrong_callbacks: raise SystemExit( - "Umbrella control planes advertise the wrong DSP callback " + "Developer toolbox control planes advertise the wrong DSP callback " f"address: {wrong_callbacks}" ) - print("Umbrella manifest contains both connectors, the shared DTR, the issuer,") + print("Developer toolbox manifest contains both connectors, the shared DTR, the issuer,") print("the vault-setup hooks, isolated connector routes, and DSP callbacks.") print("Ingress hosts:", ", ".join(sorted(h for h in ingress_routes if h))) PY @@ -721,7 +723,7 @@ jobs: df -h / docker exec tck-e2e-control-plane df -h / - - name: Deploy Tractus-X Umbrella (decentralized IdentityHub profile) + - name: Deploy the Eclipse Tractus-X developer toolbox (decentralized IdentityHub profile) run: | set -uo pipefail # `--wait` is load-bearing, not just convenience: Helm waits for @@ -1249,7 +1251,7 @@ jobs: if: ${{ failure() || cancelled() }} uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: - name: umbrella-diagnostics-${{ needs.validate.outputs.slug }} + name: toolbox-diagnostics-${{ needs.validate.outputs.slug }} path: ci-logs/ retention-days: 14 diff --git a/.github/workflows/e2e-testing-example.yml b/.github/workflows/e2e-testing-example.yml index 4791adde..be98a313 100644 --- a/.github/workflows/e2e-testing-example.yml +++ b/.github/workflows/e2e-testing-example.yml @@ -18,7 +18,7 @@ ################################################################################# # Keeps the worked example of the E2E testing tutorial honest: it is validated, -# compiled and run against a Tractus-X Umbrella whenever it, the template or +# compiled and run in the Eclipse Tractus-X developer toolbox whenever it, the template or # the reusable workflow changes. name: E2E testing tutorial - worked example diff --git a/.github/workflows/e2e-testing-site.yml b/.github/workflows/e2e-testing-site.yml index 7e65fb1b..35ffb9fd 100644 --- a/.github/workflows/e2e-testing-site.yml +++ b/.github/workflows/e2e-testing-site.yml @@ -53,6 +53,9 @@ jobs: steps: - name: Checkout uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + with: + # The whole history: the About panel shows when the tutorial was added. + fetch-depth: 0 - name: Set up Python 3.12 uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 @@ -75,6 +78,9 @@ jobs: run: python admin/handouts/build_handouts.py --inventory admin/handouts/inventory.sample.json --no-pdf --out "${RUNNER_TEMP}/handouts" - name: Build the site + env: + # Read-only: the authors in the About panel come from the GitHub API. + GITHUB_TOKEN: ${{ github.token }} run: mkdocs build --strict --site-dir "${RUNNER_TEMP}/site" - name: Upload the site diff --git a/e2e-testing/README.md b/e2e-testing/README.md index 499c5e81..9a72f477 100644 --- a/e2e-testing/README.md +++ b/e2e-testing/README.md @@ -17,7 +17,7 @@ Made for the "AI and Test Management" session of the 7th Eclipse Tractus-X Commu | Looking up a word | [Glossary](docs/reference/glossary.md) | | Running the session | [For administrators](docs/admin/index.md) | -## The tutorial +## Getting Started | | Chapter | Minutes | | --- | --- | --- | diff --git a/e2e-testing/catalog/build_catalog.py b/e2e-testing/catalog/build_catalog.py index 47a682b2..cb5e7703 100644 --- a/e2e-testing/catalog/build_catalog.py +++ b/e2e-testing/catalog/build_catalog.py @@ -109,7 +109,7 @@ def row(product: dict) -> str: def table(products: list[dict]) -> list[str]: return [ - "| Product | Suggested E2E scenario | Needs | In the Umbrella | Difficulty |", + "| Product | Suggested E2E scenario | Needs | In the developer toolbox | Difficulty |", "| --- | --- | --- | --- | --- |", *[row(product) for product in products], ] diff --git a/e2e-testing/catalog/products.json b/e2e-testing/catalog/products.json index 026fb661..b51760dd 100644 --- a/e2e-testing/catalog/products.json +++ b/e2e-testing/catalog/products.json @@ -592,7 +592,7 @@ "scenario": "A setup generated with the default answers starts, and its first data exchange succeeds.", "difficulty": "advanced", "fitsWorkshop": false, - "workshopNote": "Runs in Docker Compose, not in the Umbrella: the workflow needs its own bring-up step." + "workshopNote": "Runs in Docker Compose, not in the developer toolbox: the workflow needs its own bring-up step." }, { "id": "tractusx-testlab", diff --git a/e2e-testing/catalog/products.schema.json b/e2e-testing/catalog/products.schema.json index 0ba7f0af..18054cda 100644 --- a/e2e-testing/catalog/products.schema.json +++ b/e2e-testing/catalog/products.schema.json @@ -103,7 +103,7 @@ "uniqueItems": true }, "runsInUmbrella": { - "description": "True when the Tractus-X Umbrella chart deploys the product.", + "description": "True when the Tractus-X Umbrella chart, and so the Eclipse Tractus-X developer toolbox, deploys the product.", "type": "boolean" }, "umbrellaChart": { diff --git a/e2e-testing/docs/admin/index.md b/e2e-testing/docs/admin/index.md index 7fc12306..86f0a5b0 100644 --- a/e2e-testing/docs/admin/index.md +++ b/e2e-testing/docs/admin/index.md @@ -25,7 +25,7 @@ flowchart LR IDE --> ENG["Engine"] ENG --> PAIR["The team's connector pair
+ registry, wallets, BDRS"] B --> GH["GitHub
fork and pull request"] - GH --> RUN["Runner
its own Umbrella"] + GH --> RUN["Runner
its own developer toolbox"] ``` The model is the team's own. Nothing about it is deployed or paid for by the event. diff --git a/e2e-testing/docs/admin/presentation-prompt.md b/e2e-testing/docs/admin/presentation-prompt.md index 0a2dff4f..e570324b 100644 --- a/e2e-testing/docs/admin/presentation-prompt.md +++ b/e2e-testing/docs/admin/presentation-prompt.md @@ -68,8 +68,8 @@ FACTS YOU MAY STATE. Use them exactly. Do not add figures of your own. - Eclipse Tractus-X TestLab is the open-source engine that validates, compiles and runs TCKs. - A test has three phases: setup, execution, teardown. -- The workflow creates a small dataspace inside the GitHub runner from the - Tractus-X Umbrella: two connectors, two wallets, a Digital Twin Registry, +- The workflow creates a small dataspace inside the GitHub runner, the + Eclipse Tractus-X developer toolbox: two connectors, two wallets, a Digital Twin Registry, a BDRS and an IssuerService. It needs no secrets and no external cluster. - The worked example (Digital Twin Registry) has 3 tests and 19 steps and runs in GitHub Actions in about five and a half minutes. diff --git a/e2e-testing/docs/assets/javascripts/diagrams.js b/e2e-testing/docs/assets/javascripts/diagrams.js new file mode 100644 index 00000000..8d2bd294 --- /dev/null +++ b/e2e-testing/docs/assets/javascripts/diagrams.js @@ -0,0 +1,230 @@ +/******************************************************************************** + * Copyright (c) 2026 Contributors to the Eclipse Foundation + * Copyright (c) 2026 Catena-X Automotive Network e.V. + * + * See the NOTICE file(s) distributed with this work for additional + * information regarding copyright ownership. + * + * This program and the accompanying materials are made available under the + * terms of the Apache License, Version 2.0 which is available at + * https://www.apache.org/licenses/LICENSE-2.0. + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + * + * SPDX-License-Identifier: Apache-2.0 + * Assisted-By: Claude Code (claude-opus-5-5) + ********************************************************************************/ + +/** + * Zoom and pan for diagrams: Mermaid diagrams and large images (draw.io exports). + * + * Each diagram gets a toolbar with zoom out, the zoom level (tap to fit again), zoom + * in and full screen. A zoomed diagram scrolls inside its frame: swipe on a phone, + * scroll or drag with the mouse on a desktop. Ctrl or Cmd with the mouse wheel zooms + * too, and Escape leaves full screen. + * + * Material draws a Mermaid diagram inside a closed shadow root, so the SVG cannot be + * resized from outside; the CSS zoom property scales the element that hosts it, + * which keeps the drawing sharp and makes the frame scroll. Taken from the + * Eclipse Tractus-X EDC documentation (docs/assets/javascripts/diagrams.js). + */ +(function () { + "use strict"; + + var STEPS = [0.5, 0.75, 1, 1.25, 1.5, 2, 2.5, 3, 4]; + var MIN_IMAGE_WIDTH = 600; + var ICONS = { + out: '', + in: '', + full: '', + exit: '', + }; + + function icon(name) { + return '"; + } + + function button(cls, label, html) { + var b = document.createElement("button"); + b.type = "button"; + b.className = "tx-diagram__button " + cls; + b.title = label; + b.setAttribute("aria-label", label); + b.innerHTML = html; + return b; + } + + function setUp(content) { + if (content.closest(".tx-diagram")) { + return; + } + var figure = document.createElement("div"); + figure.className = "tx-diagram"; + var bar = document.createElement("div"); + bar.className = "tx-diagram__bar"; + var viewport = document.createElement("div"); + viewport.className = "tx-diagram__viewport"; + content.parentNode.insertBefore(figure, content); + figure.appendChild(bar); + figure.appendChild(viewport); + viewport.appendChild(content); + + var zoomOut = button("tx-diagram__out", "Zoom out", icon("out")); + var level = button("tx-diagram__level", "Fit to the frame", "100%"); + var zoomIn = button("tx-diagram__in", "Zoom in", icon("in")); + var full = button("tx-diagram__full", "Full screen", icon("full")); + [zoomOut, level, zoomIn, full].forEach(function (b) { bar.appendChild(b); }); + + var scale = 1; + var base = 0; + + function apply(next, anchorX, anchorY) { + next = Math.min(STEPS[STEPS.length - 1], Math.max(STEPS[0], next)); + // Keep the point under the anchor (the centre, or the mouse) in place. + var ax = anchorX === undefined ? viewport.clientWidth / 2 : anchorX; + var ay = anchorY === undefined ? viewport.clientHeight / 2 : anchorY; + var x = (viewport.scrollLeft + ax) / scale; + var y = (viewport.scrollTop + ay) / scale; + if (next === 1) { + content.style.zoom = ""; + content.style.width = ""; + content.style.maxWidth = ""; + base = 0; + } else { + if (!base) { + base = content.getBoundingClientRect().width / scale; + } + content.style.maxWidth = "none"; + content.style.width = base + "px"; + content.style.zoom = String(next); + } + scale = next; + viewport.scrollLeft = x * scale - ax; + viewport.scrollTop = y * scale - ay; + level.textContent = Math.round(scale * 100) + "%"; + zoomOut.disabled = scale <= STEPS[0]; + zoomIn.disabled = scale >= STEPS[STEPS.length - 1]; + figure.classList.toggle("tx-diagram--zoomed", scale > 1); + } + + function step(direction, anchorX, anchorY) { + var next = direction > 0 + ? STEPS.find(function (s) { return s > scale + 0.001; }) + : STEPS.slice().reverse().find(function (s) { return s < scale - 0.001; }); + if (next) { + apply(next, anchorX, anchorY); + } + } + + function fit() { + apply(1); + viewport.scrollLeft = 0; + viewport.scrollTop = 0; + } + + function onKey(event) { + if (event.key === "Escape") { + toggleFull(false); + } + } + + function toggleFull(on) { + var isFull = figure.classList.contains("tx-diagram--full"); + if (on === isFull) { + return; + } + figure.classList.toggle("tx-diagram--full", on); + document.documentElement.classList.toggle("tx-diagram-open", on); + full.innerHTML = icon(on ? "exit" : "full"); + full.title = on ? "Leave full screen" : "Full screen"; + full.setAttribute("aria-label", full.title); + fit(); + if (on) { + document.addEventListener("keydown", onKey); + } else { + document.removeEventListener("keydown", onKey); + full.focus(); + } + } + + zoomOut.addEventListener("click", function () { step(-1); }); + zoomIn.addEventListener("click", function () { step(1); }); + level.addEventListener("click", fit); + full.addEventListener("click", function () { + toggleFull(!figure.classList.contains("tx-diagram--full")); + }); + + viewport.addEventListener("wheel", function (event) { + if (!event.ctrlKey && !event.metaKey) { + return; + } + event.preventDefault(); + var rect = viewport.getBoundingClientRect(); + step(event.deltaY < 0 ? 1 : -1, event.clientX - rect.left, event.clientY - rect.top); + }, { passive: false }); + + // Drag to move around with the mouse; touch screens scroll the frame natively. + var drag = null; + viewport.addEventListener("pointerdown", function (event) { + var scrollable = viewport.scrollWidth > viewport.clientWidth || viewport.scrollHeight > viewport.clientHeight; + if (event.pointerType !== "mouse" || event.button !== 0 || !scrollable) { + return; + } + drag = { x: event.clientX, y: event.clientY, left: viewport.scrollLeft, top: viewport.scrollTop }; + viewport.setPointerCapture(event.pointerId); + viewport.classList.add("tx-diagram__viewport--dragging"); + event.preventDefault(); + }); + viewport.addEventListener("pointermove", function (event) { + if (drag) { + viewport.scrollLeft = drag.left - (event.clientX - drag.x); + viewport.scrollTop = drag.top - (event.clientY - drag.y); + } + }); + function endDrag() { + drag = null; + viewport.classList.remove("tx-diagram__viewport--dragging"); + } + viewport.addEventListener("pointerup", endDrag); + viewport.addEventListener("pointercancel", endDrag); + } + + function isDiagramImage(img) { + return img.naturalWidth >= MIN_IMAGE_WIDTH && + !img.closest("a, .grid, .tx-chips, .md-header, .md-footer") && + !img.classList.contains("twemoji") && + !img.hasAttribute("width"); + } + + function scan() { + document.querySelectorAll(".md-typeset div.mermaid").forEach(setUp); + document.querySelectorAll(".md-content .md-typeset img").forEach(function (img) { + if (img.complete) { + if (isDiagramImage(img)) { + setUp(img); + } + } else if (!img.dataset.txDiagramWait) { + img.dataset.txDiagramWait = "1"; + img.addEventListener("load", function () { + if (isDiagramImage(img)) { + setUp(img); + } + }, { once: true }); + } + }); + } + + // Material renders Mermaid after the page is shown, and again after each instant navigation. + new MutationObserver(scan).observe(document.body, { childList: true, subtree: true }); + if (typeof document$ !== "undefined") { + document$.subscribe(function () { + document.documentElement.classList.remove("tx-diagram-open"); + scan(); + }); + } + scan(); +})(); diff --git a/e2e-testing/docs/assets/stylesheets/tractusx.css b/e2e-testing/docs/assets/stylesheets/tractusx.css index 68e2c406..ed072bc2 100644 --- a/e2e-testing/docs/assets/stylesheets/tractusx.css +++ b/e2e-testing/docs/assets/stylesheets/tractusx.css @@ -38,8 +38,8 @@ --tx-soft: #2a1f0d; } -.md-header, -.md-tabs { +/* One orange line, under the header; the tabs below it have none. */ +.md-header { border-bottom: 1px solid var(--tx-orange); } @@ -106,3 +106,657 @@ .md-footer-meta { border-top: 1px solid var(--tx-orange); } + +/* ── Diagrams ──────────────────────────────────────────────────────────── + assets/javascripts/diagrams.js wraps each Mermaid diagram and large image + in a card with a zoom bar; the card scrolls when zoomed in. Taken from the + Eclipse Tractus-X EDC documentation. */ + +/* Set where Material sets the scheme colours, so they follow light and dark. */ +[data-md-color-scheme] { + --tx-line: var(--md-default-fg-color--lightest); + --tx-line-strong: var(--md-default-fg-color--lighter); + --tx-card: var(--md-default-bg-color); +} + +[data-md-color-scheme="slate"] { + --tx-line: #2e2e2e; + --tx-line-strong: #4a4a4a; + --tx-card: #141414; +} + +.md-typeset .tx-diagram { + display: flex; + flex-direction: column; + margin: 1.2em 0; + overflow: hidden; + border: 1px solid var(--tx-line); + border-radius: 0.4rem; + background-color: var(--md-default-bg-color); +} + +.tx-diagram__bar { + display: flex; + justify-content: flex-end; + gap: 0.25rem; + padding: 0.4rem 0.45rem 0; + /* Controls, not text: quick clicks on + or − must not select the zoom level. */ + user-select: none; + -webkit-user-select: none; +} + +.tx-diagram__button { + display: inline-grid; + place-items: center; + min-width: 1.8rem; + height: 1.8rem; + margin: 0; + padding: 0 0.4rem; + border: 1px solid var(--tx-line-strong); + border-radius: 0.2rem; + background: var(--md-default-bg-color); + color: var(--md-default-fg-color--light); + font-family: var(--md-text-font-family); + font-size: 0.62rem; + font-weight: 700; + font-variant-numeric: tabular-nums; + cursor: pointer; + /* Repeated taps zoom the diagram, not the page. */ + touch-action: manipulation; + transition: background-color 0.2s, color 0.2s, border-color 0.2s; +} + +.tx-diagram__button svg { + width: 1rem; + height: 1rem; + fill: currentcolor; +} + +.tx-diagram__level { + min-width: 3rem; +} + +.tx-diagram__button:hover:not(:disabled), +.tx-diagram__button:focus-visible { + border-color: var(--tx-orange); + background: var(--tx-orange); + color: #000000; +} + +.tx-diagram__button:disabled { + opacity: 0.4; + cursor: default; +} + +.tx-diagram__viewport { + overflow: auto; + overscroll-behavior: contain; + padding: 0.6rem 0.8rem 0.8rem; + text-align: center; + cursor: default; +} + +.md-typeset .tx-diagram__viewport > .mermaid { + margin: 0; + overflow: visible; +} + +.md-typeset .tx-diagram__viewport > img { + vertical-align: top; + border: 0; +} + +.tx-diagram--zoomed .tx-diagram__viewport { + max-height: 80vh; + cursor: grab; +} + +.tx-diagram__viewport--dragging { + cursor: grabbing; + user-select: none; +} + +/* Full screen: the figure covers the page, the bar stays on top. */ +.md-typeset .tx-diagram--full { + position: fixed; + inset: 0; + z-index: 10; + margin: 0; + border: 0; + border-radius: 0; +} + +.tx-diagram--full .tx-diagram__bar { + padding: 0.6rem 0.8rem; + border-bottom: 1px solid var(--tx-line); +} + +.tx-diagram--full .tx-diagram__viewport { + display: flex; + flex: 1; + max-height: none; +} + +/* Full width and centred vertically; auto margins still let a zoomed diagram + scroll to every edge (the script sets an inline width while zoomed). */ +.md-typeset .tx-diagram--full .tx-diagram__viewport > * { + flex: none; + width: 100%; + margin: auto; +} + +.tx-diagram-open, +.tx-diagram-open body { + overflow: hidden; +} + +/* ── Page navigation ───────────────────────────────────────────────────── + hooks/page_nav.py turns the "← previous · Home · next →" line at the end + of each page into Previous on the left, Home in the middle, Next on the + right. */ + +.md-typeset .tx-pager { + display: grid; + grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); + align-items: stretch; + gap: 0.8rem; + margin: 2.5rem 0 2rem; + padding-top: 1.4rem; + border-top: 1px solid var(--tx-line); +} + +.md-typeset .tx-pager__link { + display: flex; + align-items: center; + gap: 0.8rem; + min-width: 0; + padding: 0.75rem 1rem; + border: 1px solid var(--tx-line); + border-radius: 0.25rem; + background: var(--tx-card); + color: var(--md-default-fg-color); + box-shadow: 0 1px 2px rgb(0 0 0 / 6%); + transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s; +} + +.md-typeset .tx-pager__link--prev { + justify-self: start; +} + +.md-typeset .tx-pager__link--next { + grid-column: 3; + justify-self: end; + flex-direction: row-reverse; + text-align: right; +} + +.md-typeset .tx-pager__link:hover, +.md-typeset .tx-pager__link:focus-visible { + border-color: var(--tx-orange); + color: var(--md-default-fg-color); + box-shadow: 0 6px 18px rgb(250 160 35 / 18%); + transform: translateY(-1px); +} + +.tx-pager__arrow { + flex: none; + width: 2rem; + height: 2rem; + padding: 0.4rem; + border-radius: 0.2rem; + background: var(--tx-soft); + fill: var(--tx-orange-dark); + transition: background-color 0.2s, fill 0.2s, transform 0.2s; +} + +[data-md-color-scheme="slate"] .tx-pager__arrow { + fill: var(--tx-orange); +} + +.md-typeset .tx-pager__link:hover .tx-pager__arrow { + background: var(--tx-orange); + fill: #000000; +} + +.md-typeset .tx-pager__link--prev:hover .tx-pager__arrow { + transform: translateX(-3px); +} + +.md-typeset .tx-pager__link--next:hover .tx-pager__arrow { + transform: translateX(3px); +} + +.tx-pager__text { + display: flex; + flex-direction: column; + min-width: 0; +} + +.tx-pager__dir { + font-size: 0.62rem; + font-weight: 700; + letter-spacing: 0.08em; + text-transform: uppercase; + color: var(--md-default-fg-color--light); +} + +.tx-pager__title { + font-size: 0.8rem; + font-weight: 700; + line-height: 1.35; +} + +.tx-pager__middle { + display: flex; + align-items: center; + gap: 0.4rem; + grid-column: 2; + grid-row: 1; +} + +.md-typeset .tx-pager__home { + display: inline-flex; + align-items: center; + gap: 0.35rem; + padding: 0.4rem 0.8rem; + border: 1px solid var(--tx-line); + border-radius: 0.25rem; + color: var(--md-default-fg-color--light); + font-size: 0.68rem; + font-weight: 700; + transition: border-color 0.2s, color 0.2s; +} + +.tx-pager__home svg { + width: 0.9rem; + height: 0.9rem; + fill: currentcolor; +} + +.md-typeset .tx-pager__home:hover, +.md-typeset .tx-pager__home:focus-visible { + border-color: var(--tx-orange); + color: var(--md-default-fg-color); +} + +/* Phones: Previous and Next share the row, Home goes below them. */ +@media screen and (max-width: 44.9375em) { + .md-typeset .tx-pager { + grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); + } + + .md-typeset .tx-pager__link--next { + grid-column: 2; + } + + .tx-pager__middle { + grid-column: 1 / -1; + grid-row: 2; + justify-content: center; + } + + .md-typeset .tx-pager__link { + padding: 0.6rem 0.7rem; + gap: 0.5rem; + } +} + +/* ── Buttons ───────────────────────────────────────────────────────────── + Material draws the plain button in the primary colour, which is black here: + invisible on the dark scheme. Outline it in the text colour instead. */ + +.md-typeset .md-button { + border-radius: 0.25rem; + transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.2s; +} + +.md-typeset .md-button:not(.md-button--primary) { + border-color: var(--tx-line-strong); + color: var(--md-default-fg-color); +} + +.md-typeset .md-button:not(.md-button--primary):hover, +.md-typeset .md-button:not(.md-button--primary):focus-visible { + border-color: var(--tx-orange); + background: transparent; + color: var(--md-typeset-a-color); +} + +.md-typeset .md-button:hover { + transform: translateY(-1px); +} + +/* ── Header ────────────────────────────────────────────────────────────── + Logo and title together on the left, search in the middle, the repository + and the light/dark switch on the right. */ + +/* Material shows the logo in the header only on wide screens (in the menu + drawer otherwise); keep that, and centre it with the title. */ +@media screen and (min-width: 76.25em) { + .md-header__button.md-logo { + display: flex; + align-items: center; + margin: 0.2rem 0 0.2rem 0.2rem; + padding: 0.3rem; + } + + /* The title close to the logo. [dir] outweighs Material's own + [dir=ltr] .md-header__title margin of 1rem. */ + [dir] .md-header__title { + margin-left: 0.2rem; + } +} + +.md-header__button.md-logo img, +.md-header__button.md-logo svg { + height: 1.6rem; + width: auto; +} + +.md-header__title { + margin-left: 0.5rem; +} + +/* The header's controls: "About this tutorial" and the light/dark switch sit + together, last in the header, after the repository. Every icon button is + the same 1.8rem target, centred, with a soft hover. */ +.md-header__option[data-md-component="palette"] { + order: 1; + align-items: center; + align-self: center; + gap: 0.4rem; + margin: 0 0.2rem 0 0.6rem; +} + +.md-header__option[data-md-component="palette"] .md-header__button { + box-sizing: border-box; + width: 1.8rem; + height: 1.8rem; + margin: 0; + padding: 0.3rem; + border-radius: 0.2rem; + transition: background-color 150ms ease, color 150ms ease; +} + +.md-header__option[data-md-component="palette"] .md-header__button svg { + width: 1.2rem; + height: 1.2rem; +} + +.md-header__option[data-md-component="palette"] .md-header__button:hover, +.md-header__option[data-md-component="palette"] .md-header__button:focus-visible { + background: rgb(255 255 255 / 12%); + color: var(--tx-orange); + opacity: 1; +} + +.tx-about-button:popover-open, +.tx-about-button[aria-expanded="true"] { + color: var(--tx-orange); +} + +@media screen and (min-width: 60em) { + /* Title and repository take equal room on each side, so the search sits + in the middle. */ + .md-header__title { + flex: 1 1 0; + } + + .md-header__source { + display: flex; + flex: 1 1 0; + justify-content: flex-end; + width: auto; + max-width: none; + margin-left: 1rem; + } + + /* The full repository name, not "eclipse-tractusx/tutorial-r…". */ + .md-source__repository { + max-width: none; + } +} + +/* ── Home: the intro next to the TestLab logo ──────────────────────────── */ + +.md-typeset .tx-hero { + display: flex; + align-items: center; + gap: 2rem; +} + +.md-typeset .tx-hero__text { + flex: 1 1 0; + min-width: 0; +} + +.md-typeset .tx-hero__logo { + flex: none; + width: 9rem; + height: auto; + border: 0; + border-radius: 0; +} + +/* Phones: the logo above the text, smaller. */ +@media screen and (max-width: 44.9375em) { + .md-typeset .tx-hero { + flex-direction: column-reverse; + align-items: flex-start; + gap: 0.5rem; + } + + .md-typeset .tx-hero__logo { + width: 7rem; + } +} + +/* The search field in the header gets a border, orange while it is in use. */ +@media screen and (min-width: 60em) { + .md-search__form { + border: 1px solid rgb(255 255 255 / 35%); + border-radius: 0.25rem; + transition: border-color 0.2s, background-color 0.2s; + } + + .md-search__form:hover { + border-color: rgb(255 255 255 / 60%); + } + + [data-md-toggle="search"]:checked ~ .md-header .md-search__form { + border-color: var(--tx-orange); + border-radius: 0.25rem 0.25rem 0 0; + } +} + +/* "About this tutorial": the info button in the header, left of the theme + switch, and the panel it opens (hooks/about.py). */ +.tx-about { + position: fixed; + inset: 3.2rem 0.8rem auto auto; + width: min(22rem, calc(100vw - 1.6rem)); + max-height: calc(100vh - 4.4rem); + margin: 0; + padding: 1rem 1.2rem 1.1rem; + overflow: auto; + border: 1px solid var(--tx-line-strong); + border-radius: 0.4rem; + background: var(--md-default-bg-color); + color: var(--md-default-fg-color); + box-shadow: 0 0.8rem 2rem rgb(0 0 0 / 25%); + font-size: 0.7rem; + line-height: 1.5; +} + +.tx-about::backdrop { + background: transparent; +} + +.tx-about__head { + display: flex; + align-items: center; + justify-content: space-between; + gap: 1rem; +} + +.tx-about h2 { + margin: 0; + font-size: 0.85rem; + font-weight: 800; +} + +.tx-about__close { + width: 1.6rem; + height: 1.6rem; + border-radius: 0.2rem; + color: var(--md-default-fg-color--light); + font-size: 1.1rem; + line-height: 1; + cursor: pointer; +} + +.tx-about__close:hover, +.tx-about__close:focus-visible { + background: var(--md-default-fg-color--lightest); + color: var(--md-default-fg-color); +} + +.tx-about__facts { + display: grid; + grid-template-columns: repeat(3, minmax(0, 1fr)); + gap: 0.6rem; + margin: 0.9rem 0 0; +} + +.tx-about dt, +.tx-about h3 { + margin: 0; + color: var(--md-default-fg-color--light); + font-size: 0.55rem; + font-weight: 700; + letter-spacing: 0.06em; + text-transform: uppercase; +} + +.tx-about h3 { + margin: 1rem 0 0.45rem; +} + +.tx-about dd { + margin: 0.1rem 0 0; + font-weight: 600; +} + +.tx-about__authors, +.tx-about__history { + margin: 0; + padding: 0; + list-style: none; +} + +.tx-about__authors { + display: grid; + grid-template-columns: repeat(2, minmax(0, 1fr)); + gap: 0.4rem 0.8rem; +} + +.tx-about__authors a { + display: flex; + align-items: center; + gap: 0.45rem; + overflow: hidden; + color: inherit; + text-overflow: ellipsis; + white-space: nowrap; +} + +.tx-about__authors a:hover { + color: var(--md-accent-fg-color); +} + +.tx-about__authors img { + flex: none; + width: 1.3rem; + height: 1.3rem; + border-radius: 50%; + background: var(--md-default-fg-color--lightest); +} + +.tx-about__more { + color: var(--md-default-fg-color--light); +} + +.tx-about__history li + li { + margin-top: 0.3rem; +} + +.tx-about__history span { + color: var(--md-default-fg-color--light); +} + +.tx-about__links { + margin: 1rem 0 0; + padding-top: 0.7rem; + border-top: 1px solid var(--tx-line); + color: var(--md-default-fg-color--light); +} + +/* The menu and search icons get the same 1.8rem target. */ +.md-header__inner > label.md-header__button.md-icon { + box-sizing: border-box; + width: 1.8rem; + height: 1.8rem; + margin: 0.2rem; + padding: 0.3rem; + border-radius: 0.2rem; + transition: background-color 150ms ease; +} + +.md-header__inner > label.md-header__button.md-icon svg { + width: 1.2rem; + height: 1.2rem; +} + +.md-header__inner > label.md-header__button.md-icon:hover { + background: rgb(255 255 255 / 12%); +} + +/* Phones: a smaller title that fits, and breathing room at the right edge. */ +@media screen and (max-width: 44.9375em) { + .md-header { + height: 3rem; + } + + .md-header__inner { + align-items: center; + height: 3rem; + padding: 0 0.4rem; + } + + .md-header__title { + margin-left: 0.3rem; + font-size: 0.8rem; + } + + .md-header__option[data-md-component="palette"] { + margin: 0 0.2rem; + } +} + +/* The About button is a text label: a thin outline, a low radius, no pill. */ +.md-header__option[data-md-component="palette"] .md-header__button.tx-about-button { + width: auto; + padding: 0 0.6rem; + border: 1px solid rgb(255 255 255 / 45%); + border-radius: 0.15rem; + font-size: 0.7rem; + font-weight: 600; + letter-spacing: 0.02em; + line-height: 1; + height: 1.6rem; +} +.md-header__option[data-md-component="palette"] .md-header__button.tx-about-button:hover, +.md-header__option[data-md-component="palette"] .md-header__button.tx-about-button:focus-visible, +.tx-about-button:popover-open { + border-color: var(--tx-orange); +} diff --git a/e2e-testing/docs/assets/testlab/testlab-logo-dark.png b/e2e-testing/docs/assets/testlab/testlab-logo-dark.png new file mode 100644 index 00000000..20f40b4c Binary files /dev/null and b/e2e-testing/docs/assets/testlab/testlab-logo-dark.png differ diff --git a/e2e-testing/docs/assets/testlab/testlab-logo-dark.png.license b/e2e-testing/docs/assets/testlab/testlab-logo-dark.png.license new file mode 100644 index 00000000..b6ca7258 --- /dev/null +++ b/e2e-testing/docs/assets/testlab/testlab-logo-dark.png.license @@ -0,0 +1,10 @@ +## NOTICE + +The Eclipse Tractus-X SDK TestLab logo, taken from the TestLab repository +(docs/media) and scaled down. + +This work is licensed under the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/legalcode). + +- SPDX-License-Identifier: CC-BY-4.0 +- SPDX-FileCopyrightText: 2026 Catena-X Automotive Network e.V. +- Source URL: diff --git a/e2e-testing/docs/assets/testlab/testlab-logo-light.png b/e2e-testing/docs/assets/testlab/testlab-logo-light.png new file mode 100644 index 00000000..1a7034a0 Binary files /dev/null and b/e2e-testing/docs/assets/testlab/testlab-logo-light.png differ diff --git a/e2e-testing/docs/assets/testlab/testlab-logo-light.png.license b/e2e-testing/docs/assets/testlab/testlab-logo-light.png.license new file mode 100644 index 00000000..b6ca7258 --- /dev/null +++ b/e2e-testing/docs/assets/testlab/testlab-logo-light.png.license @@ -0,0 +1,10 @@ +## NOTICE + +The Eclipse Tractus-X SDK TestLab logo, taken from the TestLab repository +(docs/media) and scaled down. + +This work is licensed under the [CC-BY-4.0](https://creativecommons.org/licenses/by/4.0/legalcode). + +- SPDX-License-Identifier: CC-BY-4.0 +- SPDX-FileCopyrightText: 2026 Catena-X Automotive Network e.V. +- Source URL: diff --git a/e2e-testing/docs/index.md b/e2e-testing/docs/index.md index 98074f26..2d564327 100644 --- a/e2e-testing/docs/index.md +++ b/e2e-testing/docs/index.md @@ -2,14 +2,24 @@ **7th Eclipse Tractus-X Community Days · 3–4 December 2026 · ARENA2036, Stuttgart** +
+
+ In about an hour your team builds an end-to-end test for one Eclipse Tractus-X product, with an AI assistant doing the typing and you doing the thinking. You leave with a pull request in that product's repository and a test that runs on every change. No test framework to learn. No code to write. A laptop and curiosity are enough. -[Start the tutorial](tutorial/01-start-here.md){ .md-button .md-button--primary } -[New here? Read the story first](story/why.md){ .md-button } +
+ +![Eclipse Tractus-X SDK TestLab](assets/testlab/testlab-logo-light.png#only-light){ .tx-hero__logo width="200" } +![Eclipse Tractus-X SDK TestLab](assets/testlab/testlab-logo-dark.png#only-dark){ .tx-hero__logo width="200" } + +
+ +[Get started](tutorial/01-start-here.md){ .md-button .md-button--primary } +[New here? Read the introduction first](story/why.md){ .md-button } ## The problem we solve together @@ -55,7 +65,7 @@ run needed closer to 90: if your session is longer, spend the extra time on chap | --- | --- | | A participant, ten minutes before the workshop | [Before you come](reference/prepare.md) | | A participant, and the clock is running | [1 · Start here](tutorial/01-start-here.md) | -| Curious about the words on the slides | [Glossary](reference/glossary.md) and [the story](story/why.md) | +| Curious about the words on the slides | [Glossary](reference/glossary.md) and [the introduction](story/why.md) | | An administrator of the session | [For administrators](admin/index.md) | ## What you work with diff --git a/e2e-testing/docs/reference/catalog.md b/e2e-testing/docs/reference/catalog.md index 315c5996..e2bdd17a 100644 --- a/e2e-testing/docs/reference/catalog.md +++ b/e2e-testing/docs/reference/catalog.md @@ -12,7 +12,7 @@ Collected on 2026-11-24 from the `eclipse-tractusx` organization: the repository These need only what every team gets: connector, Digital Twin Registry, wallet, BDRS. -| Product | Suggested E2E scenario | Needs | In the Umbrella | Difficulty | +| Product | Suggested E2E scenario | Needs | In the developer toolbox | Difficulty | | --- | --- | --- | --- | --- | | **Tractus-X EDC (connector)**
[`tractusx-edc`](https://github.com/eclipse-tractusx/tractusx-edc) | A provider offers an asset under a policy, and a partner finds it in the catalog, negotiates a contract and pulls the data. | connector, wallet, BDRS | Yes | Starter | | **Digital Twin Registry**
[`sldt-digital-twin-registry`](https://github.com/eclipse-tractusx/sldt-digital-twin-registry) | A twin its owner registers can be read back, and a partner finds and reads it through the owner's connector. | connector, Digital Twin Registry, wallet, BDRS | Yes | Starter | @@ -24,7 +24,7 @@ These need only what every team gets: connector, Digital Twin Registry, wallet, Build, validate and compile the test in the workshop. Run it where the product is deployed, or in CI once the workflow can bring the product up. -| Product | Suggested E2E scenario | Needs | In the Umbrella | Difficulty | +| Product | Suggested E2E scenario | Needs | In the developer toolbox | Difficulty | | --- | --- | --- | --- | --- | | **Discovery Finder**
[`sldt-discovery-finder`](https://github.com/eclipse-tractusx/sldt-discovery-finder) | A registered BPN Discovery endpoint is returned for its identifier type, and an unknown type returns an empty list. | Discovery Finder, identity provider | Yes | Starter | | **BPN Discovery**
[`sldt-bpn-discovery`](https://github.com/eclipse-tractusx/sldt-bpn-discovery) | An identifier registered for a BPN is found again by a search, and it is gone after it was deleted. | BPN Discovery, identity provider | Yes | Starter | @@ -77,7 +77,7 @@ Build, validate and compile the test in the workshop. Run it where the product i | E2E Data Exchange Test Service | Needs the service deployed with a Portal and its identity provider. | | Dataspace Management | Needs the service and its identity provider deployed. Its metafile names a leading repository that does not exist yet. | | Tractus-X SDK Services | Needs both services deployed next to a connector. | -| Tractus-X Starter Kit | Runs in Docker Compose, not in the Umbrella: the workflow needs its own bring-up step. | +| Tractus-X Starter Kit | Runs in Docker Compose, not in the developer toolbox: the workflow needs its own bring-up step. | | Tractus-X TestLab | Already has its E2E test as a TCK project. Read it as the reference. | ## More scenarios diff --git a/e2e-testing/docs/reference/glossary.md b/e2e-testing/docs/reference/glossary.md index 7cc37e20..effa7ae3 100644 --- a/e2e-testing/docs/reference/glossary.md +++ b/e2e-testing/docs/reference/glossary.md @@ -151,10 +151,18 @@ The service in which a provider lists its digital twins so that partners can fin Also called DTR. An entry is a **shell descriptor**; the pointers to the actual data are **submodel descriptors**. +### Eclipse Tractus-X developer toolbox + +The small dataspace the E2E workflow creates in memory inside the GitHub runner: two +connectors, two wallets, a Digital Twin Registry, a BDRS and an IssuerService in a +Kubernetes cluster in Docker. It is built from the [Umbrella](#umbrella) chart with a fixed +dataspace configuration, and it is thrown away when the job ends. + ### Umbrella The Tractus-X Umbrella is a Helm chart that deploys the Tractus-X products together as one -small dataspace. The workflow uses it to create a test environment inside the runner. +small dataspace. The [developer toolbox](#eclipse-tractus-x-developer-toolbox) is built +from it. ## The repository diff --git a/e2e-testing/docs/reference/prepare.md b/e2e-testing/docs/reference/prepare.md index 8bb41e59..fbc73459 100644 --- a/e2e-testing/docs/reference/prepare.md +++ b/e2e-testing/docs/reference/prepare.md @@ -76,7 +76,7 @@ You should see the commands `validate`, `compile`, `inspect` and `run`. --- -[Home](../index.md) · [Start the tutorial →](../tutorial/01-start-here.md) +[Home](../index.md) · [Get started →](../tutorial/01-start-here.md) ## NOTICE diff --git a/e2e-testing/docs/reference/troubleshooting.md b/e2e-testing/docs/reference/troubleshooting.md index f1daa942..5544936f 100644 --- a/e2e-testing/docs/reference/troubleshooting.md +++ b/e2e-testing/docs/reference/troubleshooting.md @@ -52,8 +52,8 @@ Find the symptom, try the fix, raise your hand if it does not help. | Where | Meaning | | --- | --- | | **Validate and compile** | The project in the repository is not the one that compiled in the IDE. Did all files arrive? Check `tck/e2e/index.yaml` and `tck/e2e/tests/`. | -| A deploy step of **Run in Tractus-X Umbrella** | The environment, not your test. Run the job again. | -| **testlab run** | A finding, or a value your test expects that the Umbrella does not provide. Read **E2E test result** on the run page. | +| A deploy step of **Run in Eclipse Tractus-X developer toolbox** | The environment, not your test. Run the job again. | +| **testlab run** | A finding, or a value your test expects that the developer toolbox does not provide. Read **E2E test result** on the run page. | --- diff --git a/e2e-testing/docs/reference/workflow.md b/e2e-testing/docs/reference/workflow.md index ba741f54..dec25e5d 100644 --- a/e2e-testing/docs/reference/workflow.md +++ b/e2e-testing/docs/reference/workflow.md @@ -44,22 +44,23 @@ That is all a product repository needs. The work happens in the flowchart LR PR["Pull request"] --> V["Validate and compile
about 30 seconds"] V --> P[".tck package"] - P --> E["Run in Tractus-X Umbrella
about 5 minutes"] + P --> E["Run in Eclipse Tractus-X developer toolbox
about 5 minutes"] E --> R["PASS or FAIL
on the pull request"] ``` | Job | Needs | Tells the maintainers | | --- | --- | --- | | **Validate and compile** | Nothing but Python | The test project is well-formed and still compiles. | -| **Run in Tractus-X Umbrella** | A dataspace, which the job creates itself | The product still keeps its promise. | +| **Run in Eclipse Tractus-X developer toolbox** | A dataspace, which the job creates itself | The product still keeps its promise. | On the fork where it was proven, the first job took 23 seconds and the second 4 minutes 57 seconds. -The second job creates a Kubernetes cluster inside the runner, deploys two connectors, two -wallets, a Digital Twin Registry, a BDRS and an IssuerService from the -[Tractus-X Umbrella](glossary.md#umbrella), issues the participants' credentials, runs the -package and throws everything away. No secrets, no external cluster. +The second job starts the [Eclipse Tractus-X developer toolbox](glossary.md#eclipse-tractus-x-developer-toolbox): a Kubernetes +cluster inside the runner with two connectors, two wallets, a Digital Twin Registry, a BDRS +and an IssuerService, deployed from the Tractus-X Umbrella chart. It issues the +participants' credentials, runs the package and throws everything away. No secrets, no +external cluster. It does the same job as TestLab's own [E2E workflow](https://github.com/eclipse-tractusx/tractusx-testlab/blob/main/.github/workflows/e2e-umbrella.yml): @@ -71,9 +72,9 @@ its dataspace steps are taken from there. | --- | --- | --- | | `tck-directory` | `tck/e2e` | Point at the folder that holds `index.yaml`. | | `testlab-version` | `1.0.0a24` | Pin the TestLab version that validates, compiles and runs. | -| `run-in-umbrella` | `true` | Set to `false` to only validate and compile, for a product the Umbrella cannot run yet. | +| `run-in-toolbox` | `true` | Set to `false` to only validate and compile, for a product the developer toolbox cannot run yet. | | `config` | none | Add run values of your own: a YAML file with `variables:`. | -| `umbrella-values` | none | Add Helm values, for example the image built from this pull request. | +| `toolbox-values` | none | Add Helm values to the developer toolbox, for example the image built from this pull request. | ## Values your test gets for free @@ -98,17 +99,17 @@ variables: ## Test the image from your pull request -Out of the box the Umbrella deploys **released** images. To test the code of the pull +Out of the box the developer toolbox deploys **released** images. To test the code of the pull request, build your image in a job of your own and pass its tag as Helm values: ```yaml with: tck-directory: tck/e2e - umbrella-values: tck/e2e/ci/values.yaml + toolbox-values: tck/e2e/ci/values.yaml ``` > [!NOTE] -> The `umbrella-values` input is applied by the workflow, but this page's example of +> The `toolbox-values` input is applied by the workflow, but this page's example of > building and loading an image was **not run**. Loading a locally built image into the > cluster needs one more step in your own workflow. @@ -120,13 +121,13 @@ request, build your image in a job of your own and pass its tag as Helm values: | Real run on a fork of this repository, worked example | 3 tests passed | | Real run on a fork of this repository, template | 2 tests passed | | Real run in a fork of `sldt-digital-twin-registry`, called across repositories, with the project exported from the IDE | 3 tests passed, 5 minutes 25 seconds in total | -| `config` and `umbrella-values` inputs | **Not run** with a file of a calling repository | +| `config` and `toolbox-values` inputs | **Not run** with a file of a calling repository | ## When it is red 1. Open the failed job and read **E2E test result** on the run page. 2. A failed **check** is a finding: the product answered, and not as promised. -3. A failed **deploy** step is the environment. Download the `umbrella-diagnostics` +3. A failed **deploy** step is the environment. Download the `toolbox-diagnostics` artifact: it holds the state and the logs of every pod. --- diff --git a/e2e-testing/docs/story/ai.md b/e2e-testing/docs/story/ai.md index 909187a2..c038fe3d 100644 --- a/e2e-testing/docs/story/ai.md +++ b/e2e-testing/docs/story/ai.md @@ -1,6 +1,6 @@ # Where the AI helps -The story · 4 of 4 · optional reading, 3 minutes +Introduction · 4 of 4 · optional reading, 3 minutes ## You decide what. It writes how. @@ -48,7 +48,7 @@ server with an OpenAI-compatible API). --- -[← What a test is made of](test-anatomy.md) · [Home](../index.md) · [Start the tutorial →](../tutorial/01-start-here.md) +[← What a test is made of](test-anatomy.md) · [Home](../index.md) · [Get started →](../tutorial/01-start-here.md) ## NOTICE diff --git a/e2e-testing/docs/story/dataspace.md b/e2e-testing/docs/story/dataspace.md index bcad23d1..9412cab0 100644 --- a/e2e-testing/docs/story/dataspace.md +++ b/e2e-testing/docs/story/dataspace.md @@ -1,6 +1,6 @@ # A dataspace in five minutes -The story · 2 of 4 · optional reading, 5 minutes +Introduction · 2 of 4 · optional reading, 5 minutes You can follow the tutorial without this page. Read it if words like *connector* or *BPN* are new, or if you want to know what your test is actually doing. @@ -74,8 +74,8 @@ Registry and a BDRS. One side plays **your company with your product**. The othe **the partner**, and that is where your test runs from. The same small dataspace is created inside GitHub Actions when your test runs in CI. -It comes from the [Tractus-X Umbrella](../reference/glossary.md#umbrella), a Helm chart -that deploys the products together. +It is the [Eclipse Tractus-X developer toolbox](../reference/glossary.md#eclipse-tractus-x-developer-toolbox): the +Tractus-X Umbrella Helm chart with a small dataspace configuration, in memory in the runner. --- diff --git a/e2e-testing/docs/story/test-anatomy.md b/e2e-testing/docs/story/test-anatomy.md index 6aec1c40..10dcd60a 100644 --- a/e2e-testing/docs/story/test-anatomy.md +++ b/e2e-testing/docs/story/test-anatomy.md @@ -1,6 +1,6 @@ # What a test is made of -The story · 3 of 4 · optional reading, 5 minutes +Introduction · 3 of 4 · optional reading, 5 minutes ## A TCK is a folder of YAML diff --git a/e2e-testing/docs/story/why.md b/e2e-testing/docs/story/why.md index 03ad3a37..95780a4d 100644 --- a/e2e-testing/docs/story/why.md +++ b/e2e-testing/docs/story/why.md @@ -1,6 +1,6 @@ # Why we are here -The story · 1 of 4 · optional reading, 3 minutes +Introduction · 1 of 4 · optional reading, 3 minutes ## A release, three weeks, many people diff --git a/e2e-testing/docs/tutorial/01-start-here.md b/e2e-testing/docs/tutorial/01-start-here.md index c59d76af..547914b6 100644 --- a/e2e-testing/docs/tutorial/01-start-here.md +++ b/e2e-testing/docs/tutorial/01-start-here.md @@ -1,4 +1,4 @@ -The tutorial · chapter 1 of 8 · ● ○ ○ ○ ○ ○ ○ ○ +Getting Started · chapter 1 of 8 · ● ○ ○ ○ ○ ○ ○ ○ # 1 · Start here diff --git a/e2e-testing/docs/tutorial/02-your-product.md b/e2e-testing/docs/tutorial/02-your-product.md index d7b52730..e5e73f25 100644 --- a/e2e-testing/docs/tutorial/02-your-product.md +++ b/e2e-testing/docs/tutorial/02-your-product.md @@ -1,4 +1,4 @@ -The tutorial · chapter 2 of 8 · ● ● ○ ○ ○ ○ ○ ○ +Getting Started · chapter 2 of 8 · ● ● ○ ○ ○ ○ ○ ○ # 2 · Your product and your connectors diff --git a/e2e-testing/docs/tutorial/03-alternative-your-own-ai-tool.md b/e2e-testing/docs/tutorial/03-alternative-your-own-ai-tool.md index 01abe0f3..eb3e1648 100644 --- a/e2e-testing/docs/tutorial/03-alternative-your-own-ai-tool.md +++ b/e2e-testing/docs/tutorial/03-alternative-your-own-ai-tool.md @@ -1,4 +1,4 @@ -The tutorial · chapter 3, route C · ● ● ● ● ○ ○ ○ ○ +Getting Started · chapter 3, route C · ● ● ● ● ○ ○ ○ ○ # 3C · Build with your own AI tool diff --git a/e2e-testing/docs/tutorial/03-choose-your-ai.md b/e2e-testing/docs/tutorial/03-choose-your-ai.md index 7bed6b90..180d4ec3 100644 --- a/e2e-testing/docs/tutorial/03-choose-your-ai.md +++ b/e2e-testing/docs/tutorial/03-choose-your-ai.md @@ -1,4 +1,4 @@ -The tutorial · chapter 3 of 8 · ● ● ● ○ ○ ○ ○ ○ +Getting Started · chapter 3 of 8 · ● ● ● ○ ○ ○ ○ ○ # 3 · Choose your AI diff --git a/e2e-testing/docs/tutorial/03-open-the-ide.md b/e2e-testing/docs/tutorial/03-open-the-ide.md index 042ab7ab..cfb72a6e 100644 --- a/e2e-testing/docs/tutorial/03-open-the-ide.md +++ b/e2e-testing/docs/tutorial/03-open-the-ide.md @@ -1,4 +1,4 @@ -The tutorial · chapter 3, route A · ● ● ● ○ ○ ○ ○ ○ +Getting Started · chapter 3, route A · ● ● ● ○ ○ ○ ○ ○ # 3A · Open the IDE and connect your API key diff --git a/e2e-testing/docs/tutorial/03b-local-model.md b/e2e-testing/docs/tutorial/03b-local-model.md index 124ec004..55a97ac1 100644 --- a/e2e-testing/docs/tutorial/03b-local-model.md +++ b/e2e-testing/docs/tutorial/03b-local-model.md @@ -1,4 +1,4 @@ -The tutorial · chapter 3, route B · ● ● ● ○ ○ ○ ○ ○ +Getting Started · chapter 3, route B · ● ● ● ○ ○ ○ ○ ○ # 3B · Connect a local model diff --git a/e2e-testing/docs/tutorial/04-build-the-test.md b/e2e-testing/docs/tutorial/04-build-the-test.md index 6a4927fa..9bb56d8d 100644 --- a/e2e-testing/docs/tutorial/04-build-the-test.md +++ b/e2e-testing/docs/tutorial/04-build-the-test.md @@ -1,4 +1,4 @@ -The tutorial · chapter 4 of 8 · ● ● ● ● ○ ○ ○ ○ +Getting Started · chapter 4 of 8 · ● ● ● ● ○ ○ ○ ○ # 4 · Build the test with the assistant diff --git a/e2e-testing/docs/tutorial/05-run-it.md b/e2e-testing/docs/tutorial/05-run-it.md index 45bd1c70..652e2317 100644 --- a/e2e-testing/docs/tutorial/05-run-it.md +++ b/e2e-testing/docs/tutorial/05-run-it.md @@ -1,4 +1,4 @@ -The tutorial · chapter 5 of 8 · ● ● ● ● ● ○ ○ ○ +Getting Started · chapter 5 of 8 · ● ● ● ● ● ○ ○ ○ # 5 · Run it against your connectors diff --git a/e2e-testing/docs/tutorial/06-add-to-repository.md b/e2e-testing/docs/tutorial/06-add-to-repository.md index b128dda0..4799deea 100644 --- a/e2e-testing/docs/tutorial/06-add-to-repository.md +++ b/e2e-testing/docs/tutorial/06-add-to-repository.md @@ -1,4 +1,4 @@ -The tutorial · chapter 6 of 8 · ● ● ● ● ● ● ○ ○ +Getting Started · chapter 6 of 8 · ● ● ● ● ● ● ○ ○ # 6 · Add it to your repository @@ -81,8 +81,8 @@ And this is all the workflow is: a few lines that call a > `index.yaml` and `tests` into `tck/e2e`. > - **Your repository already has a folder `tck/e2e`:** choose another folder, and change > `tck-directory` in the workflow file to match. -> - **Your product does not run in the Umbrella:** open `.github/workflows/e2e-test.yml` -> and add `run-in-umbrella: false` under `tck-directory`. The workflow then validates and +> - **Your product does not run in the developer toolbox:** open +> `.github/workflows/e2e-test.yml` and add `run-in-toolbox: false` under `tck-directory`. The workflow then validates and > compiles only. See [The workflow](../reference/workflow.md). > - **`Signed-off-by` is missing:** you forgot `-s`. Run `git commit --amend -s --no-edit`. diff --git a/e2e-testing/docs/tutorial/07-link-and-pull-request.md b/e2e-testing/docs/tutorial/07-link-and-pull-request.md index 2de47860..808b6848 100644 --- a/e2e-testing/docs/tutorial/07-link-and-pull-request.md +++ b/e2e-testing/docs/tutorial/07-link-and-pull-request.md @@ -1,4 +1,4 @@ -The tutorial · chapter 7 of 8 · ● ● ● ● ● ● ● ○ +Getting Started · chapter 7 of 8 · ● ● ● ● ● ● ● ○ # 7 · Link it and open the pull request @@ -35,7 +35,7 @@ ## You should now see Your pull request, with the checks starting at the bottom: **Validate and compile** finishes -in under a minute, **Run in Tractus-X Umbrella** in about five. +in under a minute, **Run in Eclipse Tractus-X developer toolbox** in about five. ![The two jobs of the E2E test workflow in GitHub Actions, both green](../assets/screenshots/07-workflow-result.png) diff --git a/e2e-testing/docs/tutorial/08-what-comes-next.md b/e2e-testing/docs/tutorial/08-what-comes-next.md index ebe262af..da504fd6 100644 --- a/e2e-testing/docs/tutorial/08-what-comes-next.md +++ b/e2e-testing/docs/tutorial/08-what-comes-next.md @@ -1,4 +1,4 @@ -The tutorial · chapter 8 of 8 · ● ● ● ● ● ● ● ● +Getting Started · chapter 8 of 8 · ● ● ● ● ● ● ● ● # 8 · What comes next @@ -41,7 +41,7 @@ One product has a green check that it did not have this morning. | The format, every key | [TCK syntax reference](https://eclipse-tractusx.github.io/tractusx-testlab/tck-syntax/) | | The engine | [`tractusx-testlab`](https://github.com/eclipse-tractusx/tractusx-testlab) | | A large real project | [TestLab's own E2E test](https://github.com/eclipse-tractusx/tractusx-testlab/tree/main/tests/e2e/connector-dtr-smoke) | -| The dataspace in a box | [Tractus-X Umbrella](https://github.com/eclipse-tractusx/tractus-x-umbrella) | +| The chart behind the developer toolbox | [Tractus-X Umbrella](https://github.com/eclipse-tractusx/tractus-x-umbrella) | ## You should now see diff --git a/e2e-testing/examples/digital-twin-registry/.github/workflows/e2e-test.yml b/e2e-testing/examples/digital-twin-registry/.github/workflows/e2e-test.yml index 96b53c31..ce2163fd 100644 --- a/e2e-testing/examples/digital-twin-registry/.github/workflows/e2e-test.yml +++ b/e2e-testing/examples/digital-twin-registry/.github/workflows/e2e-test.yml @@ -19,7 +19,8 @@ # Copy this file to .github/workflows/e2e-test.yml in your repository. # It validates and compiles the E2E test project on every pull request and -# runs it against a Tractus-X Umbrella that is created inside the runner. +# runs it in the Eclipse Tractus-X developer toolbox, a dataspace created +# inside the runner. name: E2E test diff --git a/e2e-testing/hooks/about.py b/e2e-testing/hooks/about.py new file mode 100644 index 00000000..6e9fd66d --- /dev/null +++ b/e2e-testing/hooks/about.py @@ -0,0 +1,153 @@ +################################################################################# +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0. +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +# +# SPDX-License-Identifier: Apache-2.0 +################################################################################# + +"""An "About this tutorial" button in the header of every page. + +It opens a panel with the tutorial's version and its history (extra.tutorial +in mkdocs.yml), when it was added and last updated (the git history of this +folder), and its authors (the GitHub accounts with commits in this folder, +from the GitHub API; set GITHUB_TOKEN to avoid its rate limit). What cannot +be found is left out: a shallow clone has no dates, no network no avatars. +""" + +import html +import json +import os +import subprocess +from collections import Counter +from datetime import date +from pathlib import Path +from urllib.error import URLError +from urllib.request import Request, urlopen + +PALETTE = '
' +SHOWN_AUTHORS = 8 + +_panel = None + + +def _git(folder: Path, *args: str) -> str: + return subprocess.run( + ["git", *args], cwd=folder, check=True, capture_output=True, text=True + ).stdout.strip() + + +def _dates(folder: Path) -> tuple[str, str] | None: + try: + if _git(folder, "rev-parse", "--is-shallow-repository") == "true": + return None + dates = _git(folder, "log", "--format=%as", "--", ".").split() + except (OSError, subprocess.CalledProcessError): + return None + if not dates: + return None + return tuple(date.fromisoformat(d).strftime("%b %Y") for d in (dates[-1], dates[0])) + + +def _authors(repository: str, path: str) -> list[tuple[str, str]]: + headers = {"Accept": "application/vnd.github+json", "User-Agent": "tutorial-resources-docs"} + if os.environ.get("GITHUB_TOKEN"): + headers["Authorization"] = "Bearer " + os.environ["GITHUB_TOKEN"] + counts, avatars, page = Counter(), {}, 1 + try: + while True: + url = f"https://api.github.com/repos/{repository}/commits?path={path}&per_page=100&page={page}" + with urlopen(Request(url, headers=headers), timeout=20) as response: + commits = json.load(response) + for commit in commits: + author = commit.get("author") or {} + login = author.get("login") + if login and author.get("type") != "Bot" and not login.endswith("[bot]"): + counts[login] += 1 + avatars[login] = author["avatar_url"] + if len(commits) < 100: + break + page += 1 + except (URLError, OSError, ValueError): + return [] + return [(login, avatars[login]) for login, _ in counts.most_common()] + + +def _build_panel(config) -> str: + folder = Path(config.config_file_path).parent + info = (config.extra or {}).get("tutorial", {}) + repository = config.repo_url.rstrip("/").split("github.com/")[-1] + path = folder.name + esc = html.escape + + facts = [] + if info.get("version"): + facts.append(("Version", "v" + esc(str(info["version"])))) + dates = _dates(folder) + if dates: + facts += [("Added", dates[0]), ("Updated", dates[1])] + rows = "".join(f"
{k}
{v}
" for k, v in facts) + + authors = _authors(repository, path) + people = "" + if authors: + items = "".join( + f'
  • {esc(login)}
  • ' + for login, avatar in authors[:SHOWN_AUTHORS] + ) + if len(authors) > SHOWN_AUTHORS: + items += f'
  • and {len(authors) - SHOWN_AUTHORS} more
  • ' + people = f'

    Authors

      {items}
    ' + + history = "" + if info.get("history"): + items = "".join( + f"
  • {esc(str(h['version']))} {esc(str(h['date']))} {esc(str(h['note']))}
  • " + for h in info["history"] + ) + history = f'

    Versions

      {items}
    ' + + source = f"{config.repo_url.rstrip('/')}/tree/main/{path}" + home = config.site_url.rstrip("/").rsplit("/", 1)[0] + "/" + return ( + '
    ' + '

    About this tutorial

    ' + '
    ' + f'
    {rows}
    {people}{history}' + f'' + "
    " + ) + + +def on_config(config): + global _panel + _panel = _build_panel(config) + return config + + +def on_post_page(output: str, page, config) -> str: + if PALETTE not in output or "" not in output: + return output + button = ( + '' + ) + # Inside the light/dark switch's form: one control group, laid out and + # spaced by the same flex box, whatever Material does around it. + output = output.replace(PALETTE, PALETTE + button, 1) + return output.replace("", _panel + "", 1) diff --git a/e2e-testing/hooks/page_nav.py b/e2e-testing/hooks/page_nav.py new file mode 100644 index 00000000..9d3c7f0d --- /dev/null +++ b/e2e-testing/hooks/page_nav.py @@ -0,0 +1,100 @@ +################################################################################# +# Copyright (c) 2026 Contributors to the Eclipse Foundation +# +# See the NOTICE file(s) distributed with this work for additional +# information regarding copyright ownership. +# +# This program and the accompanying materials are made available under the +# terms of the Apache License, Version 2.0 which is available at +# https://www.apache.org/licenses/LICENSE-2.0. +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. +# +# SPDX-License-Identifier: Apache-2.0 +################################################################################# + +"""MkDocs hook: the line of links at the end of a page becomes a row of buttons. + +Every page ends with a line such as + + [← 1 · Start here](01-start-here.md) · [Home](../index.md) · [Next: 3 · Choose your AI →](03-choose-your-ai.md) + +which reads fine on GitHub. On the site, the link with "←" becomes the +"Previous" button on the left, the link with "→" the "Next" button on the +right, and the other links sit in the middle. Lines without an arrow (the +breadcrumbs at the top of some pages) stay as they are. +""" + +import html +import re + +# A paragraph made only of links joined by " · ", with the rule above it. +_NAV_LINE = re.compile( + r"(?:\s*)?

    (?P(?:]*>[^<]*(?:\s*·\s*)?)+)

    \n?" +) +_LINK = re.compile(r'[^>]*)href="(?P[^"]*)"(?P[^>]*)>(?P[^<]*)') + +_ARROW_LEFT = ( + '' +) +_ARROW_RIGHT = ( + '' +) +_HOUSE = ( + '' +) + + +def _button(kind: str, href: str, title: str) -> str: + label = "Previous" if kind == "prev" else "Next" + arrow = _ARROW_LEFT if kind == "prev" else _ARROW_RIGHT + return ( + f'' + f"{arrow}" + f'' + f'{label}' + f'{title}' + f"" + ) + + +def _middle(href: str, text: str) -> str: + if html.unescape(text).strip().lower() == "home": + return f'{_HOUSE}Home' + return f'{text}' + + +def on_page_content(content: str, **_kwargs) -> str: + matches = [ + m for m in _NAV_LINE.finditer(content) if "←" in m.group("links") or "→" in m.group("links") + ] + if not matches: + return content + match = matches[-1] + links = [m.groupdict() for m in _LINK.finditer(match.group("links"))] + prev = next_ = None + middle = [] + for link in links: + text = link["text"].strip() + if text.startswith("←"): + prev = (link["href"], text.removeprefix("←").strip()) + elif text.endswith("→"): + title = text.removesuffix("→").strip() + next_ = (link["href"], re.sub(r"^Next:\s*", "", title)) + else: + middle.append(_middle(link["href"], text)) + if prev is None and next_ is None: + return content + + left = _button("prev", *prev) if prev else '' + right = _button("next", *next_) if next_ else '' + centre = f'
    {"".join(middle)}
    ' + nav = f'' + return content[: match.start()] + nav + content[match.end() :] diff --git a/e2e-testing/mkdocs.yml b/e2e-testing/mkdocs.yml index db34be59..ee5ab09a 100644 --- a/e2e-testing/mkdocs.yml +++ b/e2e-testing/mkdocs.yml @@ -58,7 +58,6 @@ theme: features: - navigation.tabs - navigation.sections - - navigation.footer - navigation.top - navigation.indexes - content.code.copy @@ -68,6 +67,27 @@ theme: extra_css: - assets/stylesheets/tractusx.css +# Zoom, pan and full screen for diagrams (Mermaid and large images). +extra_javascript: + - assets/javascripts/diagrams.js + +# The "← previous · Home · next →" line at the end of each page becomes buttons, +# and the header gets an "About this tutorial" button. +hooks: + - hooks/page_nav.py + - hooks/about.py + +# The tutorial's own version, separate from the software it uses: 1.0 when +# published, a minor step when the steps change, a major step when it is +# rebuilt. The About button shows it with this history. +extra: + tutorial: + version: "1.0" + history: + - version: "1.0" + date: Nov 2026 + note: First published, for the Tractus-X Community Days 2026. + markdown_extensions: - attr_list - md_in_html @@ -101,12 +121,12 @@ validation: nav: - Home: index.md - - The story: + - Introduction: - Why we are here: story/why.md - A dataspace in five minutes: story/dataspace.md - What a test is made of: story/test-anatomy.md - Where the AI helps: story/ai.md - - The tutorial: + - Getting Started: - 1 · Start here: tutorial/01-start-here.md - 2 · Your product and your connectors: tutorial/02-your-product.md - 3 · Choose your AI: