Skip to content

Add GAE billing tests + fix region tags#2774

Merged
ace-n merged 18 commits intomasterfrom
gae-billing-tests-2772
Feb 5, 2020
Merged

Add GAE billing tests + fix region tags#2774
ace-n merged 18 commits intomasterfrom
gae-billing-tests-2772

Conversation

@ace-n
Copy link
Copy Markdown

@ace-n ace-n commented Feb 5, 2020

Fixes #2772

@ace-n ace-n requested a review from grant February 5, 2020 01:14
@ace-n ace-n requested a review from a team as a code owner February 5, 2020 01:14
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Feb 5, 2020
@ace-n
Copy link
Copy Markdown
Author

ace-n commented Feb 5, 2020

Chatted offline with @kurtisvg - since GCF only supports Python 3.7, we can disable functions/* tests for the other versions (2.7, 3.5, 3.6)

@ace-n ace-n merged commit 96a08de into master Feb 5, 2020
@ace-n ace-n deleted the gae-billing-tests-2772 branch February 5, 2020 23:17
# Skip unsupported Python versions for Cloud Functions
# (Some GCF samples' dependencies don't support them)
if [[ "$file" == "functions/"* ]]; then
PYTHON_VERSION="$(python --version 2>&1)"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

FYI, this code is completely wrong.

This code checks the default Python version, rather than Python version in the nox session.

This resulted in disabling all the tests under functions directory. #3767 removed this code block then our tests started to fail.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add tests to GAE billing GCF sample

6 participants