test/cloud-watch-read.test.ts answers the firewall read #17092 added, so main's full suite is green on it again (#17202)
Main is red on two tests in test/cloud-watch-read.test.ts (full-suite issue #17202, run 01m8sgtsr94yhnyzww43gp50qw): "reading Hetzner > servers and volumes are read with per_page 50…" and "paging > a full page asks for the next…".
Cause: #17092 (for #17070) made readLive in src/cloud/watch.ts read firewalls as a third list on both clouds, and updated test/cloud-watch.test.ts but not this file. Each test's fake fetch answers every path it doesn't name with another list's key, so the firewall read gets {volumes: …} (Hetzner) or {droplets: …} (DigitalOcean) and pages() throws "the provider's answer to firewalls was not a list". The code is right; the test is stale.
The change, test only, nothing in src/ moves:
"reading Hetzner": rename the test to "servers, volumes and forge-named firewalls are read with per_page 50, location and created kept", and make its fetch answer firewalls:
The pages expectation (["200/1", "200/2"]) and length 201 stay as they are. "a list that never ends" and "strange text" are unchanged.
Before: bun test ./test/cloud-watch-read.test.ts fails 2 of 4. After: 4 of 4 pass. Raise no limit, skip nothing. Add a line to the file's header comment that firewalls are read too (#17070).
test/cloud-watch-read.test.ts answers the firewall read #17092 added, so main's full suite is green on it again (#17202)
Main is red on two tests in test/cloud-watch-read.test.ts (full-suite issue #17202, run 01m8sgtsr94yhnyzww43gp50qw): "reading Hetzner > servers and volumes are read with per_page 50…" and "paging > a full page asks for the next…".
Cause: #17092 (for #17070) made
readLivein src/cloud/watch.ts read firewalls as a third list on both clouds, and updated test/cloud-watch.test.ts but not this file. Each test's fake fetch answers every path it doesn't name with another list's key, so the firewall read gets{volumes: …}(Hetzner) or{droplets: …}(DigitalOcean) andpages()throws "the provider's answer to firewalls was not a list". The code is right; the test is stale.The change, test only, nothing in src/ moves:
and expect the third read and the one forge-named firewall (the hand-made "office" one is not kept):
The pages expectation (["200/1", "200/2"]) and length 201 stay as they are. "a list that never ends" and "strange text" are unchanged.
Before:
bun test ./test/cloud-watch-read.test.tsfails 2 of 4. After: 4 of 4 pass. Raise no limit, skip nothing. Add a line to the file's header comment that firewalls are read too (#17070).