Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unit tests and refactoring of AzureDataFactoryCopy #6

Open
kfaerk opened this issue Sep 13, 2017 · 0 comments
Open

Unit tests and refactoring of AzureDataFactoryCopy #6

kfaerk opened this issue Sep 13, 2017 · 0 comments

Comments

@kfaerk
Copy link
Collaborator

kfaerk commented Sep 13, 2017

There are currently no unit tests of the data factory copy activity, only a few integration tests.
Add unit tests that verify expected behaviour of AzureDataFactoryCopy (https://github.com/Watts-Energy/Watts.Azure/blob/development/Watts.Azure.Common/DataFactory/Copy/AzureDataFactoryCopy.cs).

To do that, the DataFactoryManagementClient should be wrapped somehow, so that unit tests can inject a mock instead of working against the concrete implementation.
Important things to test:

  • When the timeout period is exceeded, MonitorStatusUntilDone finishes.
  • When the slice State becomes Failed or Completed, MonitorStatusUntilDone finishes
  • When an exception occurs in MonitorStatusUntilDone, RetryAuthentication is invoked up to a maximum of 3 times.
  • General testing of exceptions not being swallowed, but rethrown.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant