lordgamez commented on code in PR #2075:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2075#discussion_r2546660157
##########
behave_framework/src/minifi_test_framework/steps/checking_steps.py:
##########
@@ -84,6 +84,13 @@ def step_impl(context: MinifiTestContext, message: str,
duration: str):
context=context)
+@then("the Minifi logs contain the following message: \"{log_message}\"
{count:d} times after {duration}")
+def step_impl(context, log_message, count, duration):
+ duration_seconds = humanfriendly.parse_timespan(duration)
+ time.sleep(duration_seconds)
+ assert
context.get_default_minifi_container().get_logs().count(log_message) == count
or context.get_default_minifi_container().log_app_output()
Review Comment:
the `log_app_output()` writes the container application's logs to the test
logs and always returns false. This way we print the container logs in the test
log files if the test fails for debugging purposes.
--
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]