Skip to content

Recover most of the old tests#294

Open
ketiltrout wants to merge 11 commits into
value_paramsfrom
more_old_tests
Open

Recover most of the old tests#294
ketiltrout wants to merge 11 commits into
value_paramsfrom
more_old_tests

Conversation

@ketiltrout

Copy link
Copy Markdown
Member

Now that we have a working client, this recovers all the old tests in old_tests except for two files which involve the still-kind-of-broken prometheus metrics server, which I'm going to leave to a later PR.

All the recovered tests are tests of thecocod backend (the qworker), which hasn't really changed in the upgrade, so there are very few changes to coco per se. I have done some work on the new coco_runner and rest_server fixtures to make them work more like the old fixtures did.

Substantive changes to coco:

  • added the local endpoints to the set of all endpoints which cocod checks against when trying to find missing endpoint targets (which was introduced in fix(endpoint): Ensure internal forwards exist #288)
  • re-implement the -r "report-type" flag in the client, support for which I apparently accidentally deleted during the client re-write
  • --json and --yaml now turn on silent mode (unless explicitly told not to) to guarantee that the client output is parseable as the requested format.

Also deleted the old simulate-chime which I don't think has a use anymore.

Requires #293

ketiltrout added 11 commits July 9, 2026 16:39
Also:
* fix rest_server text fixture to read bodies from GET requests
* --json and --yaml turn on quiet mode by default
Also:
* default client method is now always GET
* Re-implement --report-type (inadvertantly overlooked during client rewrite)
* Some changes to rest_server fixture to make it more like the old rest_farm fixture.
Also:
* Add a `call_endpoint` method to `coco_runner` to simplify
  direct access to the daemon (i.e. without using the client).
Also:
* handle broken pipe in rest_server fixture
Also:
* Add all the local endpoint names to the list of all endpoints we
  check forwards against
This is the simulate-chime stuff and the test_saved_states.py
whose tests have been duplicated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant