phrocker commented on a change in pull request #557: MINIFICPP-850: Add 
operating system to c2 response
URL: https://github.com/apache/nifi-minifi-cpp/pull/557#discussion_r285605346
 
 

 ##########
 File path: extensions/standard-processors/tests/unit/ManifestTests.cpp
 ##########
 @@ -150,3 +151,24 @@ TEST_CASE("Test Scheduling Defaults", "[schedDef]") {
     }
   }
 }
+
+TEST_CASE("Test operatingSystem Defaults", "[opsys]") {
+  minifi::state::response::DeviceInfoNode manifest("minifi-system");
+  auto serialized = manifest.serialize();
+  REQUIRE(serialized.size() > 0);
+  minifi::state::response::SerializedResponseNode proc_0;
+  for (const auto &node : serialized) {
+    if ("systemInfo" == node.name) {
+      for (const auto &sinfo : node.children) {
+        if ("operatingSystem" == sinfo.name) {
+          proc_0 = sinfo;
+        }
+      }
+
 
 Review comment:
   Oh yeah there's no reason to not stop. There won't be more than one but yah 
a break (doh). thanks!

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to