fix: Fixed an issue where custom AmazonEC2Client.DryRun() method was not working for non-BCL targets. Also included this method in IAmazonEC2 interface. #3602
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
fix: Fixed an issue where custom AmazonEC2Client.DryRun() method was not working for non-BCL targets. Also included this method in IAmazonEC2 interface.
This PR addressed following:
DryRun()
method as part ofIAmazonEC2
interface for easier mock-ability.BindingFlags.Instance | BindingFlags.Public | BindingFlags.NonPublic
.Based on discussion with @normj, we should perhaps deprecate/obsolete this method in V4 and remove customization in ec2.customizations.json to not exclude
DryRun
property from request models (this was done due to legacy reasons when EC2 code was hand-coded). Created separate backlog item for it in Input queue.Motivation and Context
Issue #3595
Testing
Tested locally using below code:
No unit test/integration test was added since we would need to spin up new EC2 instance. We would also deprecate this method in V4.
Catapult dry-run completed successfully.
Screenshots (if appropriate)
Types of changes
Checklist
License