From e6c4df5dffaae38f734e1f35fb66c66e70c027c5 Mon Sep 17 00:00:00 2001 From: Yuan Jing Vincent Yan Date: Mon, 29 Jul 2024 16:52:49 -0400 Subject: [PATCH] test_admin_client.py: Use new publish appId metrics flag Signed-off-by: Yuan Jing Vincent Yan --- src/integration-tests/test_admin_client.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/integration-tests/test_admin_client.py b/src/integration-tests/test_admin_client.py index 010d63df01..882fbff5c9 100644 --- a/src/integration-tests/test_admin_client.py +++ b/src/integration-tests/test_admin_client.py @@ -158,7 +158,6 @@ def test_breathing(single_node: Cluster) -> None: admin.stop() -@tweak.broker.app_config.stats.app_id_tag_domains([tc.DOMAIN_FANOUT]) def test_queue_stats(single_node: Cluster) -> None: """ Test: queue metrics via admin command. @@ -184,6 +183,12 @@ def test_queue_stats(single_node: Cluster) -> None: - Safeguarding mechanism prevents from getting stats too often. """ + domains = {domain.name: domain for domain in single_node.configurator.domains} + domains[ + tc.DOMAIN_FANOUT + ].definition.parameters.mode.fanout.publish_app_id_metrics = True + single_node.deploy_domains() + # Preconditions admin = AdminClient() admin.connect(*single_node.admin_endpoint)