@@ -10,6 +10,7 @@ Feature: Pipeline tests using the flights dataset
1010 When I run the file transformation phase
1111 Then the country entity is stored as a parquet after the file_transformation phase
1212 And the airport entity is stored as a parquet after the file_transformation phase
13+ And the staff entity is stored as a parquet after the file_transformation phase
1314 And the flights entity is stored as a parquet after the file_transformation phase
1415 And the passengers entity is stored as a parquet after the file_transformation phase
1516 And the latest audit record for the submission is marked with processing status data_contract
@@ -36,19 +37,20 @@ Feature: Pipeline tests using the flights dataset
3637 When I run the file transformation phase
3738 Then the country entity is stored as a parquet after the file_transformation phase
3839 And the airport entity is stored as a parquet after the file_transformation phase
40+ And the staff entity is stored as a parquet after the file_transformation phase
3941 And the flights entity is stored as a parquet after the file_transformation phase
4042 And the passengers entity is stored as a parquet after the file_transformation phase
4143 And the latest audit record for the submission is marked with processing status data_contract
4244 When I run the data contract phase
4345 Then there are no file rejections from the data_contract phase
44- And there are no record rejections from the data_contract phase
46+ And there is 1 record rejection from the data_contract phase
4547 When I run the business rules phase
4648 Then there are errors with the following details and associated error_count from the business_rules phase
4749 | ErrorType | ErrorCode | error_count |
48- | record | C1 | 1 |
49- | record | AG1 | 1 |
50- | record | FG1 | 2 |
51- | record | PG1 | 4 |
50+ | record | AG1 | 3 |
51+ | record | SG1 | 15 |
52+ | record | FG1 | 10 |
53+ | record | PG1 | 25 |
5254 When I run the error report phase
5355 Then An error report is produced
5456 # TODO - fix the stats calculations as they're currently incorrect for hiearchical datasets
@@ -66,6 +68,7 @@ Feature: Pipeline tests using the flights dataset
6668 When I run the file transformation phase
6769 Then the country entity is stored as a parquet after the file_transformation phase
6870 And the airport entity is stored as a parquet after the file_transformation phase
71+ And the staff entity is stored as a parquet after the file_transformation phase
6972 And the flights entity is stored as a parquet after the file_transformation phase
7073 And the passengers entity is stored as a parquet after the file_transformation phase
7174 And the latest audit record for the submission is marked with processing status data_contract
@@ -76,10 +79,10 @@ Feature: Pipeline tests using the flights dataset
7679 Then there are errors with the following details and associated error_count from the business_rules phase
7780 | ErrorType | ErrorCode | error_count |
7881 | record | F1 | 1 |
79- | record | PG1 | 2 |
82+ | record | PG1 | 3 |
8083 When I run the error report phase
8184 Then An error report is produced
82- # TODO - fix the stats calculations as they're currently incorrect for hiearchical datasets
85+ #TODO - fix the stats calculations as they're currently incorrect for hiearchical datasets
8386 # And The statistics entry for the submission shows the following information
8487 # | parameter | value |
8588 # | record_count | 1 |
@@ -95,6 +98,7 @@ Feature: Pipeline tests using the flights dataset
9598 Then the country entity is stored as a parquet after the file_transformation phase
9699 And the airport entity is stored as a parquet after the file_transformation phase
97100 And the flights entity is stored as a parquet after the file_transformation phase
101+ And the staff entity is stored as a parquet after the file_transformation phase
98102 And the passengers entity is stored as a parquet after the file_transformation phase
99103 And the latest audit record for the submission is marked with processing status data_contract
100104 When I run the data contract phase
@@ -104,13 +108,14 @@ Feature: Pipeline tests using the flights dataset
104108 Then there are errors with the following details and associated error_count from the business_rules phase
105109 | ErrorType | ErrorCode | error_count |
106110 | record | F1 | 1 |
107- | record | PG1 | 2 |
111+ | record | PG1 | 3 |
108112 | record | P1 | 1 |
113+ | record | S1 | 7 |
109114 When I run the error report phase
110115 Then An error report is produced
111- # TODO - fix the stats calculations as they're currently incorrect for hiearchical datasets
112- # And The statistics entry for the submission shows the following information
113- # | parameter | value |
114- # | record_count | 1 |
115- # | number_file_rejections | 0 |
116- # | number_record_rejections | 1 |
116+ # TODO - fix the stats calculations as they're currently incorrect for hiearchical datasets
117+ # And The statistics entry for the submission shows the following information
118+ # | parameter | value |
119+ # | record_count | 1 |
120+ # | number_file_rejections | 0 |
121+ # | number_record_rejections | 1 |
0 commit comments