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

schema_registry: Schema ID Validation low-level tests #11297

Conversation

BenPope
Copy link
Member

@BenPope BenPope commented Jun 8, 2023

Add some tests as an exposition of setting and removing schema id validation properties.

Fixes #11115

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.1.x
  • v22.3.x
  • v22.2.x

Release Notes

  • none

@BenPope BenPope added the area/schema-registry Schema Registry service within Redpanda label Jun 8, 2023
@BenPope BenPope requested a review from dlex June 8, 2023 15:34
@BenPope BenPope self-assigned this Jun 8, 2023
BenPope added 2 commits June 8, 2023 16:52
Add tests as an exposition of the utility

Signed-off-by: Ben Pope <ben@redpanda.com>
Add a test for exposition of setting and removing schema_id_validation
topic proprties.

Signed-off-by: Ben Pope <ben@redpanda.com>
@BenPope BenPope force-pushed the server-side-schema-id-validation-remove-config branch from ab185ed to 3bf5b59 Compare June 8, 2023 15:53
Copy link
Contributor

@michael-redpanda michael-redpanda left a comment

Choose a reason for hiding this comment

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

lgtm


BOOST_AUTO_TEST_CASE(parse_and_set_optional_bool_alpha_test_remove) {
using namespace kafka;
cluster::property_update<std::optional<bool>> property;
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: maybe set property to a value and ensure it doesn't change?

Copy link
Member Author

Choose a reason for hiding this comment

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

That's what it does, but not part of the contract of what it should do. IMO that would be over-testing.

@piyushredpanda piyushredpanda merged commit 8f5729a into redpanda-data:dev Jun 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/redpanda area/schema-registry Schema Registry service within Redpanda
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Address this question about nullopt parsing
3 participants