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()