Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

chore: add lambda platform config validation - add tests #3193

Merged
merged 4 commits into from
Apr 13, 2022

Conversation

thiskevinwang
Copy link
Contributor

@thiskevinwang thiskevinwang commented Apr 8, 2022

Description

  • This adds aws-lambda platform config validation for timeout and architecture
  • This updates the platform test

Copy link
Member

@briancain briancain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey there! Looks pretty good to me. My main recommendation is in Go when we format strings, you can use %q for quoting. That will save you from having to escape quotes inside of a string. We also prefer quoting %q any variable values in messages to let users know in the case where that value is nil. Then it'll show up like This strings value is "" this! rather than This strings value is this! with a double space.

Otherwise looks great, love some extra config validation and tests 😄

builtin/aws/lambda/platform.go Outdated Show resolved Hide resolved
builtin/aws/lambda/platform.go Outdated Show resolved Hide resolved
builtin/aws/lambda/platform.go Outdated Show resolved Hide resolved
builtin/aws/lambda/platform_test.go Outdated Show resolved Hide resolved
thiskevinwang and others added 4 commits April 11, 2022 08:51
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants