Squash TM Configuration — Getting Started Guide¶
This guide describes the steps to perform in Squash TM after the first
deployment, once perfshop-squash-seed has run.
The seed (squash-seed/seed.py) creates only the PerfShop QA project.
The SCM server (Forgejo) and the automation server must be configured
manually — see Squash TM Configuration.
Synology NAS specifics¶
The Synology NAS DSM 7 does not support
seccomp— nodocker buildis possible. The productiondocker-compose.ymluses pre-built images: - Application images: from the GitLab registry -perfshop-test-runnerimage: built on Windows and loaded viadocker load
# Build on Windows
cd test-runner
docker build --no-cache -t perfshop-test-runner:latest .
docker save perfshop-test-runner:latest -o perfshop-test-runner-latest.tar
# Load on the NAS
docker load -i /volume4/docker-speed/perfshop/perfshop-test-runner-latest.tar
docker compose up -d perfshop-test-runner
Only the runner image is built above. The tracked compose files also build Squash TM (from squashtest/squash:9.0.0, a public image) and use public images for the orchestrator (squashtest/squash-orchestrator:4.14.0) and Selenium: their first start downloads them.
Prerequisites¶
The following services must be started and healthy:
| Service | Expected status |
|---|---|
perfshop-testmgmt |
healthy |
perfshop-orchestrator |
Up |
perfshop-test-runner |
Up |
Access URLs by environment¶
| Environment | Squash TM URL |
|---|---|
| NAS prod | https://perfshop-squash.perfshop.io/squash |
| Docker Desktop / local build | http://localhost:9086/squash |
Login: admin / admin
What the seed configures — and what it does NOT¶
At every docker compose up (idempotent: nothing is recreated), perfshop-squash-seed configures:
- ✅ The PerfShop QA project — and nothing else.
To be configured manually (see Squash TM Configuration):
- ❌ PerfShop SCM server → Forgejo
http://perfshop-forgejo:3000/perfshop-ci/, repositoryperfshop-tests(branchmain) - ❌ PerfShop Orchestrator automation server + its RSA RS512 token
- ❌ Workflow
Squash simple, technologyRobot Framework, tagslinux/robotframework
Step 1 — Declare the automation server (mandatory)¶
⚠️ The Squash seed does not configure the automation server (
squash-seed/seed.py: the SCM and automation servers are configured by hand): declare it here, with the RSA token below. It must also be re-entered if the Squash TM database was reset.
- Administration → Automation servers → PerfShop Orchestrator
- Check that the Token field contains a token starting with
eyJhbGciOiJSUzUxMiI
If the field is empty or contains a different token:
| Field | Value |
|---|---|
| Authentication protocol | token authentication |
| Token | RS512 token of your installation (command below) |
The token is specific to each installation: the perfshop-orchestrator-keys service generates the key pair and
signs the token on first start (Lot E). It is no longer in the documentation — the previously published token is only
valid for the previous key pair, also public, which no installation must trust anymore. To display and copy it:
⚠️ RSA RS512 token only — algorithm
eyJhbGciOiJSUzUxMiI❌ Never use the personal HS512 token (
eyJhbGciOiJIUzUxMiJ9) That token does not work for the automation server.
- Save
Step 2 — Check the available environment¶
Administration → Projects → PerfShop QA → Available environments section:
If the entry is missing: check that perfshop-test-runner is started.
Create an automated test case (CT-001)¶
The PerfShop QA project is created by the seed. The test cases still need to be created.
- Test cases space → New test case
| Field | Value |
|---|---|
| Name | CT-001 API smoke test |
| Nature | Automated |
- Automation tab:
| Field | Value |
|---|---|
| Technology | Robot Framework |
| Script reference | perfshop-tests/smoke-test.robot |
| Automation status | Automated |
| Eligibility | Eligible |
⚠️ Reference format:
repo_name/file.robot— no spaces around the/✅ Correct:
perfshop-tests/smoke-test.robot❌ Incorrect:perfshop-tests / smoke-test.robot
Run the test¶
- Campaigns space → New campaign:
Smoke test campaign - New iteration → Add test cases → select
CT-001 - Click Run automatically
Expected result in the orchestrator logs:
Scripts available in perfshop-tests¶
| File | Technology | Description |
|---|---|---|
smoke-test.robot |
Robot Framework | Checks that the /api/products API responds (HTTP 200) |
CT-002-prix-coherence.robot |
Robot Framework + Selenium | Checks price consistency between catalog and cart |
test_prix_panier.py |
pytest | Price consistency via direct API |
The scripts read their URLs from /etc/environment inside the test-runner container:
| Variable | Prod NAS | Local (desktop/build) |
|---|---|---|
PUBLIC_API_URL |
https://perfshop-api.perfshop.io |
http://perfshop-app:8080 |
PERFSHOP_FRONTEND_URL |
https://perfshop.perfshop.io |
http://perfshop-frontend |
JWT architecture — quick reference¶
Squash TM ──RSA RS512 token──► Orchestrator
(verified with the public key in /etc/squashtf)
Orchestrator ──HS512 JWT─────► Squash TM API
(signed with squash.rest-api.jwt.secret)
SQUASH_REST_API_JWT_SECRET is absent from the orchestrator compose — expected native behavior.
Common issues¶
The specified token does not grant access to the requested resources¶
The token in "Automation servers → Token" is the personal HS512 (eyJhbGciOiJIUzUxMiJ9).
→ Replace it with the RS512 token of your installation (eyJhbGciOiJSUzUxMiI…), displayed by the command above.
Invalid algorithm while verifying token¶
The token pasted in Squash TM does not verify with the orchestrator's public key (token of another installation, token
published before 2026-09-30, or keys regenerated since).
→ Check that perfshop-orchestrator-keys completed successfully (docker compose ps -a), read the installation's
token again (docker compose run --rm --no-deps perfshop-orchestrator-keys cat /secret/squash_autom_token), paste it
again, then restart the orchestrator.
File or directory does not exist¶
The script reference contains spaces: perfshop-tests / smoke-test.robot
→ Fix to perfshop-tests/smoke-test.robot
Environment missing or not IDLE¶
The perfshop-test-runner container is not started or the SSH key has changed.
→ docker compose restart perfshop-orchestrator to force rediscovery of the SSH key.
404 on resultpublisher¶
Normal in Community Edition — not blocking for test execution. The PASS/FAIL status is still published in Squash TM.