X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fprivate%2Ftst%2Fdatabaseconfigurationmock.hpp;fp=include%2Fprivate%2Ftst%2Fdatabaseconfigurationmock.hpp;h=eb3084a078460ced14d89a0cce3bd9176d51811f;hb=5bdca62d89d430f607310370fe1391bd1d1bd21a;hp=8f8d30ed452b9d92f356eb2e9422224053b39a5b;hpb=b4e17e19a35bf714f5ae6c1c041e951ed9de10d4;p=ric-plt%2Fsdl.git diff --git a/include/private/tst/databaseconfigurationmock.hpp b/include/private/tst/databaseconfigurationmock.hpp index 8f8d30e..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,16 +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)); }; } }