data-factory-testing-framework 0.2.5__tar.gz → 0.2.6__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/PKG-INFO +1 -1
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/pyproject.toml +1 -1
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_repositories/data_factory_repository.py +1 -1
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_test_framework.py +24 -7
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/LICENSE +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/README.md +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_deserializers/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_deserializers/_deserializer_base.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_deserializers/_deserializer_data_factory.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_deserializers/_deserializer_fabric.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_deserializers/shared/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_deserializers/shared/_activity_deserializer.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_deserializers/shared/_data_factory_element_replacer.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/exceptions.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/expression_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/expression_rule_transformer.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/expression_terminal_transformer.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/activity_reference_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/branch_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/dataset_reference_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/evaluation_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/expression_parameter_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/function_call_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/item_reference_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/linked_service_reference_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/literal_evaluation_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/literal_interpolation_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/logical_bool_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/pipeline_reference_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/system_variable_reference_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/evaluator/rules/variable_reference_expression_rule_evaluator.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/functions_collection_implementation.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/functions_conversion_implementation.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/functions_date_implementation.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/functions_logical_implementation.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/functions_math_implementation.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/functions_repository.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_functions/functions_string_implementation.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_pythonnet/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_pythonnet/csharp_datetime.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_repositories/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_repositories/_factories/base_repository_factory.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_repositories/_factories/data_factory_repository_factory.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/_repositories/_factories/fabric_repository_factory.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_activity_not_found_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_activity_output_field_not_found_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_data_factory_element_evaluation_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_function_call_invalid_arguments_count_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_parameter_not_found_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_pipeline_activities_circular_dependency_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_pipeline_not_found_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_state_iteration_item_not_set_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_unsupported_function_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_user_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_variable_being_evaluated_does_not_exist_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/exceptions/_variable_not_found_error.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/_data_factory_element.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/_data_factory_object_type.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/_pipeline.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_activity_dependency.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_append_variable_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_control_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_execute_pipeline_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_fail_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_filter_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_for_each_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_if_condition_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_set_variable_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_switch_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/models/activities/_until_activity.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/py.typed +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/state/__init__.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/state/_activity_result.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/state/_dependency_condition.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/state/_pipeline_run_state.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/state/_pipeline_run_variable.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/state/_run_parameter.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/state/_run_parameter_type.py +0 -0
- {data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/src/data_factory_testing_framework/state/_run_state.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: data-factory-testing-framework
|
|
3
|
-
Version: 0.2.
|
|
3
|
+
Version: 0.2.6
|
|
4
4
|
Summary: A stand-alone test framework that allows to write unit tests for Data Factory pipelines on Microsoft Fabric and Azure Data Factory.
|
|
5
5
|
License: MIT
|
|
6
6
|
Keywords: fabric,datafactory,unit-testing,functional-testing,azure
|
{data_factory_testing_framework-0.2.5 → data_factory_testing_framework-0.2.6}/pyproject.toml
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[tool.poetry]
|
|
2
2
|
name = "data-factory-testing-framework"
|
|
3
|
-
version = "0.2.
|
|
3
|
+
version = "0.2.6"
|
|
4
4
|
description = "A stand-alone test framework that allows to write unit tests for Data Factory pipelines on Microsoft Fabric and Azure Data Factory."
|
|
5
5
|
authors = ["Arjen Kroezen <arjenkroezen@microsoft.com>", "Yennifer Santos <ysantos@microsoft.com>", "Jaya Kumar <kumarjaya@microsoft.com>", "Leonard Herold <lherold@microsoft.com>"]
|
|
6
6
|
readme = "README.md"
|
|
@@ -54,21 +54,32 @@ class TestFramework:
|
|
|
54
54
|
The repository attribute will be populated with the data factory entities if provided.
|
|
55
55
|
should_evaluate_child_pipelines: optional boolean indicating whether child pipelines should be evaluated. Defaults to False.
|
|
56
56
|
"""
|
|
57
|
-
|
|
57
|
+
self._framework_type = framework_type
|
|
58
|
+
|
|
59
|
+
if self._framework_type == TestFrameworkType.Fabric:
|
|
58
60
|
if root_folder_path is not None:
|
|
59
61
|
self._repository = FabricRepositoryFactory().parse_from_folder(root_folder_path)
|
|
60
62
|
else:
|
|
61
63
|
self._repository = DataFactoryRepository([])
|
|
62
|
-
elif
|
|
64
|
+
elif self._framework_type == TestFrameworkType.DataFactory:
|
|
63
65
|
if root_folder_path is not None:
|
|
64
66
|
self._repository = DataFactoryRepositoryFactory().parse_from_folder(root_folder_path)
|
|
65
67
|
else:
|
|
66
68
|
self._repository = DataFactoryRepository([])
|
|
67
|
-
elif
|
|
69
|
+
elif self._framework_type == TestFrameworkType.Synapse:
|
|
68
70
|
raise NotImplementedError("Synapse test framework is not implemented yet.")
|
|
69
71
|
|
|
70
72
|
self._should_evaluate_child_pipelines = should_evaluate_child_pipelines
|
|
71
73
|
|
|
74
|
+
@property
|
|
75
|
+
def framework_type(self) -> TestFrameworkType:
|
|
76
|
+
"""Indicates which test framework is used.
|
|
77
|
+
|
|
78
|
+
Returns:
|
|
79
|
+
A TestFrameworkType object.
|
|
80
|
+
"""
|
|
81
|
+
return self._framework_type
|
|
82
|
+
|
|
72
83
|
@property
|
|
73
84
|
def should_evaluate_child_pipelines(self) -> bool:
|
|
74
85
|
"""Indicates whether child pipelines should be evaluated.
|
|
@@ -146,10 +157,16 @@ class TestFramework:
|
|
|
146
157
|
activities_iterator = []
|
|
147
158
|
if isinstance(activity, ExecutePipelineActivity) and self.should_evaluate_child_pipelines:
|
|
148
159
|
execute_pipeline_activity: ExecutePipelineActivity = activity
|
|
149
|
-
pipeline =
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
160
|
+
pipeline: Pipeline = None
|
|
161
|
+
if self.framework_type == TestFrameworkType.Fabric:
|
|
162
|
+
pipeline = self.get_pipeline_by_id(
|
|
163
|
+
# Note: in the future they will probably rename this to referenceId for Fabric
|
|
164
|
+
execute_pipeline_activity.type_properties["pipeline"]["referenceName"],
|
|
165
|
+
)
|
|
166
|
+
else:
|
|
167
|
+
pipeline = self.get_pipeline_by_name(
|
|
168
|
+
execute_pipeline_activity.type_properties["pipeline"]["referenceName"],
|
|
169
|
+
)
|
|
153
170
|
activities_iterator = execute_pipeline_activity.evaluate_pipeline(
|
|
154
171
|
pipeline,
|
|
155
172
|
activity.get_child_run_parameters(state),
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|