data-factory-testing-framework 1.1.3__tar.gz → 1.1.4__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-1.1.3/src/data_factory_testing_framework.egg-info → data_factory_testing_framework-1.1.4}/PKG-INFO +1 -1
- data_factory_testing_framework-1.1.4/VERSION +1 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_expression_runtime/expression_runtime.py +21 -5
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/state/_pipeline_run_state.py +4 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4/src/data_factory_testing_framework.egg-info}/PKG-INFO +1 -1
- data_factory_testing_framework-1.1.3/VERSION +0 -1
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/DataFactoryTestingFramework.sln +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/LICENSE +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/MANIFEST.in +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/README.md +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/pyproject.toml +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/setup.cfg +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/setup.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_deserializers/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_deserializers/_deserializer_base.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_deserializers/_deserializer_data_factory.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_deserializers/_deserializer_fabric.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_deserializers/shared/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_deserializers/shared/_activity_deserializer.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_deserializers/shared/_data_factory_element_replacer.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_enum_meta.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/data_factory_to_expression_transformer.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/exceptions.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_expression_runtime/data_factory_expression/expression_transformer.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_expression_runtime/functions_repository.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_pythonnet/Evaluator.csproj +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_pythonnet/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_pythonnet/data_factory_testing_framework_expressions_evaluator.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_repositories/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_repositories/_factories/base_repository_factory.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_repositories/_factories/data_factory_repository_factory.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_repositories/_factories/fabric_repository_factory.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_repositories/data_factory_repository.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/_test_framework.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_activity_not_found_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_activity_output_field_not_found_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_control_activity_expression_evaluated_not_to_expected_type.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_data_factory_element_evaluation_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_function_call_invalid_arguments_count_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_parameter_not_found_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_pipeline_activities_circular_dependency_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_pipeline_not_found_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_state_iteration_item_not_set_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_unsupported_function_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_user_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_variable_being_evaluated_does_not_exist_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/exceptions/_variable_not_found_error.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/_data_factory_element.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/_data_factory_object_type.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/_pipeline.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_activity_dependency.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_append_variable_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_control_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_execute_pipeline_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_fail_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_filter_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_for_each_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_if_condition_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_set_variable_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_switch_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/models/activities/_until_activity.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/py.typed +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/state/__init__.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/state/_activity_result.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/state/_dependency_condition.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/state/_pipeline_run_variable.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/state/_run_parameter.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/state/_run_parameter_type.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework/state/_run_state.py +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework.egg-info/SOURCES.txt +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework.egg-info/dependency_links.txt +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework.egg-info/requires.txt +0 -0
- {data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/src/data_factory_testing_framework.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: data-factory-testing-framework
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
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
|
Author-email: Data Factory Testing Framework <dftf@microsoft.com>
|
|
6
6
|
License: MIT License
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
1.1.4
|
|
@@ -54,16 +54,32 @@ class ExpressionRuntime:
|
|
|
54
54
|
expression = missing_parameter_match.group(2)
|
|
55
55
|
property_name = missing_parameter_match.group(4)
|
|
56
56
|
|
|
57
|
-
if
|
|
57
|
+
if (
|
|
58
|
+
f"pipeline().parameters.{property_name}" in expression
|
|
59
|
+
and not state._contains_parameter_with_type_and_name(RunParameterType.Pipeline, property_name)
|
|
60
|
+
):
|
|
58
61
|
raise ParameterNotFoundError(RunParameterType.Pipeline, property_name) from e
|
|
59
|
-
elif
|
|
62
|
+
elif (
|
|
63
|
+
f"pipeline().globalParameters.{property_name}" in expression
|
|
64
|
+
and not state._contains_parameter_with_type_and_name(RunParameterType.Global, property_name)
|
|
65
|
+
):
|
|
60
66
|
raise ParameterNotFoundError(RunParameterType.Global, property_name) from e
|
|
61
|
-
elif
|
|
67
|
+
elif (
|
|
68
|
+
f"pipeline().dataset.{property_name}" in expression
|
|
69
|
+
and not state._contains_parameter_with_type_and_name(RunParameterType.Dataset, property_name)
|
|
70
|
+
):
|
|
62
71
|
raise ParameterNotFoundError(RunParameterType.Dataset, property_name) from e
|
|
63
|
-
elif
|
|
72
|
+
elif (
|
|
73
|
+
f"pipeline().linkedService.{property_name}" in expression
|
|
74
|
+
and not state._contains_parameter_with_type_and_name(RunParameterType.LinkedService, property_name)
|
|
75
|
+
):
|
|
64
76
|
raise ParameterNotFoundError(RunParameterType.LinkedService, property_name) from e
|
|
65
|
-
|
|
77
|
+
elif not state._contains_parameter_with_type_and_name(RunParameterType.System, property_name):
|
|
66
78
|
raise ParameterNotFoundError(RunParameterType.System, property_name) from e
|
|
79
|
+
else:
|
|
80
|
+
raise Exception(
|
|
81
|
+
f"Unknown error for expression: '{expression}' with property: '{property_name}'. Internal error: '{e}'"
|
|
82
|
+
) from e
|
|
67
83
|
|
|
68
84
|
if missing_variable_match:
|
|
69
85
|
variable_name = missing_variable_match.group(2)
|
|
@@ -168,6 +168,10 @@ class PipelineRunState(RunState):
|
|
|
168
168
|
|
|
169
169
|
return parameters[0].value
|
|
170
170
|
|
|
171
|
+
def _contains_parameter_with_type_and_name(self, parameter_type: RunParameterType, name: str) -> bool:
|
|
172
|
+
"""Checks if the parameter exists in the state."""
|
|
173
|
+
return any(p.name == name and p.type == parameter_type for p in self.parameters)
|
|
174
|
+
|
|
171
175
|
def is_activity_evaluated_in_scope(self, activity_name: str) -> bool:
|
|
172
176
|
"""Checks if an activity was evaluated in the current scope.
|
|
173
177
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: data-factory-testing-framework
|
|
3
|
-
Version: 1.1.
|
|
3
|
+
Version: 1.1.4
|
|
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
|
Author-email: Data Factory Testing Framework <dftf@microsoft.com>
|
|
6
6
|
License: MIT License
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
1.1.3
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{data_factory_testing_framework-1.1.3 → data_factory_testing_framework-1.1.4}/pyproject.toml
RENAMED
|
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
|