Permalink
Show file tree
Hide file tree
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Merge pull request #849 from mattcasters/master
HOP-2918 : Create transform integration tests: Switch/Case and Set Field Value
- Loading branch information
Showing
10 changed files
with
932 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,173 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<pipeline> | ||
<info> | ||
<name>0028-set-field-value</name> | ||
<name_sync_with_filename>Y</name_sync_with_filename> | ||
<description/> | ||
<extended_description/> | ||
<pipeline_version/> | ||
<pipeline_type>Normal</pipeline_type> | ||
<parameters> | ||
</parameters> | ||
<capture_transform_performance>N</capture_transform_performance> | ||
<transform_performance_capturing_delay>1000</transform_performance_capturing_delay> | ||
<transform_performance_capturing_size_limit>100</transform_performance_capturing_size_limit> | ||
<created_user>-</created_user> | ||
<created_date>2021/06/03 19:39:18.787</created_date> | ||
<modified_user>-</modified_user> | ||
<modified_date>2021/06/03 19:39:18.787</modified_date> | ||
<key_for_session_key/> | ||
<is_key_private>N</is_key_private> | ||
</info> | ||
<notepads> | ||
</notepads> | ||
<order> | ||
<hop> | ||
<from>Sample data</from> | ||
<to>value2 -> value</to> | ||
<enabled>Y</enabled> | ||
</hop> | ||
<hop> | ||
<from>value2 -> value</from> | ||
<to>Verify</to> | ||
<enabled>Y</enabled> | ||
</hop> | ||
</order> | ||
<transform> | ||
<name>value2 -> value</name> | ||
<type>SetValueField</type> | ||
<description/> | ||
<distribute>Y</distribute> | ||
<custom_distribution/> | ||
<copies>1</copies> | ||
<partitioning> | ||
<method>none</method> | ||
<schema_name/> | ||
</partitioning> | ||
<fields> | ||
<field> | ||
<name>value</name> | ||
<replaceby>value2</replaceby> | ||
</field> | ||
</fields> | ||
<attributes/> | ||
<GUI> | ||
<xloc>272</xloc> | ||
<yloc>96</yloc> | ||
</GUI> | ||
</transform> | ||
<transform> | ||
<name>Sample data</name> | ||
<type>DataGrid</type> | ||
<description/> | ||
<distribute>Y</distribute> | ||
<custom_distribution/> | ||
<copies>1</copies> | ||
<partitioning> | ||
<method>none</method> | ||
<schema_name/> | ||
</partitioning> | ||
<fields> | ||
<field> | ||
<name>id</name> | ||
<type>Integer</type> | ||
<format/> | ||
<currency/> | ||
<decimal/> | ||
<group/> | ||
<length>-1</length> | ||
<precision>-1</precision> | ||
<set_empty_string>N</set_empty_string> | ||
</field> | ||
<field> | ||
<name>value</name> | ||
<type>String</type> | ||
<format/> | ||
<currency/> | ||
<decimal/> | ||
<group/> | ||
<length>-1</length> | ||
<precision>-1</precision> | ||
<set_empty_string>N</set_empty_string> | ||
</field> | ||
<field> | ||
<name>value2</name> | ||
<type>String</type> | ||
<format/> | ||
<currency/> | ||
<decimal/> | ||
<group/> | ||
<length>-1</length> | ||
<precision>-1</precision> | ||
<set_empty_string>N</set_empty_string> | ||
</field> | ||
</fields> | ||
<data> | ||
<line> | ||
<item>1</item> | ||
<item>A</item> | ||
<item>C</item> | ||
</line> | ||
<line> | ||
<item>2</item> | ||
<item>B</item> | ||
<item>A</item> | ||
</line> | ||
<line> | ||
<item>3</item> | ||
<item>A</item> | ||
<item>E</item> | ||
</line> | ||
<line> | ||
<item>4</item> | ||
<item>D</item> | ||
<item>F</item> | ||
</line> | ||
<line> | ||
<item>5</item> | ||
<item>E</item> | ||
<item>A</item> | ||
</line> | ||
<line> | ||
<item>6</item> | ||
<item>Z</item> | ||
<item>Q</item> | ||
</line> | ||
<line> | ||
<item>7</item> | ||
<item>C</item> | ||
<item>A</item> | ||
</line> | ||
<line> | ||
<item>8</item> | ||
<item>B</item> | ||
<item>Z</item> | ||
</line> | ||
</data> | ||
<attributes/> | ||
<GUI> | ||
<xloc>128</xloc> | ||
<yloc>96</yloc> | ||
</GUI> | ||
</transform> | ||
<transform> | ||
<name>Verify</name> | ||
<type>Dummy</type> | ||
<description/> | ||
<distribute>Y</distribute> | ||
<custom_distribution/> | ||
<copies>1</copies> | ||
<partitioning> | ||
<method>none</method> | ||
<schema_name/> | ||
</partitioning> | ||
<attributes/> | ||
<GUI> | ||
<xloc>432</xloc> | ||
<yloc>96</yloc> | ||
</GUI> | ||
</transform> | ||
<transform_error_handling> | ||
</transform_error_handling> | ||
<attributes/> | ||
</pipeline> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
id,value,value2 | ||
1,C,C | ||
2,A,A | ||
3,E,E | ||
4,F,F | ||
5,A,A | ||
6,Q,Q | ||
7,A,A | ||
8,Z,Z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
id,value,extra | ||
1,A,AAA | ||
3,A,AAA | ||
7,C,CCC | ||
5,E,Rest | ||
6,Z,Rest | ||
2,B,BBB | ||
8,B,BBB | ||
4,D,DDD |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<workflow> | ||
<name>0027-switch-case</name> | ||
<name_sync_with_filename>Y</name_sync_with_filename> | ||
<description/> | ||
<extended_description/> | ||
<workflow_version/> | ||
<created_user>-</created_user> | ||
<created_date>2021/06/03 19:42:27.941</created_date> | ||
<modified_user>-</modified_user> | ||
<modified_date>2021/06/03 19:42:27.941</modified_date> | ||
<parameters> | ||
</parameters> | ||
<actions> | ||
<action> | ||
<name>Start</name> | ||
<description/> | ||
<type>SPECIAL</type> | ||
<attributes/> | ||
<repeat>N</repeat> | ||
<schedulerType>0</schedulerType> | ||
<intervalSeconds>0</intervalSeconds> | ||
<intervalMinutes>60</intervalMinutes> | ||
<hour>12</hour> | ||
<minutes>0</minutes> | ||
<weekDay>1</weekDay> | ||
<DayOfMonth>1</DayOfMonth> | ||
<parallel>N</parallel> | ||
<xloc>112</xloc> | ||
<yloc>80</yloc> | ||
<attributes_hac/> | ||
</action> | ||
<action> | ||
<name>Run Pipeline Unit Tests</name> | ||
<description/> | ||
<type>RunPipelineTests</type> | ||
<attributes/> | ||
<test_names> | ||
<test_name> | ||
<name>0027-switch-case-basic UNIT</name> | ||
</test_name> | ||
</test_names> | ||
<parallel>N</parallel> | ||
<xloc>256</xloc> | ||
<yloc>80</yloc> | ||
<attributes_hac/> | ||
</action> | ||
</actions> | ||
<hops> | ||
<hop> | ||
<from>Start</from> | ||
<to>Run Pipeline Unit Tests</to> | ||
<enabled>Y</enabled> | ||
<evaluation>Y</evaluation> | ||
<unconditional>Y</unconditional> | ||
</hop> | ||
</hops> | ||
<notepads> | ||
</notepads> | ||
<attributes/> | ||
</workflow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<workflow> | ||
<name>0028-set-field-value</name> | ||
<name_sync_with_filename>Y</name_sync_with_filename> | ||
<description/> | ||
<extended_description/> | ||
<workflow_version/> | ||
<created_user>-</created_user> | ||
<created_date>2021/06/03 19:42:27.941</created_date> | ||
<modified_user>-</modified_user> | ||
<modified_date>2021/06/03 19:42:27.941</modified_date> | ||
<parameters> | ||
</parameters> | ||
<actions> | ||
<action> | ||
<name>Start</name> | ||
<description/> | ||
<type>SPECIAL</type> | ||
<attributes/> | ||
<repeat>N</repeat> | ||
<schedulerType>0</schedulerType> | ||
<intervalSeconds>0</intervalSeconds> | ||
<intervalMinutes>60</intervalMinutes> | ||
<hour>12</hour> | ||
<minutes>0</minutes> | ||
<weekDay>1</weekDay> | ||
<DayOfMonth>1</DayOfMonth> | ||
<parallel>N</parallel> | ||
<xloc>112</xloc> | ||
<yloc>80</yloc> | ||
<attributes_hac/> | ||
</action> | ||
<action> | ||
<name>Run Pipeline Unit Tests</name> | ||
<description/> | ||
<type>RunPipelineTests</type> | ||
<attributes/> | ||
<test_names> | ||
<test_name> | ||
<name>0028-set-field-value UNIT</name> | ||
</test_name> | ||
</test_names> | ||
<parallel>N</parallel> | ||
<xloc>256</xloc> | ||
<yloc>80</yloc> | ||
<attributes_hac/> | ||
</action> | ||
</actions> | ||
<hops> | ||
<hop> | ||
<from>Start</from> | ||
<to>Run Pipeline Unit Tests</to> | ||
<enabled>Y</enabled> | ||
<evaluation>Y</evaluation> | ||
<unconditional>Y</unconditional> | ||
</hop> | ||
</hops> | ||
<notepads> | ||
</notepads> | ||
<attributes/> | ||
</workflow> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"base_filename": "golden-set-field-value.csv", | ||
"name": "golden-set-field-value", | ||
"description": "", | ||
"dataset_fields": [ | ||
{ | ||
"field_comment": "", | ||
"field_length": -1, | ||
"field_type": 5, | ||
"field_precision": 0, | ||
"field_format": "####0;-####0", | ||
"field_name": "id" | ||
}, | ||
{ | ||
"field_comment": "", | ||
"field_length": -1, | ||
"field_type": 2, | ||
"field_precision": -1, | ||
"field_format": "", | ||
"field_name": "value" | ||
}, | ||
{ | ||
"field_comment": "", | ||
"field_length": -1, | ||
"field_type": 2, | ||
"field_precision": -1, | ||
"field_format": "", | ||
"field_name": "value2" | ||
} | ||
], | ||
"folder_name": "" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
{ | ||
"base_filename": "golden-switch-case-basic.csv", | ||
"name": "golden-switch-case-basic", | ||
"description": "", | ||
"dataset_fields": [ | ||
{ | ||
"field_comment": "", | ||
"field_length": -1, | ||
"field_type": 5, | ||
"field_precision": 0, | ||
"field_format": "####0;-####0", | ||
"field_name": "id" | ||
}, | ||
{ | ||
"field_comment": "", | ||
"field_length": -1, | ||
"field_type": 2, | ||
"field_precision": -1, | ||
"field_format": "", | ||
"field_name": "value" | ||
}, | ||
{ | ||
"field_comment": "", | ||
"field_length": -1, | ||
"field_type": 2, | ||
"field_precision": -1, | ||
"field_format": "", | ||
"field_name": "extra" | ||
} | ||
], | ||
"folder_name": "" | ||
} |
Oops, something went wrong.