Code Review
/
ric-plt
/
sdl.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Replacing committers with new ones
[ric-plt/sdl.git]
/
include
/
private
/
tst
/
databaseconfigurationmock.hpp
diff --git
a/include/private/tst/databaseconfigurationmock.hpp
b/include/private/tst/databaseconfigurationmock.hpp
index
a195c67
..
eb3084a
100644
(file)
--- a/
include/private/tst/databaseconfigurationmock.hpp
+++ b/
include/private/tst/databaseconfigurationmock.hpp
@@
-1,5
+1,5
@@
/*
/*
- Copyright (c) 2018-20
19
Nokia.
+ Copyright (c) 2018-20
22
Nokia.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
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.
*/
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_
#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));
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_METHOD0(getDbType, DatabaseConfiguration::DbType());
MOCK_CONST_METHOD0(getServerAddresses, DatabaseConfiguration::Addresses());
+ MOCK_CONST_METHOD1(getServerAddresses, DatabaseConfiguration::Addresses(const boost::optional<std::size_t>& addressIndex));
MOCK_CONST_METHOD0(getDefaultServerAddresses, DatabaseConfiguration::Addresses());
MOCK_CONST_METHOD0(isEmpty, bool());
MOCK_CONST_METHOD0(getDefaultServerAddresses, DatabaseConfiguration::Addresses());
MOCK_CONST_METHOD0(isEmpty, bool());
+ MOCK_CONST_METHOD1(getSentinelAddress, boost::optional<HostAndPort>(const boost::optional<std::size_t>& addressIndex));
+ MOCK_CONST_METHOD1(getSentinelMasterName, std::string(const boost::optional<std::size_t>& addressIndex));
};
}
}
};
}
}