Skip to content
Unverified Commit f27aa546 authored by Weihang Lo's avatar Weihang Lo Committed by GitHub
Browse files

Test `httpRequestTests` against actual Services (#1708)



* Make Instantiator generate default values for required field on demand

* Move looping over operations into ServerProtocolTestGenerator

Signed-off-by: default avatarWeihang Lo <weihanglo@users.noreply.github.com>

* Add protocol test helper functions

Signed-off-by: default avatarWeihang Lo <weihanglo@users.noreply.github.com>

* Add method param to construct http request

* Put request validation logic inside closure

Signed-off-by: default avatarWeihang Lo <weihanglo@users.noreply.github.com>

* Make protocol test response instantiate with default values

* Add module meta for helper module

Signed-off-by: default avatarWeihang Lo <weihanglo@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: default avatardavid-perez <d@vidp.dev>

* Address most style suggestions

* add companion object for attribute #[allow(dead_code)]

Signed-off-by: default avatarWeihang Lo <weihanglo@users.noreply.github.com>

* Use writable to make code readable

* recursively call `filldefaultValue`

Signed-off-by: default avatarWeihang Lo <weihanglo@users.noreply.github.com>

* Exercise with `OperationExtension`

* Temporary protocol tests fix for awslabs/smithy#1391

Missing `X-Amz-Target` in response header

* Add `X-Amz-Target` for common models

Signed-off-by: default avatarWeihang Lo <weihanglo@users.noreply.github.com>
Co-authored-by: default avatardavid-perez <d@vidp.dev>
Co-authored-by: default avatarHarry Barber <hlbarber@amazon.co.uk>
parent e009f3f4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment