19 #include <gmock/gmock.h> 20 #include <gtest/gtest.h> 23 using namespace OpcUa;
61 return std::vector<ReferenceDescription>();
64 return result[0].Referencies;
71 if (ref.TargetNodeId == targetNode && ref.ReferenceTypeId == referenceId)
85 id.AttributeId = attribute;
87 std::vector<DataValue> values =
NameSpace->Read(params);
88 return values.size() == 1 && values[0].Status == StatusCode::Good;
95 EXPECT_TRUE(HasAttribute(
id, AttributeId::BrowseName));
140 ExpectHasBaseAttributes(
id);
141 ExpectHasTypeAttributes(
id);
149 template <
typename T>
155 template <
typename T>
165 description.
Direction = BrowseDirection::Forward;
169 description.
ResultMask = BrowseResultMask::All;
173 std::vector<BrowseResult> results =
NameSpace->Browse(query);
175 ASSERT_EQ(results[0].Referencies.size(), 3);
182 description.
Direction = BrowseDirection::Forward;
186 description.
ResultMask = BrowseResultMask::All;
189 std::vector<BrowseResult> results =
NameSpace->Browse(query);
191 ASSERT_EQ(results[0].Referencies.size(), 3);
196 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::RootFolder);
203 ExpectHasBaseAttributes(ObjectId::RootFolder);
225 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerArray);
228 ExpectHasBaseAttributes(ObjectId::Server_ServerArray);
229 ExpectHasVariableAttributes(ObjectId::Server_ServerArray);
234 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_NamespaceArray);
237 ExpectHasBaseAttributes(ObjectId::Server_NamespaceArray);
238 ExpectHasVariableAttributes(ObjectId::Server_NamespaceArray);
243 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServiceLevel);
246 ExpectHasBaseAttributes(ObjectId::Server_ServiceLevel);
247 ExpectHasVariableAttributes(ObjectId::Server_ServiceLevel);
252 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerCapabilities);
263 ExpectHasBaseAttributes(ObjectId::Server_ServerCapabilities);
268 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerCapabilities_ServerProfileArray);
271 ExpectHasBaseAttributes(ObjectId::Server_ServerCapabilities_ServerProfileArray);
272 ExpectHasVariableAttributes(ObjectId::Server_ServerCapabilities_ServerProfileArray);
277 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerCapabilities_MinSupportedSampleRate);
280 ExpectHasBaseAttributes(ObjectId::Server_ServerCapabilities_MinSupportedSampleRate);
281 ExpectHasVariableAttributes(ObjectId::Server_ServerCapabilities_MinSupportedSampleRate);
286 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerCapabilities_MaxBrowseContinuationPoints);
289 ExpectHasBaseAttributes(ObjectId::Server_ServerCapabilities_MaxBrowseContinuationPoints);
290 ExpectHasVariableAttributes(ObjectId::Server_ServerCapabilities_MaxBrowseContinuationPoints);
295 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerCapabilities_MaxQueryContinuationPoints);
298 ExpectHasBaseAttributes(ObjectId::Server_ServerCapabilities_MaxQueryContinuationPoints);
299 ExpectHasVariableAttributes(ObjectId::Server_ServerCapabilities_MaxQueryContinuationPoints);
304 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerCapabilities_MaxHistoryContinuationPoints);
307 ExpectHasBaseAttributes(ObjectId::Server_ServerCapabilities_MaxHistoryContinuationPoints);
308 ExpectHasVariableAttributes(ObjectId::Server_ServerCapabilities_MaxHistoryContinuationPoints);
313 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerCapabilities_SoftwareCertificates);
316 ExpectHasBaseAttributes(ObjectId::Server_ServerCapabilities_SoftwareCertificates);
317 ExpectHasVariableAttributes(ObjectId::Server_ServerCapabilities_SoftwareCertificates);
322 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerCapabilities_ModellingRules);
330 ExpectHasBaseAttributes(ObjectId::Server_ServerCapabilities_ModellingRules);
345 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ModellingRule_ExposesItsArray_NamingRule);
348 ExpectHasBaseAttributes(ObjectId::ModellingRule_ExposesItsArray_NamingRule);
349 ExpectHasVariableAttributes(ObjectId::ModellingRule_ExposesItsArray_NamingRule);
365 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ModellingRule_Mandatory_NamingRule);
368 ExpectHasBaseAttributes(ObjectId::ModellingRule_Mandatory_NamingRule);
369 ExpectHasVariableAttributes(ObjectId::ModellingRule_Mandatory_NamingRule);
384 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ModellingRule_MandatoryShared_NamingRule);
387 ExpectHasBaseAttributes(ObjectId::ModellingRule_MandatoryShared_NamingRule);
388 ExpectHasVariableAttributes(ObjectId::ModellingRule_MandatoryShared_NamingRule);
403 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ModellingRule_Optional_NamingRule);
406 ExpectHasBaseAttributes(ObjectId::ModellingRule_Optional_NamingRule);
407 ExpectHasVariableAttributes(ObjectId::ModellingRule_Optional_NamingRule);
412 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerDiagnostics);
421 ExpectHasBaseAttributes(ObjectId::Server_ServerDiagnostics);
426 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerDiagnostics_EnabledFlag);
429 ExpectHasBaseAttributes(ObjectId::Server_ServerDiagnostics_EnabledFlag);
430 ExpectHasVariableAttributes(ObjectId::Server_ServerDiagnostics_EnabledFlag);
435 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerDiagnostics_SamplingIntervalDiagnosticsArray);
438 ExpectHasBaseAttributes(ObjectId::Server_ServerDiagnostics_SamplingIntervalDiagnosticsArray);
439 ExpectHasVariableAttributes(ObjectId::Server_ServerDiagnostics_SamplingIntervalDiagnosticsArray);
444 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerDiagnostics_SessionsDiagnosticsSummary);
447 ExpectHasBaseAttributes(ObjectId::Server_ServerDiagnostics_SessionsDiagnosticsSummary);
452 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerDiagnostics_ServerDiagnosticsSummary);
455 ExpectHasBaseAttributes(ObjectId::Server_ServerDiagnostics_ServerDiagnosticsSummary);
456 ExpectHasVariableAttributes(ObjectId::Server_ServerDiagnostics_ServerDiagnosticsSummary);
461 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerDiagnostics_SubscriptionDiagnosticsArray);
464 ExpectHasBaseAttributes(ObjectId::Server_ServerDiagnostics_SubscriptionDiagnosticsArray);
465 ExpectHasVariableAttributes(ObjectId::Server_ServerDiagnostics_SubscriptionDiagnosticsArray);
470 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerRedundancy);
475 ExpectHasBaseAttributes(ObjectId::Server_ServerRedundancy);
480 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus);
488 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus);
489 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus);
494 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_BuildInfo);
504 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_BuildInfo);
505 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_BuildInfo);
510 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_BuildInfo_BuildDate);
513 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_BuildInfo);
514 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_BuildInfo);
519 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_BuildInfo_BuildNumber);
522 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_BuildInfo_BuildNumber);
523 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_BuildInfo_BuildNumber);
528 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_BuildInfo_ManufacturerName);
531 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_BuildInfo_ManufacturerName);
532 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_BuildInfo_ManufacturerName);
537 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_BuildInfo_ProductName);
540 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_BuildInfo_ProductName);
541 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_BuildInfo_ProductName);
546 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_BuildInfo_ProductUri);
549 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_BuildInfo_ProductUri);
550 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_BuildInfo_ProductUri);
555 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_BuildInfo_SoftwareVersion);
558 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_BuildInfo_SoftwareVersion);
559 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_BuildInfo_SoftwareVersion);
564 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_CurrentTime);
567 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_CurrentTime);
568 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_CurrentTime);
573 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_StartTime);
576 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_StartTime);
577 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_StartTime);
582 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_ServerStatus_State);
585 ExpectHasBaseAttributes(ObjectId::Server_ServerStatus_State);
586 ExpectHasVariableAttributes(ObjectId::Server_ServerStatus_State);
591 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::Server_VendorServerInfo);
594 ExpectHasBaseAttributes(ObjectId::Server_VendorServerInfo);
599 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::TypesFolder);
608 ExpectHasBaseAttributes(ObjectId::TypesFolder);
613 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::DataTypesFolder);
618 ExpectHasBaseAttributes(ObjectId::DataTypesFolder);
680 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ImageBMP);
683 ExpectHasBaseAttributes(ObjectId::ImageBMP);
684 ExpectHasTypeAttributes(ObjectId::ImageBMP);
689 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ImageGIF);
692 ExpectHasBaseAttributes(ObjectId::ImageGIF);
693 ExpectHasTypeAttributes(ObjectId::ImageGIF);
698 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ImageJPG);
701 ExpectHasBaseAttributes(ObjectId::ImageJPG);
702 ExpectHasTypeAttributes(ObjectId::ImageJPG);
707 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ImagePNG);
710 ExpectHasBaseAttributes(ObjectId::ImagePNG);
711 ExpectHasTypeAttributes(ObjectId::ImagePNG);
1245 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::UserIdentityToken);
1251 ExpectHasBaseAttributes(ObjectId::UserIdentityToken);
1252 ExpectHasTypeAttributes(ObjectId::UserIdentityToken);
1266 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::EventTypesFolder);
1271 ExpectHasBaseAttributes(ObjectId::EventTypesFolder);
1363 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BaseEventType_EventId);
1368 ExpectHasBaseAttributes(ObjectId::BaseEventType_EventId);
1369 ExpectHasVariableAttributes(ObjectId::BaseEventType_EventId);
1374 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BaseEventType_EventType);
1379 ExpectHasBaseAttributes(ObjectId::BaseEventType_EventType);
1380 ExpectHasVariableAttributes(ObjectId::BaseEventType_EventType);
1385 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BaseEventType_Message);
1390 ExpectHasBaseAttributes(ObjectId::BaseEventType_Message);
1391 ExpectHasVariableAttributes(ObjectId::BaseEventType_Message);
1396 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BaseEventType_ReceiveTime);
1401 ExpectHasBaseAttributes(ObjectId::BaseEventType_ReceiveTime);
1402 ExpectHasVariableAttributes(ObjectId::BaseEventType_ReceiveTime);
1407 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BaseEventType_Severity);
1412 ExpectHasBaseAttributes(ObjectId::BaseEventType_Severity);
1413 ExpectHasVariableAttributes(ObjectId::BaseEventType_Severity);
1418 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BaseEventType_SourceName);
1423 ExpectHasBaseAttributes(ObjectId::BaseEventType_SourceName);
1424 ExpectHasVariableAttributes(ObjectId::BaseEventType_SourceName);
1429 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BaseEventType_SourceNode);
1434 ExpectHasBaseAttributes(ObjectId::BaseEventType_SourceNode);
1435 ExpectHasVariableAttributes(ObjectId::BaseEventType_SourceNode);
1440 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BaseEventType_Time);
1445 ExpectHasBaseAttributes(ObjectId::BaseEventType_Time);
1446 ExpectHasVariableAttributes(ObjectId::BaseEventType_Time);
1451 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ObjectTypesFolder);
1456 ExpectHasBaseAttributes(ObjectId::ObjectTypesFolder);
1531 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ModellingRuleType_NamingRule);
1535 ExpectHasBaseAttributes(ObjectId::ModellingRuleType_NamingRule);
1536 ExpectHasVariableAttributes(ObjectId::ModellingRuleType_NamingRule);
1556 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerCapabilitiesType_ModellingRules);
1561 ExpectHasBaseAttributes(ObjectId::ServerCapabilitiesType_ModellingRules);
1566 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerCapabilitiesType_LocaleIdArray);
1571 ExpectHasBaseAttributes(ObjectId::ServerCapabilitiesType_LocaleIdArray);
1572 ExpectHasVariableAttributes(ObjectId::ServerCapabilitiesType_LocaleIdArray);
1577 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerCapabilitiesType_MaxBrowseContinuationPoints);
1582 ExpectHasBaseAttributes(ObjectId::ServerCapabilitiesType_MaxBrowseContinuationPoints);
1583 ExpectHasVariableAttributes(ObjectId::ServerCapabilitiesType_MaxBrowseContinuationPoints);
1588 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerCapabilitiesType_MaxHistoryContinuationPoints);
1593 ExpectHasBaseAttributes(ObjectId::ServerCapabilitiesType_MaxHistoryContinuationPoints);
1594 ExpectHasVariableAttributes(ObjectId::ServerCapabilitiesType_MaxHistoryContinuationPoints);
1599 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerCapabilitiesType_MinSupportedSampleRate);
1604 ExpectHasBaseAttributes(ObjectId::ServerCapabilitiesType_MinSupportedSampleRate);
1605 ExpectHasVariableAttributes(ObjectId::ServerCapabilitiesType_MinSupportedSampleRate);
1610 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerCapabilitiesType_ServerProfileArray);
1615 ExpectHasBaseAttributes(ObjectId::ServerCapabilitiesType_ServerProfileArray);
1616 ExpectHasVariableAttributes(ObjectId::ServerCapabilitiesType_ServerProfileArray);
1635 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerDiagnosticsType_EnabledFlag);
1640 ExpectHasBaseAttributes(ObjectId::ServerDiagnosticsType_EnabledFlag);
1641 ExpectHasVariableAttributes(ObjectId::ServerDiagnosticsType_EnabledFlag);
1646 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerDiagnosticsType_SamplingIntervalDiagnosticsArray);
1651 ExpectHasBaseAttributes(ObjectId::ServerDiagnosticsType_SamplingIntervalDiagnosticsArray);
1652 ExpectHasVariableAttributes(ObjectId::ServerDiagnosticsType_SamplingIntervalDiagnosticsArray);
1657 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerDiagnosticsType_ServerDiagnosticsSummary);
1662 ExpectHasBaseAttributes(ObjectId::ServerDiagnosticsType_ServerDiagnosticsSummary);
1663 ExpectHasVariableAttributes(ObjectId::ServerDiagnosticsType_ServerDiagnosticsSummary);
1668 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerDiagnosticsType_SessionsDiagnosticsSummary);
1673 ExpectHasBaseAttributes(ObjectId::ServerDiagnosticsType_ServerDiagnosticsSummary);
1678 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerDiagnosticsType_SubscriptionDiagnosticsArray);
1683 ExpectHasBaseAttributes(ObjectId::ServerDiagnosticsType_SubscriptionDiagnosticsArray);
1698 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerRedundancyType_RedundancySupport);
1702 ExpectHasBaseAttributes(ObjectId::ServerRedundancyType_RedundancySupport);
1703 ExpectHasVariableAttributes(ObjectId::ServerRedundancyType_RedundancySupport);
1725 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerType_NamespaceArray);
1729 ExpectHasBaseAttributes(ObjectId::ServerType_NamespaceArray);
1730 ExpectHasVariableAttributes(ObjectId::ServerType_NamespaceArray);
1735 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerType_ServerArray);
1739 ExpectHasBaseAttributes(ObjectId::ServerType_ServerArray);
1740 ExpectHasVariableAttributes(ObjectId::ServerType_ServerArray);
1745 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerType_ServerCapabilities);
1750 ExpectHasBaseAttributes(ObjectId::ServerType_ServerCapabilities);
1751 ExpectHasObjectAttributes(ObjectId::ServerType_ServerCapabilities);
1756 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerType_ServerDiagnostics);
1761 ExpectHasBaseAttributes(ObjectId::ServerType_ServerDiagnostics);
1762 ExpectHasObjectAttributes(ObjectId::ServerType_ServerDiagnostics);
1767 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerType_ServerRedundancy);
1772 ExpectHasBaseAttributes(ObjectId::ServerType_ServerRedundancy);
1773 ExpectHasObjectAttributes(ObjectId::ServerType_ServerRedundancy);
1778 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerType_ServerStatus);
1783 ExpectHasBaseAttributes(ObjectId::ServerType_ServerStatus);
1784 ExpectHasVariableAttributes(ObjectId::ServerType_ServerStatus);
1804 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BuildInfoType_BuildDate);
1808 ExpectHasBaseAttributes(ObjectId::BuildInfoType_BuildDate);
1809 ExpectHasVariableAttributes(ObjectId::BuildInfoType_BuildDate);
1814 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BuildInfoType_BuildNumber);
1818 ExpectHasBaseAttributes(ObjectId::BuildInfoType_BuildNumber);
1819 ExpectHasVariableAttributes(ObjectId::BuildInfoType_BuildNumber);
1824 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BuildInfoType_ManufacturerName);
1828 ExpectHasBaseAttributes(ObjectId::BuildInfoType_ManufacturerName);
1829 ExpectHasVariableAttributes(ObjectId::BuildInfoType_ManufacturerName);
1834 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BuildInfoType_ProductName);
1838 ExpectHasBaseAttributes(ObjectId::BuildInfoType_ProductName);
1839 ExpectHasVariableAttributes(ObjectId::BuildInfoType_ProductName);
1844 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BuildInfoType_ProductUri);
1848 ExpectHasBaseAttributes(ObjectId::BuildInfoType_ProductUri);
1849 ExpectHasVariableAttributes(ObjectId::BuildInfoType_ProductUri);
1854 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::BuildInfoType_SoftwareVersion);
1858 ExpectHasBaseAttributes(ObjectId::BuildInfoType_SoftwareVersion);
1859 ExpectHasVariableAttributes(ObjectId::BuildInfoType_SoftwareVersion);
1864 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerStatusType_CurrentTime);
1868 ExpectHasBaseAttributes(ObjectId::ServerStatusType_CurrentTime);
1869 ExpectHasVariableAttributes(ObjectId::ServerStatusType_CurrentTime);
1874 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerStatusType_StartTime);
1878 ExpectHasBaseAttributes(ObjectId::ServerStatusType_StartTime);
1879 ExpectHasVariableAttributes(ObjectId::ServerStatusType_StartTime);
1884 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerStatusType_State);
1888 ExpectHasBaseAttributes(ObjectId::ServerStatusType_State);
1889 ExpectHasVariableAttributes(ObjectId::ServerStatusType_State);
1894 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerType_ServiceLevel);
1899 ExpectHasBaseAttributes(ObjectId::ServerType_ServiceLevel);
1900 ExpectHasVariableAttributes(ObjectId::ServerType_ServiceLevel);
1905 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerType_VendorServerInfo);
1910 ExpectHasBaseAttributes(ObjectId::ServerType_VendorServerInfo);
1911 ExpectHasObjectAttributes(ObjectId::ServerType_VendorServerInfo);
1925 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::SessionsDiagnosticsSummaryType);
1928 ExpectHasBaseAttributes(ObjectId::SessionsDiagnosticsSummaryType);
1929 ExpectHasTypeAttributes(ObjectId::SessionsDiagnosticsSummaryType);
1944 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::StateType_StateNumber);
1948 ExpectHasBaseAttributes(ObjectId::StateType_StateNumber);
1949 ExpectHasVariableAttributes(ObjectId::StateType_StateNumber);
1972 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ReferenceTypesFolder);
1977 ExpectHasBaseAttributes(ObjectId::ReferenceTypesFolder);
2211 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::VariableTypesFolder);
2216 ExpectHasBaseAttributes(ObjectId::VariableTypesFolder);
2291 const std::vector<ReferenceDescription> refs =
Browse(ObjectId::ServerDiagnosticsSummaryDataType);
2294 ExpectHasBaseAttributes(ObjectId::ServerDiagnosticsSummaryDataType);
2295 ExpectHasDataTypeAttributes(ObjectId::ServerDiagnosticsSummaryDataType);
const char ServerDiagnosticsType[]
const char RefreshEndEventType[]
const char SessionDiagnosticsDataType[]
const char NumericRange[]
TypeWithSize< 8 >::Int Int64
const char ServerStatus[]
std::vector< OpcUa::ReadValueId > AttributesToRead
const char SubscriptionDiagnosticsArrayType[]
const char SemanticChangeStructureDataType[]
void ExpectHasBaseAttributes(ObjectId id)
const char VariableTypes[]
const char StatusResult[]
const char RefreshStartEventType[]
std::size_t SizeOf(std::vector< T > vec)
const char LocalizedText[]
const char AddReferencesItem[]
const char ModellingRule_MandatoryShared[]
const char DeviceFailureEventType[]
const char MaxBrowseContinuationPoints[]
const char HasModellingRule[]
TEST_F(TestInfoTest, Names)
TypeWithSize< 4 >::Int Int32
const char HasTypeDefinition[]
std::vector< BrowseDescription > NodesToBrowse
const char DataTypeDictionaryType[]
const char ServerVendorCapabilityType[]
TypeWithSize< 4 >::UInt UInt32
const char SubscriptionDiagnosticsArray[]
const char DeleteNodesItem[]
const char MinSupportedSampleRate[]
const char ServerRedundancyType[]
const char SamplingIntervalDiagnosticsArrayType[]
const char QualifiedName[]
const char ModellingRule_ExposesItsArray[]
const char SystemEventType[]
const char ReferenceTypes[]
const char ModellingRules[]
TypeWithSize< 8 >::UInt UInt64
const char SessionSecurityDiagnosticsDataType[]
std::vector< T > Browse(const NodeId &node, NodeClass nodeClassMask, Services::SharedPtr services)
std::vector< ReferenceDescription > Browse(const NodeId &id) const
const char SoftwareVersion[]
const char NonHierarchicalReferences[]
#define EXPECT_TRUE(condition)
static Server::AddressSpace::SharedPtr NameSpace
const char SamplingIntervalDiagnosticsType[]
const char SignedSoftwareCertificate[]
const char BaseDataVariableType[]
bool HasAttribute(OpcUa::ObjectId object, OpcUa::AttributeId attribute)
const char ModellingRule_Mandatory[]
const char DataTypeDescriptionType[]
const char ServerCapabilitiesType[]
void ExpectHasVariableTypeAttributes(ObjectId id)
const char HasHistoricalConfiguration[]
const char ServiceCounterDataType[]
const char SessionDiagnosticsSummary[]
const char ServerDiagnostics[]
const char BaseModelChangeEventType[]
const char ServiceLevel[]
const char HasDescription[]
void ExpectHasDataTypeAttributes(ObjectId id)
const char NamespaceArray[]
const char BaseEventType[]
const char SemanticChangeEventType[]
const char HasEventSource[]
const char SubscriptionDiagnosticsType[]
const char ServerStatusType[]
#define EXPECT_FALSE(condition)
FloatingPoint< float > Float
void ExpectHasObjectAttributes(ObjectId id)
const char DataTypeSystemType[]
const char MaxHistoryContinuationPoints[]
const char BaseObjectType[]
const char SamplingIntervalDiagnosticsDataType[]
const char GeneratesEvent[]
const char SessionSecurityDiagnosticsType[]
void FillStandardNamespace(OpcUa::NodeManagementServices ®istry, const Common::Logger::SharedPtr &logger)
const char PropertyType[]
OPC UA Address space part. GNU LGPL.
const char LocaleIdArray[]
const char VendorServerInfo[]
const char ServerCapabilities[]
const char HierarchicalReferences[]
const char DataTypeEncodingType[]
const char HasComponent[]
const char VendorServerInfoType[]
bool HasReference(std::vector< ReferenceDescription > refs, ReferenceId referenceId, NodeId targetNode) const
void ExpectHasReferenceTypeAttributes(ObjectId id)
const char DeleteReferencesItem[]
#define ASSERT_EQ(val1, val2)
const char SessionSecurityDiagnosticsArrayType[]
const char ServerStatusDataType[]
BrowseResultMask ResultMask
const char SessionDiagnosticsSummaryType[]
A Node object represent an OPC-UA node. It is high level object intended for developper who want to e...
const char ModellingRuleType[]
const char ServerRedundancy[]
const char HasOrderedComponent[]
FloatingPoint< double > Double
void ExpectHasVariableAttributes(ObjectId id)
const char ManufacturerName[]
const char ServerDiagnosticsSummary[]
const char ModellingRule_Optional[]
const char ApplicationDescription[]
const char BuildInfoType[]
BrowseDirection Direction
Common::Logger::SharedPtr Logger
const char SessionDiagnosticsObjectType[]
AddressSpace::UniquePtr CreateAddressSpace(const Common::Logger::SharedPtr &logger)
const char RefreshRequiredEventType[]
const char ExpandedNodeId[]
void ExpectHasTypeAttributes(ObjectId id)
const char ModelChangeStructureDataType[]
const char AddNodesItem[]
const char BaseVariableType[]
#define EXPECT_EQ(expected, actual)
std::shared_ptr< logger > stderr_color_mt(const std::string &logger_name)
const char SamplingIntervalDiagnosticsArray[]
const char BaseDataType[]
const char DiagnosticInfo[]
const char SubscriptionDiagnosticsDataType[]
const char TransitionType[]
const char EUInformation[]
const char ServerDiagnosticsSummaryType[]
const char ServerProfileArray[]