-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Open
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.
Description
Problem description
Most of the S3CrtClient methods have been declared as virtual, which supports a well-established pattern of creating a mock class based on the parent class.
The only exceptions are the following methods, which are thus very difficult to test:
Aws::String GeneratePresignedUrl(x 2)Aws::String GeneratePresignedUrlWithSSES3(x 2)Aws::String GeneratePresignedUrlWithSSEKMS(x 2)Aws::String GeneratePresignedUrlWithSSEC(x 2)
(It is a bit unfortunate that these return Aws::String instead of Aws::Outcome<Aws::String>, since the only way to detect an error is to detect if the returned result is empty; but this would mean a breaking change).
It would also be nice to have the following public methods as virtual:
void OverrideEndpoint()Aws::Client::XmlOutcome GenerateXmlOutcomeAws::Client::StreamOutcome GenerateStreamOutcome
Proposal
Please declare the above listed methods as virtual.
Other Information
This is present on today's master (1.11.580 and above).
Acknowledgements
- I may be able to implement this feature request.
- This feature does not incur a breaking change.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
feature-requestA feature should be added or improved.A feature should be added or improved.