Skip to content

Add test for ConfigModel INT type pattern validation#12584

Open
archy-rock3t-cloud wants to merge 1 commit intostrimzi:mainfrom
sophotechlabs:test/config-model-int-pattern-validation
Open

Add test for ConfigModel INT type pattern validation#12584
archy-rock3t-cloud wants to merge 1 commit intostrimzi:mainfrom
sophotechlabs:test/config-model-int-pattern-validation

Conversation

@archy-rock3t-cloud
Copy link
Copy Markdown

Type of change

  • Enhancement / new feature

Description

The INT type supports a pattern constraint but had no test exercising it.

Checklist

  • Write tests
  • Make sure all tests pass

Signed-off-by: Artem Muterko <artem@sopho.tech>
Copy link
Copy Markdown
Member

@scholzj scholzj left a comment

Choose a reason for hiding this comment

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

Thanks for the PR. However, what value does the test really add? The pattern handling does not really differ based on type, as it is handled the same way regardless of the type, given that it actually validates Strings. I think it is also checked in KafkaConfigurationTests on a specific Kafka example that uses int (compression.gzip.level).

@scholzj scholzj requested a review from a team March 30, 2026 18:51
@im-konge
Copy link
Copy Markdown
Member

im-konge commented Apr 2, 2026

Yeah I agree that this seems to be covered in the KafkaConfigurationTests#testGzipCompressionLevel so I guess we don't need any other test like that.

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