-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Add Test Runs using Http Fault Injector #35030
Add Test Runs using Http Fault Injector #35030
Conversation
API change check API changes are not detected in this pull request. |
/azp run java - storage - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - storage - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - storage - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - storage - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run java - storage - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
@mikeharder, I've disabled running HTTP fault injector on macOS while a solution for it preventing requests to the HTTPS port is being found. |
// macOS has known issues running HTTP fault injector, change this once | ||
// https://github.com/Azure/azure-sdk-tools/pull/6216 is resolved | ||
@IgnoreIf({ OperatingSystem.current.family == OperatingSystem.Family.MAC_OS }) | ||
class HttpFaultInjectingTests extends APISpec { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We'll want to make this generic and support this in azure-core-test instead of making it specific to just storage tests.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed, I think for now we can move forward with it being local to Storage while Spock is still being used for writing tests. Once we want fault injecting testing in other SDKs, or just generally, we can add a test class into azure-core-test to make this general.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Description
Adds the ability for tests to run with HTTP fault injecting functionality to simulate scenarios where the network is unstable.
All SDK Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines