More Related Content Similar to AWS serverless infrastructure - Integration testing (20) More from AWS User Group Bengaluru (20) AWS serverless infrastructure - Integration testing1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
AWS Serverless Infrastructure - Integration
Testing
Santhosh Marimuthu | 6 Oct 2018
2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Application Architecture
3. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
The key for integration testing the microservice and it’s integration with
external components.
Unfortunately not every external service is easily testable.
Not every service provides a test interface for you to work with.
4. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Login function with less vigilance
Risk :
1. Less or No restriction in accessing aws resources.
Solved by:
1. Manage Lambda access to IAM policies with respect to its required
resource
2. Implemented Cognito and federated identity with JWT for RBAC to
prevent other parties to access resources ex. S3,IOT etc
5. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
API timeout/ Latency/ Non – Reproducible issues:
1. Increased Local Testing
2. Queuing Calls per function basis
3. Integrated BVT automated suite in code pipeline deployment
process
4. Global Availability
6. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Testing right brings values to the project
Below are few improvements identified
1. Map Mqtt Client per login
2. Stop Wildcard topic subscription
3. Reduce API timeout
7. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Bulk event payload
Challenge:
1. Simulator is not robust.
2. More Manual
Solved by :
Integrated ALEXA Voice to trigger events.
8. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Test Data IOT thing Creation.
Challenge :
1. Tiresome to create individual things with its Thing type and Thing
Attribute, shadow document and certificate.
Solved by:
1. Used Ruby script to solve the issue.
2. Further the test data’s are modified based on context of testing.
9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved.
Thank You