Skip to content

Pre-client-rewrite minor fixes#289

Merged
ketiltrout merged 4 commits into
chime-upgradefrom
pre-client_minor_fixes
Jun 26, 2026
Merged

Pre-client-rewrite minor fixes#289
ketiltrout merged 4 commits into
chime-upgradefrom
pre-client_minor_fixes

Conversation

@ketiltrout

@ketiltrout ketiltrout commented Jun 25, 2026

Copy link
Copy Markdown
Member

One (hopefully) last PR with some minor fixes before the re-written client is done.

There are four to six things here, depending on how you count:

  • Restore the Endpoint.timestamp_path assignment I accidentally deleted in fix(endpoint): Validate endpoint config earlier #287
  • Validate the keys in the "call" block of an endpoint. (Two keys are allowed: "coco" and "forward".)
  • Fix the response returned by the rest_server test fixture so it doesn't double-encode the request body.
  • Add port and target properties to the coco_runner so tests can access them. Also some doc updates there.
  • The coco_runner fixture now just instantiates the CocoRunner immediately, instead of requiring the test to do that.

Two things:
* restore the `Endpoint.timestamp_path` assignment inadvertently
  deleted
* Validate keys in the endpoing "call" dictionary.
It was getting doubly JSON encoded.
Comment thread tests/coco_runner.py Outdated
Comment thread tests/coco_runner.py
@ketiltrout
ketiltrout force-pushed the pre-client_minor_fixes branch from be731cd to 8579c51 Compare June 25, 2026 23:34
@ketiltrout
ketiltrout requested a review from tristpinsm June 26, 2026 00:07
@ketiltrout

Copy link
Copy Markdown
Member Author

I've added another commit which changes the coco_runner so it immediately creates the CocoRunner, instead of forcing the test to do it, which I think simplifies both implementation and usage in tests.

@ketiltrout
ketiltrout force-pushed the pre-client_minor_fixes branch from 53eb580 to f737322 Compare June 26, 2026 00:11
Instead of returning a function to instantiate the runner, now
`coco_runner` just does it directly.  If you need to set daemon
command-line arguments, use `start_daemon`.  If you want to avoid
starting the daemon when running the client, use the `no_daemon`
keyword argument with the (still unimplemented) `client` method.
@ketiltrout
ketiltrout force-pushed the pre-client_minor_fixes branch from f737322 to 7c6f6a1 Compare June 26, 2026 00:19
@ketiltrout
ketiltrout merged commit cc12a3a into chime-upgrade Jun 26, 2026
9 of 10 checks passed
@ketiltrout
ketiltrout deleted the pre-client_minor_fixes branch June 26, 2026 22:44
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.

3 participants