Skip to content

Commit f73cf60

Browse files
test: add integration test for domain=null filtering in listCount to fix #27190
1 parent a3933fe commit f73cf60

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

openmetadata-integration-tests/src/test/java/org/openmetadata/it/tests/UserResourceIT.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2037,6 +2037,12 @@ void test_listUsersWithDomainFilter(TestNamespace ns) {
20372037
assertTrue(
20382038
findUserInPaginatedResults(user1.getId(), "domain", testDomain().getName()),
20392039
"User in domain should be in filtered list");
2040+
2041+
// Also assert that we can search for users without any domain (domain=null)
2042+
// This specifically tests the issue #27190 where filtering without a domain was throwing a 500 error
2043+
assertTrue(
2044+
findUserInPaginatedResults(user2.getId(), "domain", "null"),
2045+
"User without domain should be in filtered list with domain=null");
20402046
}
20412047

20422048
@Test

0 commit comments

Comments
 (0)