From e3c0199d8d3b3b8eaab0a33c0dfacb0929149fe9 Mon Sep 17 00:00:00 2001 From: Mateusz Poliwczak Date: Thu, 19 Mar 2026 14:33:11 +0100 Subject: [PATCH] Fix test_list_with_sort_dir Splunk orders these case insensitively, thus we have to lower these before doing a compare. --- tests/integration/test_collection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/integration/test_collection.py b/tests/integration/test_collection.py index dbc8e6ea..bed2df57 100755 --- a/tests/integration/test_collection.py +++ b/tests/integration/test_collection.py @@ -158,11 +158,11 @@ def test(coll_name): expected_kwargs["sort_key"] = "sid" found_kwargs["sort_key"] = "sid" expected = list( - reversed([ent.name for ent in coll.list(**expected_kwargs)]) + reversed([ent.name.lower() for ent in coll.list(**expected_kwargs)]) ) if len(expected) == 0: logging.debug(f"No entities in collection {coll_name}; skipping test.") - found = [ent.name for ent in coll.list(**found_kwargs)] + found = [ent.name.lower() for ent in coll.list(**found_kwargs)] if expected != found: logging.warning(