TOPIC 34/6214 MINNOT STARTED

Environments for joined-up systems

When twenty services must run to test one journey, the test environment is the hard part. Learn to list, share, check and keep it close to real.

L1–L4 are part of the Pro pass

L0 Explain simply

Analogy: a rehearsal stage. A play needs every actor, prop and light on the stage. If the lamp is missing, the show you practise is not the show you give. Twenty actors must all be there, in costume, on the right night.

Daily List is a to-do list app. Tom, the tester, wants to test one journey. Lily adds a task and shares the list with Sam. That journey needs the sign-in part, the task part, the sharing part and the reminder part. Each part is a small program called a service. The test setup must provide each part this journey needs. A recorded stand-in, a test program with chosen replies, may replace an outside service.

Leo, the developer, can start one service on his own laptop. Starting twenty is harder. Some run an old version. Some point at a , an email inbox made only for tests, and some at a real one. This is why the is the hard part. A test environment is the place where testers run the app: its programs, its settings and its data.

A good stage has three habits. Everyone knows who is using it. It stays close to the real show. And Tom checks that it is ready before the rehearsal starts.

The picture has a limit. A stage check cannot prove the play is good. In the same way, a ready test setup does not prove the app works. Both stages and test setups can change between checks.

(SYNTHETIC / TRAINING ONLY: Daily List and every person named in this lesson are invented.)

PICTURE IT

The picture is the one the lesson above opens with. The table below shows how each part of it matches the software.

THE REAL JOB Seeing the as a rehearsal stage that must hold every actor, prop and light before the show is rehearsed.

  1. List the parts
  2. Start them
  3. Health check
  4. Run the checks
Stage first

HOW THE PICTURE MAPS

How each part of the picture matches the software
In the pictureIn the software
A rehearsal stageThe test environment
Actors, props and lightsThe services, settings and data
A check of the stage before the rehearsalThe environment health check
The stage no longer matching its agreed planAn unintended gap from the agreed environment setup

WHERE THIS PICTURE STOPS

  • A stage check does not prove the play is good. Readiness does not prove the app works, and both setups can change.
  • A stage holds people who see each other, but services only talk over a network.
  • A missing lamp is easy to spot, but a wrong setting can hide for weeks.

HOOK

Check the stage before the show.

REMEMBER IT THIS WAY

A chunk: a long list grouped so it is easier to hold.

Before the first , ask of each service: which version, which mailbox, which settings and data.

What each part of the trick stands for
In the trickWhat it stands for
versionSome run an old version
mailboxSome point at a test mailbox and some at a real one
settings and dataThe programs, its settings and its data

TELL A FRIEND

A rehearsal stage needs every actor, prop and light. A tester checks the stage first, then rehearses.

OFTEN MIXED UP WITH Test environments and configurations. Test environments and configurations defines one test setup. This lesson checks the services, settings and data needed for a joined-up journey.

Sources & standards — 1 source
  1. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal · SYNTHETIC / TRAINING ONLY: Daily List environment manifest, ten-member requirement, blocked-journey triage and test outcomes are authored teaching cases, not vendor requirements or executed infrastructure.

    This site's own simplified teaching models. · Checked 2026-07-12

    What this simplifies: Invented Daily List examples and decisions. No real infrastructure, provider or personal data was used.

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

PRACTISE AND KEEP

Sources for this topic — 14 sources
  1. Market practice

    Dev/prod parity (The Twelve-Factor App) ↗ — Adam Wiggins · X. Dev/prod parity: time, people and tool gaps; matching backing-service types and versions. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Says to keep the time, personnel and tools gaps between development and production small. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  2. Market practice

    III. Config (The Twelve-Factor App) ↗ — Adam Wiggins · III. Config: per-deployment values are separate from code; internal application wiring is outside that definition. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Says config is whatever changes between deploys and should be kept in the environment, not in the code. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  3. Implementation-specific

    Docker Compose overview (Docker Docs) ↗ — Docker · Overview: Compose defines services, networks and volumes and manages their lifecycle. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Says Compose defines and runs multi-container applications from one YAML Ain't Markup Language (YAML) file. Vendor documentation. Practitioner guidance, not a standard. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

  4. Implementation-specific

    Control startup order in Compose ↗ — Docker · Control startup: running is not ready; service_healthy waits on the configured healthcheck, not an entire user journey. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Current startup-order guide: dependency ordering differs from readiness; healthcheck and service_healthy coordinate database example. · Checked 2026-11-06

    Publisher primary source opened and relevant sections read on 6 November 2026 for the Agile/DevOps domain analysis. Original explanations are used; no extensive source text is copied. Also read for the CI/Containers analysis; live documentation does not establish the version installed in a learner environment.

  5. Implementation-specific

    docker compose down (Docker Docs) ↗ — Docker · Description and Options: default container/network removal; --volumes removes declared named and attached anonymous volumes; external resources are never removed. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Says down removes the containers and networks, and removes volumes only with the --volumes flag. Vendor documentation. Practitioner guidance, not a standard. · Checked 2026-11-06

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail.

    Verification supplement, 6 November 2026: Actual current command reference opened: default removes containers/networks, volumes remain; --volumes explicit; external volumes not removed.

  6. Implementation-specific

    Docker volumes ↗ — Docker · A volume’s lifecycle: mounted data can outlive container removal; host bind mounts have a separate lifecycle. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Mounted-path persistence beyond container removal; explicit volume deletion. · Checked 2026-11-06

    Actual primary documentation body read during the complete V30 domain analysis before implementation. Live documentation access-dated; no claim this version is installed in the learner environment. No artwork copied by this content change.

  7. Implementation-specific

    What is a container? ↗ — Docker · Explanation and Containers versus virtual machines: isolated processes share a kernel. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Explanation and container/virtual-machine distinction. · Checked 2026-11-08

    Relevant primary passages opened 8 November 2026 for the environments full-chain correction. Live product documentation, not a claim that a local runtime was installed or exercised. No publisher artwork copied.

  8. Implementation-specific

    Multi-platform builds ↗ — Docker · Why multi-platform builds: host kernel/architecture compatibility; image variants and emulation. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Why multi-platform builds: host kernel and architecture compatibility; variants and emulation. · Checked 2026-11-08

    Relevant primary passages opened 8 November 2026 for the environments full-chain correction. Live product documentation, not a claim that a local runtime was installed or exercised. No publisher artwork copied.

  9. Implementation-specific

    Manage resource drift ↗ — HashiCorp · Introduction and refresh-only explanation: actual resources can differ from recorded state/configuration; refreshing state is not changing infrastructure. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Introduction and refresh-only discussion: compare recorded and actual state; detection is not infrastructure change. · Checked 2026-11-08

    Relevant primary passages opened 8 November 2026 for the environments full-chain correction. Live product documentation, not a claim that a local runtime was installed or exercised. No publisher artwork copied.

  10. Implementation-specific

    Best practices (Playwright documentation) ↗ — Microsoft (Playwright) · Make tests as isolated as possible and Avoid testing third-party dependencies: independent test state and controlled responses. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Recommends user-facing locators such as role-based ones over Cascading Style Sheets (CSS) or XPath, web-first assertions that retry, and avoiding fixed waits. Vendor documentation. Practitioner or vendor guidance, not a standard unless stated. · Checked 2026-10-18

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. A second search on 2026-10-20 returned this page for its title and matched the described content; the page was still not opened (search excerpt, page not opened).

  11. Implementation-specific

    Authentication (Playwright documentation) ↗ — Microsoft (Playwright) · Shared-account and per-worker guidance: tests changing server state need accounts that do not affect one another; browser context isolation alone does not isolate server data. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Describes a setup project that logs in once and saves browser state to a file under playwright/.auth, loading it as storageState in browser projects, adding the folder to .gitignore because the file can hold sensitive cookies, one file per role and a separate account per worker. Vendor documentation for one tool. Practitioner guidance, not a standard. · Checked 2026-11-06

    Primary source opened and operative text inspected on 6 November 2026. Scope: Complete extracted primary article; examples inspected, not executed. Current live Playwright documentation reflects 1.65 where stated; explicit older examples retain their version. Source inspection is not an execution or compatibility-test claim. See the completed v45 Playwright analysis for source discrepancies and exact reading boundaries.

  12. Implementation-specific

    Stubbing (WireMock documentation) ↗ — WireMock · Basic stubbing: request matching selects a configured response; this does not exercise the real external service. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    The WireMock stubbing pages say a mapping has a request part and a response part. The request part holds a method and a web address. The response part holds a status and a body. A mapping can be a file in the mappings folder, or it can be sent to the admin address. · Checked 2026-11-08

    Found through a web search; the page was not opened (search excerpt, page not opened). Version: Web page, no edition number. Licence terms were not read, so put it in your own words and do not quote it. Open the page and confirm what it says before relying on any detail. Supplement6November2026: actual current and archived2.x stubbing pages opened; priority then most-recent matching stub; reset paths also documented in2.x. V27 supplement, 6 November 2026: relevant primary page sections actually opened; implementation-specific current product guidance, not universal standard. See full V27 audit for version and access scope.

    8 November 2026: actual live WireMock Java Basic Stubbing and complete Stub Priority section/examples opened. Request mappings select configured responses; no installed-version or every-feature claim.

    WireMock topic review, 8 November 2026: Basic stubbing, stub priority, unmapped replies, reset and reset-to-default: current official page opened 8 November 2026. Local examples separately checked with WireMock Java 3.13.1.

    Version-specific correction: the general Reset paragraph says all mappings are removed, but WireMock Java 3.13.1 resetAll reloads defaults. See v945-wiremock-3131-reset-source and the local runtime tests. Do not infer an empty mapping list when files are present.

  13. Implementation-specific

    How Compose works ↗ — Docker · Application model and CLI: services, networks, volumes, configs, secrets and separate projects; up, ps, logs and down commands. Actual relevant primary passages opened 8 November 2026; live documentation, not a claim about an installed tool version.

    Services, networks, volumes, configs, secrets and separate projects; lifecycle CLI commands. · Checked 2026-11-08

    Relevant primary passages opened 8 November 2026 for the environments full-chain correction. Live product documentation, not a claim that a local runtime was installed or exercised. No publisher artwork copied.

  14. Simplified educational illustration

    Payments Signal editorial teaching models — Payments Signal · SYNTHETIC / TRAINING ONLY: Daily List environment manifest, ten-member requirement, blocked-journey triage and test outcomes are authored teaching cases, not vendor requirements or executed infrastructure.

    This site's own simplified teaching models. · Checked 2026-07-12

    What this simplifies: Invented Daily List examples and decisions. No real infrastructure, provider or personal data was used.

    Used wherever diagrams, scenarios, figures, or example values are didactic constructions rather than sourced facts; every such use carries a simplifications disclosure. All people, companies, banks, and list entries in examples are fictional.

Deepest material on this page: L4 — Standards & sources. Where a topic stops short of implementation depth, that is a deliberate coverage decision, not an oversight — see coverage.