lordgamez commented on code in PR #2061:
URL: https://github.com/apache/nifi-minifi-cpp/pull/2061#discussion_r2664178190


##########
extensions/standard-processors/tests/features/steps/tcp_client_container.py:
##########
@@ -0,0 +1,40 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+from minifi_test_framework.containers.container import Container
+from minifi_test_framework.core.helpers import wait_for_condition
+from minifi_test_framework.core.minifi_test_context import MinifiTestContext
+
+
+class TcpClientContainer(Container):
+    def __init__(self, test_context: MinifiTestContext):
+        cmd = (
+            "/bin/sh -c 'apk add netcat-openbsd && "
+            "echo TCP client container started; "
+            "while true; do echo test_tcp_message | "
+            f"nc minifi-primary-{test_context.scenario_id} 10254; "
+            "sleep 1; done'"
+        )

Review Comment:
   Unfortunately it fails without it, it is needed when passing a chained 
command otherwise the apk would try to interpret each parameter after `apk add` 
as a separate package to be installed.



-- 
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