Skip to content

test: Re-implement the coco_runner test fixture#282

Merged
ketiltrout merged 2 commits into
chime-upgradefrom
coco_runner
Jun 10, 2026
Merged

test: Re-implement the coco_runner test fixture#282
ketiltrout merged 2 commits into
chime-upgradefrom
coco_runner

Conversation

@ketiltrout

Copy link
Copy Markdown
Member

This isn't complete, but it is able to run cocod in a more robust way than the simplistic cocod fixture I had created before.

Features:

  • uses fakeredis to spin up a test redis server on demand
  • also performs the function of the old rest_farm fixture via the add_targets method.
  • at exit, checks that the daemon exited without error.
  • Client support not yet present.

I have created a test that tests the fixture just as a minimal functionality test.

This isn't complete, but it is able to run cocod in a more robust
way than the simplistic `cocod` fixture I had created before.

Features:
* uses `fakeredis` to spin up a test redis server on demand
* also performs the function of the old `rest_farm` fixture via
  the `add_targets` method.
* Client support not yet present.

I have created a test that tests the fixture just as a minimal
functionality test.
ketiltrout added a commit that referenced this pull request Jun 10, 2026
(And, in the prom server thread, too, in the request_forwarder).

Missed in #280.  Can't be tested without the coco_runner in #282
@ketiltrout ketiltrout merged commit 3fca8d2 into chime-upgrade Jun 10, 2026
5 checks passed
@ketiltrout ketiltrout deleted the coco_runner branch June 10, 2026 21:15
ketiltrout added a commit that referenced this pull request Jun 10, 2026
The comet registration via the manager is now deferred until after the
early exit caused by --check-config.

This fixes a problem where using --check-config would result in `cocod`
spuriously registering its start with comet, even though it was only
doing a test run-through of the config.

The prior comet test has been migrated from the `cocod` fixture to the
`coco_runner` and the `mock_comet` fixture no longer automatically
integrates with the `cocod` fixture.

This is the problem I alluded to in #277

Requires #282.
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.

2 participants