diff data_manager/cache_fetcher.xml @ 1:35c33747b9e3 draft

"planemo upload commit f40274f6b9f6a15eb4022aab21286d4c96cd8475-dirty"
author tduigou
date Tue, 05 Jul 2022 12:57:38 +0000
parents e0b92d203870
children
line wrap: on
line diff
--- a/data_manager/cache_fetcher.xml	Mon Jul 04 13:28:30 2022 +0000
+++ b/data_manager/cache_fetcher.xml	Tue Jul 05 12:57:38 2022 +0000
@@ -3,23 +3,29 @@
     <description>Download cache file</description>
     <requirements>
         <requirement type="package" version="3.7">python</requirement>
+        <requirement type="package" version="2.28.1">requests</requirement>
     </requirements>
     <command detect_errors="exit_code"><![CDATA[
     python '$__tool_directory__/cache_fetcher.py'
     --outfile '$out_file'
-    --url '$url'
+    --filename '$filename'
     ]]>
     </command>
     <inputs>
-        <param name="url" type="text" value="https://gitlab.com/breakthewall/rrCache-data/-/raw/master/" label="URL to download the cache file" optional="False" />
+        <param name="filename" type="text" value="cid_strc" label="cache file name to download" optional="False" />
     </inputs>
     <outputs>
         <data name="out_file" format="data_manager_json" />
     </outputs>
     <tests>
         <test>
-            <param name="url" value="https://gitlab.com/breakthewall/rrCache-data/-/raw/master/"/>
-            <output name="out_file" value="cid_strc.json.gz" compare="contains"/>
+            <param name="filename" value="cid_strc"/>
+            <output name="out_file">
+                <assert_contents>
+                    <has_text text="cid_strc"/>
+                    <has_text text="cid_strc.json.gz"/>
+                </assert_contents>
+            </output>
         </test>
     </tests>
     <help><![CDATA[