summaryrefslogtreecommitdiff
path: root/tests/debug-link.scm
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2026-06-05 00:17:51 +0200
committerLudovic Courtès <ludo@gnu.org>2026-06-18 16:46:52 +0200
commit4a58858d65089395f0e983f2711d0e67323caab6 (patch)
treea6cf4474d79763290feb0e4baf04ee1ee817230f /tests/debug-link.scm
parent2a566b05c45d42a248ceb2984c5cf66857dbddc0 (diff)
tests: Use ‘match’ when mocking a Hetzner HTTP server.
Using ‘match’ to check requests is more conventional and more concise. It also avoids relying on Guile-Lib, which is an optional dependency, for its ‘assert’ macro. * tests/machine/hetzner/http.scm ("hetzner-api-actions-unit") ("hetzner-api-locations-unit") ("hetzner-api-server-types-unit") ("hetzner-api-server-delete-unit") ("hetzner-api-server-enable-rescue-system-unit") ("hetzner-api-server-power-on-unit") ("hetzner-api-server-power-off-unit") ("hetzner-api-server-reboot-unit") ("hetzner-api-ssh-key-create-unit") ("hetzner-api-ssh-key-delete-unit") ("hetzner-api-ssh-keys-unit") ("hetzner-api-primary-ips-unit"): Use ‘match’ instead of ‘cond’ and ‘assert’. Change-Id: Idf8cb1c11b332ffe780ed83c624dc50484b0db52 Signed-off-by: Ludovic Courtès <ludo@gnu.org>
Diffstat (limited to 'tests/debug-link.scm')
0 files changed, 0 insertions, 0 deletions