Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rpc: test cors, and respect option on rest endpoints #1054

Merged
merged 2 commits into from
Oct 7, 2024

Conversation

jchappelow
Copy link
Member

This adds unit tests to the jsonrpc server to ensure the http mux and middleware stack handle CORS correctly, accepting OPTIONS requests if the server has cors enabled. The test also cover some basic json-rpc method handling behavior.

A second commit updates internal/version/version.go to report v0.9.2-pre. We have tagged v0.9.1, and using the branch on a commit past that tag would ideally report a build from a "prerelease" revision of the next sequential version, which would be v0.9.2. I normally don't bother to bump batch version ahead of time like this, but I think it makes sense.

Copy link
Contributor

@Yaiba Yaiba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@brennanjl brennanjl merged commit 301c5fa into kwilteam:main Oct 7, 2024
2 checks passed
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