-
Notifications
You must be signed in to change notification settings - Fork 552
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
follow-up: config/config_store_test: ignored_keys test #15765
follow-up: config/config_store_test: ignored_keys test #15765
Conversation
ducktape was retried in https://buildkite.com/redpanda/redpanda/builds/43042#018c81e2-cfcc-4b36-a2eb-aa1ddefcb827 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine, I'm wondering if it makes sense to extend this a bit
// actual test: check that noop_cfg can ignore properties for test_config | ||
auto noop_cfg = noop_config{}; | ||
BOOST_REQUIRE_NO_THROW(noop_cfg.read_yaml( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would it also make sense to read_yaml()
into a config that has aliased_bool_legay=True
and check that it is ignored?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah but that's not how it works: the parameter is called ignored_missing: if the yaml key is not found in the properties of the caller, then it will throw std::illegal_argument unless it's in ignore_missing.
I'll add an extension to show this
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, much clearer now! Thank you!
2cb3359
to
6e051f0
Compare
force push: rewrote the test to show how ignore_missing parameter work and should be used |
this test is mainly concerned with showing how to use config_store::read_yaml and how to ignore unknown keys that needs to be intepreted by a separate config_store related to issues/15759
6e051f0
to
b33ece9
Compare
This test is mainly concerned with showing how to use config_store::read_yaml and how to ignore unknown keys that need to be interpreted by a separate config_store
related to #15759
followup for #15605
Backports Required
Release Notes