This is an automated email from the ASF dual-hosted git repository.

martinzink pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/nifi-minifi-cpp.git


The following commit(s) were added to refs/heads/main by this push:
     new f21a34b5c MINIFICPP-2446 Fix syntax error in ImageStore.py
f21a34b5c is described below

commit f21a34b5c8b637546967babf0973cc964e8d5f73
Author: Gabor Gyimesi <[email protected]>
AuthorDate: Wed Aug 21 15:19:02 2024 +0200

    MINIFICPP-2446 Fix syntax error in ImageStore.py
    
    Closes #1860
    
    Signed-off-by: Martin Zink <[email protected]>
---
 docker/test/integration/cluster/ImageStore.py | 27 ++++++++++++++++-----------
 1 file changed, 16 insertions(+), 11 deletions(-)

diff --git a/docker/test/integration/cluster/ImageStore.py 
b/docker/test/integration/cluster/ImageStore.py
index ce0a694d4..caca3e97d 100644
--- a/docker/test/integration/cluster/ImageStore.py
+++ b/docker/test/integration/cluster/ImageStore.py
@@ -190,17 +190,22 @@ class ImageStore:
                            parse_document_sed_cmd=parse_document_sed_cmd,
                            chunk_document_sed_cmd=chunk_document_sed_cmd))
 
-        return self.__build_image(dockerfile, [os.path.join(self.test_dir, 
"resources", "python", "RotatingForwarder.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "SpecialPropertyTypeChecker.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "ProcessContextInterfaceChecker.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "CreateFlowFile.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "FailureWithAttributes.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "RelativeImporterProcessor.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "subtractutils.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "multiplierutils.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "CreateNothing.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "FailureWithContent.py"),
-                                               os.path.join(self.test_dir, 
"resources", "python", "TransferToOriginal.py")])
+        def build_full_python_resource_path(resource):
+            return os.path.join(self.test_dir, "resources", "python", resource)
+
+        return self.__build_image(dockerfile, [
+            build_full_python_resource_path("RotatingForwarder.py"),
+            build_full_python_resource_path("SpecialPropertyTypeChecker.py"),
+            
build_full_python_resource_path("ProcessContextInterfaceChecker.py"),
+            build_full_python_resource_path("CreateFlowFile.py"),
+            build_full_python_resource_path("FailureWithAttributes.py"),
+            build_full_python_resource_path("RelativeImporterProcessor.py"),
+            build_full_python_resource_path("subtractutils.py"),
+            build_full_python_resource_path("multiplierutils.py"),
+            build_full_python_resource_path("CreateNothing.py"),
+            build_full_python_resource_path("FailureWithContent.py"),
+            build_full_python_resource_path("TransferToOriginal.py"),
+        ])
 
     def __build_http_proxy_image(self):
         dockerfile = dedent("""\

Reply via email to