X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fprivate%2Ftst%2Fdatabaseconfigurationmock.hpp;h=eb3084a078460ced14d89a0cce3bd9176d51811f;hb=c6dae5f39aeee509277990fd7ea7c99f1d408c04;hp=e4fe0af79264b649a5ae7ed79f1d2ba83aed666d;hpb=ece67088ea6c4f67b9d0db74477a9d5c614d7763;p=ric-plt%2Fsdl.git diff --git a/include/private/tst/databaseconfigurationmock.hpp b/include/private/tst/databaseconfigurationmock.hpp index e4fe0af..eb3084a 100644 --- a/include/private/tst/databaseconfigurationmock.hpp +++ b/include/private/tst/databaseconfigurationmock.hpp @@ -1,5 +1,5 @@ /* - Copyright (c) 2018-2019 Nokia. + Copyright (c) 2018-2022 Nokia. Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. @@ -33,15 +33,15 @@ namespace shareddatalayer public: MOCK_METHOD1(checkAndApplyDbType, void(const std::string& type)); MOCK_METHOD1(checkAndApplyServerAddress, void(const std::string& address)); - MOCK_METHOD1(checkAndApplySentinelAddress, void(const std::string& address)); - MOCK_METHOD1(checkAndApplySentinelMasterName, void(const std::string& name)); + MOCK_METHOD1(checkAndApplySentinelPorts, void(const std::string& sentinelPortsEnvStr)); + MOCK_METHOD1(checkAndApplySentinelMasterNames, void(const std::string& sentinelMasterNamesEnvStr)); 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()); + MOCK_CONST_METHOD1(getSentinelMasterName, std::string(const boost::optional& addressIndex)); }; } }