security: fix bugs in keylocator checker of validator config
refs: #4339
Change-Id: Icfd7314e5c6d244f558c6a7362c547d4fe1ce80c
diff --git a/tests/unit-tests/security/v2/validator-config/checker.t.cpp b/tests/unit-tests/security/v2/validator-config/checker.t.cpp
index 12af61b..4b8d5ee 100644
--- a/tests/unit-tests/security/v2/validator-config/checker.t.cpp
+++ b/tests/unit-tests/security/v2/validator-config/checker.t.cpp
@@ -123,7 +123,7 @@
{
public:
RegexEqual()
- : checker(Regex("^<foo><bar>$"))
+ : checker(Regex("^<foo><bar><KEY><>$"))
{
}
@@ -139,7 +139,7 @@
{
public:
RegexIsPrefixOf()
- : checker(Regex("^<foo><bar><>*$"))
+ : checker(Regex("^<foo><bar><>*<KEY><>$"))
{
}
@@ -155,7 +155,7 @@
{
public:
RegexIsStrictPrefixOf()
- : checker(Regex("^<foo><bar><>+$"))
+ : checker(Regex("^<foo><bar><>+<KEY><>$"))
{
}
@@ -275,7 +275,7 @@
key-locator
{
type name
- regex ^<foo><bar>$
+ regex ^<foo><bar><KEY><>$
}
)CONF"), "test-config"))
, checker(*checkerPtr)