| 59 | }; |
| 60 | |
| 61 | TEST_F(LDAPQueryTest, TestLDAPFilterMatchBundle) |
| 62 | { |
| 63 | LDAPFilter ldapMatchCase("(bundle.testproperty=YES)"); |
| 64 | LDAPFilter ldapKeyMismatchCase("(bundle.TestProperty=YES)"); |
| 65 | LDAPFilter ldapValueMismatchCase("(bundle.testproperty=Yes)"); |
| 66 | |
| 67 | // Exact string match of both key and value |
| 68 | ASSERT_TRUE(ldapMatchCase.Match(testBundle)); |
| 69 | |
| 70 | // Testing case-insensitive key (should still pass) |
| 71 | ASSERT_TRUE(ldapKeyMismatchCase.Match(testBundle)); |
| 72 | |
| 73 | // Testing case-insensitive value (should fail) |
| 74 | ASSERT_FALSE(ldapValueMismatchCase.Match(testBundle)); |
| 75 | } |
| 76 | |
| 77 | TEST_F(LDAPQueryTest, TestLDAPFilterMatchNoException) |
| 78 | { |
nothing calls this directly
no test coverage detected