Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Added dataset parameters to dataflow debug settings and added t…
…ests (#228) * Added dataset parameters to dataflow debug settings and added tests * Update src/Arcus.Testing.Integration.DataFactory/TemporaryDataFlowDebugSession.cs Co-authored-by: Stijn Moreels <[email protected]> * Update src/Arcus.Testing.Integration.DataFactory/TemporaryDataFlowDebugSession.cs Co-authored-by: Stijn Moreels <[email protected]> * Refactor DataFlow handling and add dataset parameter support: - Reorganized using directives in TemporaryDataFlowDebugSession.cs. - Modified RunDataFlowOptions to change DataSetParameters type, add null checks, and handle nested dictionaries. - Enhanced TemporaryDataFactoryDataFlow with new properties, methods, and dataset parameter handling. - Updated RunDataFlowTests with a new test for dataset parameters and removed obsolete tests. * Removed deprecated test * Updated integration DataFactory documentation to include new method available in options to pass dataset parameter(s) * Added 2 parameters to source dataset and 1 parameter to sink dataset * Moved Name param on top of the public param list * Update docs/preview/02-Features/06-Integration/01-data-factory.mdx Co-authored-by: Stijn Moreels <[email protected]> * Update docs/preview/02-Features/06-Integration/01-data-factory.mdx Co-authored-by: Stijn Moreels <[email protected]> * Update src/Arcus.Testing.Integration.DataFactory/TemporaryDataFlowDebugSession.cs Co-authored-by: Stijn Moreels <[email protected]> * Renamed datasetname param by sourceOrSinkName * Small improvement * Refactor DataFlow options handling and update tests - Introduced new classes to encapsulate DataSet options for source and sink in Azure DataFactory. - Updated methods to utilize these new classes, enhancing flexibility and configurability. - Refactored and removed redundant methods, consolidating functionality. - Updated tests to reflect these changes and added a helper method for generating randomized DataSet parameter keys and values. * Removed commented method * Update src/Arcus.Testing.Tests.Integration/Integration/DataFactory/RunDataFlowTests.cs Co-authored-by: Stijn Moreels <[email protected]> * Renamed `SetSourceDataSetParameterKeyValues` and `SetSinkDataSetParameterKeyValues` to `AddFolderPathParameters` * - Removed SourceDataSetParameterKeyValues and SinkDataSetParameterKeyValues properties. - Updated methods to use dataFlowOptions directly. - Simplified UploadToSourceAsync method signature and filePath construction. * Removed the unnecessary `null` argument from `UploadToSourceAsync` method calls in `RunDataFlowTests.cs` * Update src/Arcus.Testing.Tests.Integration/Integration/DataFactory/Fixture/TemporaryDataFactoryDataFlow.cs Co-authored-by: Stijn Moreels <[email protected]> * Update src/Arcus.Testing.Tests.Integration/Integration/DataFactory/RunDataFlowTests.cs Co-authored-by: Stijn Moreels <[email protected]> * - Removed SinkDataSetParameterValue from TemporaryDataFactoryDataFlow. - Consolidated AddDataSetParameters into ApplyOptions with new parameter. - Modified ApplyOptions signatures to remove ref and add new argument. - Directly pass dataset parameter key-values to ApplyOptions. * - Made `tempDataFlowOptions` optional in `CreateWithCsvSinkSourceAsync`. - Removed `sourceDataSetParameterKeyValues` and `sinkDataSetParameterKeyValues` from `ApplyOptions` method calls and definitions. - Updated `ApplyOptions` to iterate over `SourceDataSetParameterKeyValues` and `SinkDataSetParameterKeyValues` directly. - Adjusted `RunDataFlowTests` to reflect the optional `tempDataFlowOptions` parameter. --------- Co-authored-by: Stijn Moreels <[email protected]>
- Loading branch information