adamdebreceni commented on code in PR #2279:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2279#discussion_r4219071468


##########
extensions/opc/tests/PutOPCProcessorTests.cpp:
##########
@@ -105,6 +105,37 @@ TEST_CASE("Test creating a new node with path node id", 
"[putopcprocessor]") {
   verifyCreatedNode(expected_node, controller);
 }
 
+TEST_CASE("Test updating a node previously created by the processor", 
"[putopcprocessor]") {
+  OpcUaTestServer server;
+  server.start();
+  SingleProcessorTestController 
controller{minifi::test::utils::make_processor<processors::PutOPCProcessor>("PutOPCProcessor")};
+  auto put_opc_processor = controller.getProcessor();
+
+  NodeData expected_node{42, server.getNamespaceIndex(), 9999, "everything", 
"Simulator/Default/Device1", {}};
+  
REQUIRE(put_opc_processor->setProperty(processors::PutOPCProcessor::OPCServerEndPoint.name,
 "opc.tcp://127.0.0.1:4840/"));

Review Comment:
   all tests in this file use the server the same way



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to