Fix test failures with oslo.limit 2.3.0

The oslo.limit 2.3.0 release contains the validation to ensure
the [oslo_limit] endpoint_id option is set[1]. This fixes the test
failures caused by that validation by overriding the option in all
test cases where unified quota implementation is used.

[1] https://review.opendev.org/c/openstack/oslo.limit/+/897509

Closes-Bug: #2049064
Change-Id: Iffc7a66033a9c09e850890bb380b6667412f0d98
This commit is contained in:
Takashi Kajinami
2024-01-12 00:14:52 +09:00
parent fed123085d
commit 48639c1005

View File

@@ -62,6 +62,9 @@ class ConfFixture(config_fixture.Config):
self.conf.set_default(
'notification_format', "both", group="notifications")
# oslo.limit requires endpoint_id since 2.3.0
self.conf.set_default('endpoint_id', 'ENDPOINT_ID', group='oslo_limit')
config.parse_args([], default_config_files=[], configure_db=False,
init_rpc=False)
policy_opts.set_defaults(self.conf)