X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fprivate%2Ftst%2Fdatabaseconfigurationmock.hpp;h=8f8d30ed452b9d92f356eb2e9422224053b39a5b;hb=63869e10ac4d8572238989e1b582c0314da91f9c;hp=0fd56f853630a5af258a61e80b7636c56accf479;hpb=2dcf940b7a815456af601cdc6fd8ebbc57bda161;p=ric-plt%2Fsdl.git diff --git a/include/private/tst/databaseconfigurationmock.hpp b/include/private/tst/databaseconfigurationmock.hpp index 0fd56f8..8f8d30e 100644 --- a/include/private/tst/databaseconfigurationmock.hpp +++ b/include/private/tst/databaseconfigurationmock.hpp @@ -14,6 +14,11 @@ limitations under the License. */ +/* + * This source code is part of the near-RT RIC (RAN Intelligent Controller) + * platform project (RICP). +*/ + #ifndef SHAREDDATALAYER_DATABASECONFIGURATIONMOCK_HPP_ #define SHAREDDATALAYER_DATABASECONFIGURATIONMOCK_HPP_ @@ -32,9 +37,11 @@ namespace shareddatalayer MOCK_METHOD1(checkAndApplySentinelMasterName, void(const std::string& name)); MOCK_CONST_METHOD0(getDbType, DatabaseConfiguration::DbType()); MOCK_CONST_METHOD0(getServerAddresses, DatabaseConfiguration::Addresses()); + MOCK_CONST_METHOD1(getServerAddresses, DatabaseConfiguration::Addresses(const boost::optional& addressIndex)); MOCK_CONST_METHOD0(getDefaultServerAddresses, DatabaseConfiguration::Addresses()); MOCK_CONST_METHOD0(isEmpty, bool()); MOCK_CONST_METHOD0(getSentinelAddress, boost::optional()); + MOCK_CONST_METHOD1(getSentinelAddress, boost::optional(const boost::optional& addressIndex)); MOCK_CONST_METHOD0(getSentinelMasterName, std::string()); }; }