soto-core icon indicating copy to clipboard operation
soto-core copied to clipboard

Move over SwiftNIO allocation integration tests

Open fabianfett opened this issue 4 years ago • 3 comments

We should verify be able to verify that we don't increase the number of needed allocations per request in AWSClient.

This should be made part of the CI.

An example how this can be achieved can be seen here:

https://github.com/fabianfett/pure-swift-json/tree/master/IntegrationTests/tests_04_performance https://github.com/fabianfett/swift-base64-kit/tree/master/IntegrationTests

We probably need a setup in which we run the request against something. LocalStack? Create our own MockServer?

@adam-fowler what are your thoughts?

fabianfett avatar May 21 '20 09:05 fabianfett

A mock server should do the trick.

adam-fowler avatar May 21 '20 09:05 adam-fowler

Depends on: https://github.com/swift-aws/aws-sdk-swift-core/issues/267

fabianfett avatar May 21 '20 09:05 fabianfett

I had a look into this and found starting up each integration test took so long as it had to download all the dependencies. Need to find a better way to do this.

adam-fowler avatar May 11 '21 09:05 adam-fowler