You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@nifi.apache.org by GitBox <gi...@apache.org> on 2019/05/20 08:53:43 UTC
[GitHub] [nifi-minifi-cpp] arpadboda commented on a change in pull request
#557: MINIFICPP-850: Add operating system to c2 response
arpadboda 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_r285486525
##########
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:
break?
----------------------------------------------------------------
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:
users@infra.apache.org
With regards,
Apache Git Services