Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions tests/integration/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,11 @@ def _check_environment():
# for GAE, we'll check the existence env vars set on
# vm:true or env:flex
# if neither exist, assume we're in GKE
return (_APPENGINE_FLEXIBLE_ENV_VM in os.environ or
_APPENGINE_FLEXIBLE_ENV_FLEX in os.environ), 200
environment = "GKE"
if (_APPENGINE_FLEXIBLE_ENV_VM in os.environ or
_APPENGINE_FLEXIBLE_ENV_FLEX in os.environ):
environment = "GAE"
return environment, 200


class ErrorResponse(Exception):
Expand Down