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

tests/unit: add a unit test for json2code #2229

Closed
wants to merge 2 commits into from

Conversation

tchaikov
Copy link
Contributor

@tchaikov tchaikov commented May 8, 2024

before this change, we don't have a test for
scripts/seastar-json2code.py. to verify the behavior of this script, let's add an integration test which exercise an http server which uses the source code generated with this script.

Fixes #2225
Signed-off-by: Kefu Chai [email protected]

@tchaikov tchaikov requested a review from amnonh May 8, 2024 12:16
@tchaikov tchaikov force-pushed the test-for-json2code branch 2 times, most recently from 1839ac1 to d8ad883 Compare May 8, 2024 12:35
@tchaikov tchaikov marked this pull request as draft May 8, 2024 12:43
@tchaikov
Copy link
Contributor Author

tchaikov commented May 8, 2024

pending on #2223

this change addresses a regression introduced by
3f534c7, which failed to differentiate the path param from
the non-path param, and always prefixed the param with "/".

Fixes 3f534c7
Signed-off-by: Kefu Chai <[email protected]>
@tchaikov tchaikov marked this pull request as ready for review May 8, 2024 13:28
before this change, we don't have a test for
scripts/seastar-json2code.py. to verify the behavior of this script,
let's add an integration test which exercise an http server which
uses the source code generated with this script.

Fixes scylladb#2225
Signed-off-by: Kefu Chai <[email protected]>
@tchaikov
Copy link
Contributor Author

tchaikov commented May 8, 2024

closing in favor of #2223

@tchaikov tchaikov closed this May 8, 2024
@tchaikov tchaikov deleted the test-for-json2code branch May 8, 2024 15:33
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.

add a unit test for json2code
1 participant