diff options
| author | Ludovic Courtès <ludo@gnu.org> | 2026-06-05 00:17:51 +0200 |
|---|---|---|
| committer | Ludovic Courtès <ludo@gnu.org> | 2026-06-18 16:46:52 +0200 |
| commit | 4a58858d65089395f0e983f2711d0e67323caab6 (patch) | |
| tree | a6cf4474d79763290feb0e4baf04ee1ee817230f /tests/utils.scm | |
| parent | 2a566b05c45d42a248ceb2984c5cf66857dbddc0 (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/utils.scm')
0 files changed, 0 insertions, 0 deletions
