HomeSoftware Heritage

Allow overriding broker settings in the kafka server fixture

Description

Allow overriding broker settings in the kafka server fixture

To test the behavior of swh.journal under different settings of the kafka
broker, split the kafka_server fixture into:

  • a persistent session_kafka_server fixture, spawning a single broker for the whole test session
  • a function-scoped kafka_server fixture, which uses the kafka admin client to override broker settings if needed, for the current test (and restores the original setting values afterwards)

The broker settings can be overridden for a given function using the parametrize
decorator to change the return value of the kafka_server_config_overrides
fixture.

Details

Provenance
olasdAuthored on Apr 8 2020, 1:15 PM
olasdPushed on Apr 8 2020, 2:57 PM
Differential Revision
D2979: Allow overriding broker settings in the kafka server fixture
Parents
rDJNLa68e800622b2: Remove useless deepcopy in the inmemory journal writer
Branches
Unknown
Tags
Unknown
Build Status
Buildable 11679
Build 17716: test-and-buildJenkins console · Jenkins