18 #include <gmock/gmock.h> 19 #include <gtest/gtest.h> 46 std::unique_ptr<Common::AddonsManager>
Addons;
51 OpcUa::Server::EndpointsRegistry::SharedPtr endpoints;
63 endpoints->
AddEndpoints(std::vector<OpcUa::EndpointDescription>(1, desc));
66 OpcUa::Services::SharedPtr
computer = services->GetServer();
67 std::vector<OpcUa::EndpointDescription> descriptions;
70 ASSERT_EQ(descriptions[0].EndpointUrl,
"url");
76 data.
Name =
"application";
98 endpoint.
Groups.push_back(tokenPolicy);
99 data.
Groups.push_back(endpoint);
101 return std::vector<Common::ParametersGroup> {data, data};
131 return std::vector<OpcUa::Server::ApplicationData> {data, data};
std::vector< OpcUa::Server::ApplicationData > CreateTwoEndpointsConfiguration()
Common::Logger::SharedPtr Logger
ApplicationDescription Application
bool param(const std::string ¶m_name, T ¶m_val, const T &default_val)
std::vector< OpcUa::UserTokenPolicy > UserIdentityTokens
const char EndpointsRegistryAddonId[]
std::string SecurityPolicyUri
std::vector< Parameter > Parameters
Common::Parameter FindParameter(const Common::ParametersGroup &group, const char *name)
std::string GatewayServerUri
TEST_F(TestInfoTest, Names)
std::string SecurityPolicyUri
std::vector< ParametersGroup > Groups
std::vector< EndpointDescription > Endpoints
std::string IssuedTokenType
const char ServicesRegistryAddonId[]
virtual void AddEndpoints(const std::vector< EndpointDescription > &endpoints)=0
std::string TransportProfileUri
OpcUa::ApplicationType ApplicationType
std::unique_ptr< Common::AddonsManager > Addons
AddonsManager::UniquePtr CreateAddonsManager(const Common::Logger::SharedPtr &logger)
Get instance of addons core.
void RegisterServicesRegistry(Common::AddonsManager &addons)
std::string DiscoveryProfileUri
OpcUa::MessageSecurityMode SecurityMode
#define ASSERT_NO_THROW(statement)
std::string ApplicationUri
std::vector< Common::ParametersGroup > CreateTwoEndpointsParameters()
#define ASSERT_TRUE(condition)
#define ASSERT_EQ(val1, val2)
OpcUa::LocalizedText ApplicationName
void RegisterEndpointsServicesAddon(Common::AddonsManager &addons)
OpcUa::UserTokenType TokenType
std::string IssuerEndpointUrl
std::shared_ptr< logger > stderr_color_mt(const std::string &logger_name)