Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

AWS serverless infrastructure - Integration testing

36 views

Published on

Lightning talk by Santhosh Marimuthu, Advanced Engineer at Altran on the topic "AWS serverless infrastructure - Integration testing" at AWS Community Day Bengaluru 2018

Published in: Technology
  • Be the first to comment

  • Be the first to like this

AWS serverless infrastructure - Integration testing

  1. 1. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. AWS Serverless Infrastructure - Integration Testing Santhosh Marimuthu | 6 Oct 2018
  2. 2. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Application Architecture
  3. 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. 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. 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. 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. 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. 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. 9. © 2018, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Thank You

×