Skip to content

Environments

The same scenario file runs in DEV, SIT, UAT and pre-production. An environment names, for each target a file names, where it is in that environment, and gives values to the file’s variables, so the file never changes and a pipeline runs it everywhere with one flag.

A scenario names its target and its variables as it always has:

name: Authorization basics
target: {simulated_host: Issuer, timeout_ms: 3000}
variables:
pan: "4111111111111111"
steps:
- name: Small amount is approved
send: {sample: auth, pan: "{{pan}}", amount: 1000}
expect: {fields: {39: "00"}}

“Issuer” is the name the environments map. As written, the file runs against the simulated host called Issuer; the values are its defaults.

Under Environments, New environment. Name it (DEV, UAT, pre-prod), then:

  • Targets: for each name a file uses, where it is here: a simulated host on this Platform picked from the list, or a host and port for a real system, with its dialect. A name the environment doesn’t map stays as written.
  • Variables: the values the files’ {{names}} take here. They lie over the file’s own, so a file’s value is the default where an environment sets none.

The environment’s page says which simulated hosts its targets name that this install doesn’t have, so a missing host is seen before a run is refused for it.

Through the API the same is POST /api/environments with name, description, targets and variables; a target is written as a scenario’s target: is.

  • On a scenario’s page, Run now takes the environment beside it; the run’s page and the run list name it.
  • A suite runs in an environment the same way, every scenario of it; a schedule names the environment it runs in.
  • From CI, the client runs the files as they are in the repository:
python iso8583sim-run.py --url https://platform.example.com --environment UAT --junit report.xml scenarios/*.yaml
python iso8583sim-run.py --url https://platform.example.com --saved-suite "Nightly regression" --environment UAT

The file’s timeout holds in every environment unless the environment’s target sets one; {{environment}} is the environment’s name, for a step that wants to say where it ran.

Under Environments, Compare (or the Environments card under Analytics): pick two environments, and each scenario’s latest run in one is set against its latest run in the other: what agrees, what passes in one and not the other, what only one has run, with each run’s duration. A scenario’s row opens to its steps, each step’s verdict and latency on both sides, so a scenario that passes in DEV and fails in UAT says at which step, and a step that took 40 ms in one and 900 ms in the other is seen without opening either run. The run links go to the runs themselves.

Through the API the same is GET /api/analytics/environments?a=DEV&b=UAT (the last 90 days unless days says otherwise). The run list filters by environment (GET /api/runs?environment=UAT), and GET /api/analytics?environment=UAT scopes the trends to one.

Once the simulated issuer in DEV answers as the tests need, the one UAT names should answer the same way. On the DEV environment’s page, Promote to picks the environment promoted to, and the targets both environments map to simulated hosts are listed (a target one environment maps to a real system, or that both map to the same host, says why it can’t be promoted). The parts carried are chosen:

Part What it carries Carried unless unticked
Rules What the host answers, delays, drops or alters yes
Issuer state The accounts and cards it starts with, and partial approval yes
Network Routes and stand-in yes
Messages What the host sends, and whether it requires sign-on yes
Verification PIN, card and chip verification and MAC settings no: these name keys in the HSM, and keys are an environment’s own
Wire Wire format, headers, ISO version, dialect and pack no: the next environment’s host may speak a different framing, as a mainframe does
Limits Connections, in-flight requests, duplicates, repeats no

Preview shows, for each target, the source and destination hosts and every configuration path that would change, before and after, and what the destination keeps because the source has none of it (a source without issuer state leaves the destination’s). Promote applies it. The destination host keeps its name, port, whether it’s enabled and its TLS; the change goes in the history with a note saying where it came from, the simulator applies it in place, and where host changes need approval the promotion is held as a proposal for an admin like any host change.

Through the API: POST /api/environments/{id}/promote with to, targets (every promotable name when left out), parts and apply (a preview when false, the default); 202 with each target’s proposal_id where approval is needed.

Experiments in a load scenario and a target’s chip_issuer name simulated hosts directly; an environment doesn’t translate them. A promotion carries host configuration, not an environment’s variables, and never removes what the source lacks.