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

hansva pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/main by this push:
     new 4f7f333565 integration test for unzip with wildcard. the issue was 
fixed along the way, but an integration test was missing. fixes #5943 (#7230)
4f7f333565 is described below

commit 4f7f333565a081bb2aa4adca7d733561fb7dff40
Author: Bart Maertens <[email protected]>
AuthorDate: Sun Jun 7 11:09:06 2026 +0200

    integration test for unzip with wildcard. the issue was fixed along the 
way, but an integration test was missing. fixes #5943 (#7230)
---
 .../actions/files-0017/daily_report.zip            | Bin 0 -> 337 bytes
 .../actions/files-0017/other_archive.zip           | Bin 0 -> 174 bytes
 .../actions/main-0017-unzip-source-wildcard.hwf    | 257 +++++++++++++++++++++
 3 files changed, 257 insertions(+)

diff --git a/integration-tests/actions/files-0017/daily_report.zip 
b/integration-tests/actions/files-0017/daily_report.zip
new file mode 100644
index 0000000000..ff81c481e2
Binary files /dev/null and 
b/integration-tests/actions/files-0017/daily_report.zip differ
diff --git a/integration-tests/actions/files-0017/other_archive.zip 
b/integration-tests/actions/files-0017/other_archive.zip
new file mode 100644
index 0000000000..1bf6cc170f
Binary files /dev/null and 
b/integration-tests/actions/files-0017/other_archive.zip differ
diff --git a/integration-tests/actions/main-0017-unzip-source-wildcard.hwf 
b/integration-tests/actions/main-0017-unzip-source-wildcard.hwf
new file mode 100644
index 0000000000..58072d37bd
--- /dev/null
+++ b/integration-tests/actions/main-0017-unzip-source-wildcard.hwf
@@ -0,0 +1,257 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+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.
+
+-->
+<workflow>
+  <name>main-0017-unzip-source-wildcard</name>
+  <name_sync_with_filename>Y</name_sync_with_filename>
+  <description>Unzip source folder with filename-only wildcard 
(#5943)</description>
+  <extended_description/>
+  <created_user>-</created_user>
+  <modified_user>-</modified_user>
+  <created_date>2026/06/06 09:58:00.000</created_date>
+  <modified_date>2026/06/06 09:58:00.000</modified_date>
+  <workflow_version/>
+  <parameters/>
+  <actions>
+    <action>
+      <repeat>N</repeat>
+      <schedulerType>0</schedulerType>
+      <intervalSeconds>0</intervalSeconds>
+      <intervalMinutes>60</intervalMinutes>
+      <DayOfMonth>1</DayOfMonth>
+      <weekDay>1</weekDay>
+      <minutes>0</minutes>
+      <hour>12</hour>
+      <doNotWaitOnFirstExecution>N</doNotWaitOnFirstExecution>
+      <name>Start</name>
+      <description/>
+      <type>SPECIAL</type>
+      <attributes/>
+      <xloc>80</xloc>
+      <yloc>64</yloc>
+      <parallel>N</parallel>
+      <attributes_hac/>
+    </action>
+    <action>
+      <arg_from_previous>N</arg_from_previous>
+      <fields>
+        <field>
+          <name>${java.io.tmpdir}/action-0017-unzip</name>
+        </field>
+      </fields>
+      <limit_folders>10</limit_folders>
+      <success_condition>success_if_no_errors</success_condition>
+      <name>clean target folder</name>
+      <description/>
+      <type>DELETE_FOLDERS</type>
+      <attributes/>
+      <xloc>256</xloc>
+      <yloc>64</yloc>
+      <parallel>N</parallel>
+      <attributes_hac/>
+    </action>
+    <action>
+      <foldername>${java.io.tmpdir}/action-0017-unzip</foldername>
+      <fail_of_folder_exists>N</fail_of_folder_exists>
+      <name>create target folder</name>
+      <description/>
+      <type>CREATE_FOLDER</type>
+      <attributes/>
+      <xloc>416</xloc>
+      <yloc>64</yloc>
+      <parallel>N</parallel>
+      <attributes_hac/>
+    </action>
+    <action>
+      <zipfilename>${PROJECT_HOME}/files-0017/</zipfilename>
+      <afterunzip>0</afterunzip>
+      <wildcard>.*\.txt</wildcard>
+      <wildcardexclude/>
+      <targetdirectory>${java.io.tmpdir}/action-0017-unzip</targetdirectory>
+      <movetodirectory/>
+      <addfiletoresult>N</addfiletoresult>
+      <isfromprevious>N</isfromprevious>
+      <adddate>N</adddate>
+      <addtime>N</addtime>
+      <SpecifyFormat>N</SpecifyFormat>
+      <date_time_format/>
+      <rootzip>N</rootzip>
+      <createfolder>Y</createfolder>
+      <nr_limit>1</nr_limit>
+      <wildcardSource>daily_.*\.zip</wildcardSource>
+      <iffileexists>1</iffileexists>
+      <create_move_to_directory>N</create_move_to_directory>
+      <addOriginalTimestamp>N</addOriginalTimestamp>
+      <setOriginalModificationDate>N</setOriginalModificationDate>
+      <success_condition>success_when_at_least</success_condition>
+      <name>unzip daily_.*\.zip from folder (#5943)</name>
+      <description/>
+      <type>UNZIP</type>
+      <attributes/>
+      <xloc>576</xloc>
+      <yloc>64</yloc>
+      <parallel>N</parallel>
+      <attributes_hac/>
+    </action>
+    <action>
+      <scale>bytes</scale>
+      <source_files>files</source_files>
+      <evaluation_type>count</evaluation_type>
+      <comparevalue>2</comparevalue>
+      <minvalue/>
+      <maxvalue/>
+      <successnumbercondition>equal</successnumbercondition>
+      <result_filenames_wildcard/>
+      <fields>
+        <field>
+          
<source_filefolder>${java.io.tmpdir}/action-0017-unzip/</source_filefolder>
+          <wildcard>.*\.txt</wildcard>
+          <include_subFolders>N</include_subFolders>
+        </field>
+      </fields>
+      <Result_field_file/>
+      <Result_field_wildcard/>
+      <Result_field_includesubfolders/>
+      <name>2 txt files extracted</name>
+      <description/>
+      <type>EVAL_FILES_METRICS</type>
+      <attributes/>
+      <xloc>736</xloc>
+      <yloc>64</yloc>
+      <parallel>N</parallel>
+      <attributes_hac/>
+    </action>
+    <action>
+      <scale>bytes</scale>
+      <source_files>files</source_files>
+      <evaluation_type>count</evaluation_type>
+      <comparevalue>0</comparevalue>
+      <minvalue/>
+      <maxvalue/>
+      <successnumbercondition>equal</successnumbercondition>
+      <result_filenames_wildcard/>
+      <fields>
+        <field>
+          
<source_filefolder>${java.io.tmpdir}/action-0017-unzip/</source_filefolder>
+          <wildcard>decoy\.txt</wildcard>
+          <include_subFolders>N</include_subFolders>
+        </field>
+      </fields>
+      <Result_field_file/>
+      <Result_field_wildcard/>
+      <Result_field_includesubfolders/>
+      <name>decoy zip not extracted</name>
+      <description/>
+      <type>EVAL_FILES_METRICS</type>
+      <attributes/>
+      <xloc>896</xloc>
+      <yloc>64</yloc>
+      <parallel>N</parallel>
+      <attributes_hac/>
+    </action>
+    <action>
+      <name>Success</name>
+      <description/>
+      <type>SUCCESS</type>
+      <attributes/>
+      <xloc>1056</xloc>
+      <yloc>64</yloc>
+      <parallel>N</parallel>
+      <attributes_hac/>
+    </action>
+    <action>
+      <always_log_rows>N</always_log_rows>
+      <name>abort</name>
+      <description/>
+      <type>ABORT</type>
+      <attributes/>
+      <xloc>736</xloc>
+      <yloc>160</yloc>
+      <parallel>N</parallel>
+      <attributes_hac/>
+    </action>
+  </actions>
+  <hops>
+    <hop>
+      <from>Start</from>
+      <to>clean target folder</to>
+      <evaluation>Y</evaluation>
+      <unconditional>Y</unconditional>
+      <enabled>Y</enabled>
+    </hop>
+    <hop>
+      <from>clean target folder</from>
+      <to>create target folder</to>
+      <evaluation>Y</evaluation>
+      <unconditional>N</unconditional>
+      <enabled>Y</enabled>
+    </hop>
+    <hop>
+      <from>create target folder</from>
+      <to>unzip daily_.*\.zip from folder (#5943)</to>
+      <evaluation>Y</evaluation>
+      <unconditional>N</unconditional>
+      <enabled>Y</enabled>
+    </hop>
+    <hop>
+      <from>unzip daily_.*\.zip from folder (#5943)</from>
+      <to>2 txt files extracted</to>
+      <evaluation>Y</evaluation>
+      <unconditional>N</unconditional>
+      <enabled>Y</enabled>
+    </hop>
+    <hop>
+      <from>unzip daily_.*\.zip from folder (#5943)</from>
+      <to>abort</to>
+      <evaluation>N</evaluation>
+      <unconditional>N</unconditional>
+      <enabled>Y</enabled>
+    </hop>
+    <hop>
+      <from>2 txt files extracted</from>
+      <to>decoy zip not extracted</to>
+      <evaluation>Y</evaluation>
+      <unconditional>N</unconditional>
+      <enabled>Y</enabled>
+    </hop>
+    <hop>
+      <from>2 txt files extracted</from>
+      <to>abort</to>
+      <evaluation>N</evaluation>
+      <unconditional>N</unconditional>
+      <enabled>Y</enabled>
+    </hop>
+    <hop>
+      <from>decoy zip not extracted</from>
+      <to>Success</to>
+      <evaluation>Y</evaluation>
+      <unconditional>N</unconditional>
+      <enabled>Y</enabled>
+    </hop>
+    <hop>
+      <from>decoy zip not extracted</from>
+      <to>abort</to>
+      <evaluation>N</evaluation>
+      <unconditional>N</unconditional>
+      <enabled>Y</enabled>
+    </hop>
+  </hops>
+  <notepads/>
+  <attributes/>
+</workflow>

Reply via email to