From a8aff3c2bc30e6c6a23886c0041eb783e84d4b47 Mon Sep 17 00:00:00 2001 From: Marcin Siodelski Date: Thu, 5 Sep 2024 14:02:15 +0200 Subject: [PATCH] [#1493] Enable IPv6 stats system test --- tests/system/tests/test_stats.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/system/tests/test_stats.py b/tests/system/tests/test_stats.py index d3e40344a..c082e0b6a 100644 --- a/tests/system/tests/test_stats.py +++ b/tests/system/tests/test_stats.py @@ -35,11 +35,11 @@ def test_get_kea_stats( # 9 leases are initially store in the lease database assert int(data.dhcp4_stats.assigned_addresses) > 9 assert data.subnets4.items is not None - # ToDo: Add support for generation IPv6 traffic. - # assert int(data['dhcp6_stats']['assignedNAs']) > 9 - # assert data['subnets6']['items'] is not None + # ToDo: When we add support for IPv6 traffic generation + # we will be able to test the number of assigned addresses + # is greater than 9. + assert int(data.dhcp6_stats.assigned_nas) == 9 + assert data.subnets6.items is not None # Check if Stork Agent handles all metrics returned by Kea. - # Disable this check because Prometheus is missing pool stats. - # @todo: enable after fixing #1153. - # assert not kea_service.has_encountered_unsupported_statistic() + assert not kea_service.has_encountered_unsupported_statistic()