microsoft / data-factory-testing-framework

A stand-alone test framework that allows to write unit tests for Data Factory pipelines on Microsoft Fabric and Azure Data Factory.
MIT License
68 stars 15 forks source link

fix: get pipeline by name not id in Data Factory and Synapse #98

Closed yehiaelbehery closed 3 months ago

yehiaelbehery commented 3 months ago

Use get_pipeline_by_name in the case of Data Factory or Synapse as they use the name not ID similar to Fabric.

arjendev commented 3 months ago

Hi @yehiaelbehery,

Could you explain why the current implementation is not working as expected? For Data Factory we set the pipeline_name as the pipeline_id in the deserializer, because names are unique in Data Factory and thus we can treat them as a pipeline_id.

Curious to hear your motivation!

yehiaelbehery commented 3 months ago

Hello @arjendev,

Mainly because there was a method called get_pipeline_by_name and the error message using "name". So I assumed this is the design. If it's not the design, I would still opt-in to use the separate function to document and express this difference between data factory and fabric implementation, which may impact other functionality.