Skip to content

Commit

Permalink
Give test data managers distinct ids and names
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdbeek committed Nov 6, 2019
1 parent d6b69cf commit bb38795
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
8 changes: 5 additions & 3 deletions test/functional/tools/data_manager.xml
Expand Up @@ -2,13 +2,15 @@
<configfiles>
<configfile name="static_test_data">{"data_tables": {"testbeta": [{"value": "newvalue", "path": "newvalue.txt"}]}}</configfile>
</configfiles>
<command>
<command detect_errors="exit_code">
mkdir $out_file.files_path ;
echo "A new value" > $out_file.files_path/newvalue.txt;
cp $static_test_data $out_file
echo "A new value" > '$out_file.files_path/newvalue.txt';
cp '$static_test_data' '$out_file';
exit $exit_code
</command>
<inputs>
<param type="text" name="ignored_value" value="" label="Ignored" />
<param type="integer" name="exit_code" value="0" label="Exit code"/>
</inputs>
<outputs>
<data name="out_file" format="data_manager_json"/>
Expand Down
10 changes: 6 additions & 4 deletions test/functional/tools/data_manager_add.xml
@@ -1,14 +1,16 @@
<tool id="data_manager" name="Test Data Manager" tool_type="manage_data" version="0.0.1">
<tool id="data_manager_add_test" name="Test Data Manager add" tool_type="manage_data" version="0.0.1">
<configfiles>
<configfile name="static_test_data">{"data_tables": {"testbeta": { "add": [{"value": "newvalue", "path": "newvalue.txt"}]}}}</configfile>
</configfiles>
<command>
<command detect_errors="exit_code">
mkdir $out_file.files_path ;
echo "A new value" > $out_file.files_path/newvalue.txt;
cp $static_test_data $out_file
echo "A new value" > '$out_file.files_path/newvalue.txt';
cp '$static_test_data' '$out_file';
exit $exit_code
</command>
<inputs>
<param type="text" name="ignored_value" value="" label="Ignored" />
<param type="integer" name="exit_code" value="0" label="Exit code"/>
</inputs>
<outputs>
<data name="out_file" format="data_manager_json"/>
Expand Down
10 changes: 6 additions & 4 deletions test/functional/tools/data_manager_add_remove.xml
@@ -1,14 +1,16 @@
<tool id="data_manager" name="Test Data Manager" tool_type="manage_data" version="0.0.1">
<tool id="data_manager_add_remove_test" name="Test Data Manager add and remove" tool_type="manage_data" version="0.0.1">
<configfiles>
<configfile name="static_test_data">{"data_tables": {"testbeta": { "add": [{"value": "newvalue", "path": "newvalue.txt"}, {"value": "newvalue2", "path": "newvalue2.txt"}], "remove": [{"value": "newvalue", "path": "newvalue.txt"}]}}}</configfile>
</configfiles>
<command>
<command detect_errors="exit_code">
mkdir $out_file.files_path ;
echo "A new value" > $out_file.files_path/newvalue.txt;
cp $static_test_data $out_file
echo "A new value" > '$out_file.files_path/newvalue.txt';
cp '$static_test_data' '$out_file';
exit $exit_code
</command>
<inputs>
<param type="text" name="ignored_value" value="" label="Ignored" />
<param type="integer" name="exit_code" value="0" label="Exit Code" />
</inputs>
<outputs>
<data name="out_file" format="data_manager_json"/>
Expand Down

0 comments on commit bb38795

Please sign in to comment.