X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=include%2Fprivate%2Ftst%2Fdatabaseconfigurationmock.hpp;h=eb3084a078460ced14d89a0cce3bd9176d51811f;hb=refs%2Fchanges%2F25%2F9925%2F1;hp=a195c678961fe7bc908fbeea4f1b7ba0be22dd13;hpb=ef2bf51d04aaf01fa0cabdcaf905b23423067662;p=ric-plt%2Fsdl.git diff --git a/include/private/tst/databaseconfigurationmock.hpp b/include/private/tst/databaseconfigurationmock.hpp index a195c67..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. @@ -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_ @@ -28,10 +33,15 @@ namespace shareddatalayer public: MOCK_METHOD1(checkAndApplyDbType, void(const std::string& type)); MOCK_METHOD1(checkAndApplyServerAddress, void(const std::string& address)); + 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_METHOD1(getSentinelAddress, boost::optional(const boost::optional& addressIndex)); + MOCK_CONST_METHOD1(getSentinelMasterName, std::string(const boost::optional& addressIndex)); }; } }