Fixing tests for FAQ with namespace introduced in #1753
This pull request includes changes to the FaqAdminServiceTest, FaqAdminServiceSettingsTest, and FaqDefinitionMongoDAOTest classes to update method calls to include a namespace parameter. This ensures that the correct FAQ definitions are retrieved based on both the bot ID and namespace.
Updates to method calls to include namespace parameter:
Fixing tests for FAQ with namespace introduced in #1753
This pull request includes changes to the
FaqAdminServiceTest
,FaqAdminServiceSettingsTest
, andFaqDefinitionMongoDAOTest
classes to update method calls to include anamespace
parameter. This ensures that the correct FAQ definitions are retrieved based on both the bot ID and namespace.Updates to method calls to include
namespace
parameter:bot/admin/server/src/test/kotlin/FaqAdminServiceSettingsTest.kt
: Updated the method callfaqDefinitionDAO.getFaqDefinitionByBotId
tofaqDefinitionDAO.getFaqDefinitionByBotIdAndNamespace
to include thenamespace
parameter.bot/admin/server/src/test/kotlin/FaqAdminServiceTest.kt
: Updated multiple method calls to include thenamespace
parameter:faqDefinitionDAO.getFaqDefinitionByIntentIdAndBotId
tofaqDefinitionDAO.getFaqDefinitionByIntentIdAndBotIdAndNamespace
. [1] [2] [3] [4]faqDefinitionDAO.getFaqDefinitionByBotId
tofaqDefinitionDAO.getFaqDefinitionByBotIdAndNamespace
.nlp/front/storage-mongo/src/test/kotlin/FaqDefinitionMongoDAOTest.kt
: Updated method calls to include thenamespace
parameter:faqDefinitionDAO.getFaqDefinitionByBotId
tofaqDefinitionDAO.getFaqDefinitionByBotIdAndNamespace
. [1] [2] [3]faqDefinitionDAO.getTags
to includenamespace
parameter.