Skip to content

Conversation

@thechenky
Copy link
Contributor

Description

Adds support for new regions europe-west2 and asia-east2 to be consistent with Google Cloud Functions. The full list of regions supported:

  • us-central1
  • us-east1
  • europe-west1
  • europe-west2 <= NEW
  • asia-east2 <= NEW
  • asia-northeast1

This PR also fixes a bug I discovered while refactoring where if a user initialized a function with runtimeOptions first, and then set the region, region validation would not happen. It also contains some other refactors mainly removing duplicate code in functions-builder.ts.

Testing

  • Added more rigorous unit tests to function-builder.spec.ts
  • Ran integration tests: ./integration_tests/run_tests.sh chenky-test-3

@thechenky
Copy link
Contributor Author

Adding @bkendall for readability. Thanks Bryan!

@thechenky thechenky requested review from kevinajian and mbleigh May 8, 2019 01:50
Copy link
Contributor

@joehan joehan left a comment

Choose a reason for hiding this comment

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

LGTM except for capitalizing the memory type

@thechenky thechenky added this to the Consistency with Cloud milestone May 8, 2019
@thechenky thechenky merged commit 7b5ac4b into master May 9, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants