You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
xrcg 0.11.0 generates MQTT producer tests that do not pass all required URI-template parameters when a message topic contains more than the CloudEvents subject field.
The base CloudEvent subject is {station_id}. The generated publish method correctly requires both river_name and station_id, but the generated tests/test_client.py calls the method with only station_id and an explicit topic.
The generated tests fail before publishing, even though the generated client and feeder runtime are correct.
Expected
Generated tests must provide sample values for every required URI-template argument, including topic-only placeholders such as river_name.
Reproducer
Observed in clemensv/real-time-sources/feeders/nve-hydro after generating the MQTT client from xreg/nve_hydro.xreg.json with xrcg 0.11.0 on September 23, 2026.
Also reproduced in the Pegelonline generated MQTT client during review of clemensv/real-time-sources#1747. Both Station and CurrentMeasurement tests in feeders/pegelonline/pegelonline_mqtt_producer/pegelonline_mqtt_producer_mqtt_client/tests/test_client.py omit the required water_shortname argument and raise TypeError before publication. This was reproduced against a real test Mosquitto broker. The hand-written bridge passes the argument correctly. No generated consumer files were edited or worked around.
Activity
clemensv commentedon Nov 24, 2026
Also reproduced in the Pegelonline generated MQTT client during review of clemensv/real-time-sources#1747. Both Station and CurrentMeasurement tests in feeders/pegelonline/pegelonline_mqtt_producer/pegelonline_mqtt_producer_mqtt_client/tests/test_client.py omit the required water_shortname argument and raise TypeError before publication. This was reproduced against a real test Mosquitto broker. The hand-written bridge passes the argument correctly. No generated consumer files were edited or worked around.