Skip to content

Commit

Permalink
tests: delete GAE system tests
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed Jan 27, 2021
1 parent 5e1e753 commit 826ef64
Show file tree
Hide file tree
Showing 7 changed files with 0 additions and 247 deletions.
46 changes: 0 additions & 46 deletions system_tests/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,6 @@
EXPLICIT_PROJECT_ENV = "GOOGLE_CLOUD_PROJECT"
EXPECT_PROJECT_ENV = "EXPECT_PROJECT_ID"

SKIP_GAE_TEST_ENV = "SKIP_APP_ENGINE_SYSTEM_TEST"
GAE_APP_URL_TMPL = "https://{}-dot-{}.appspot.com"
GAE_TEST_APP_SERVICE = "google-auth-system-tests"

# The download location for the Cloud SDK
CLOUD_SDK_DIST_FILENAME = "google-cloud-sdk.tar.gz"
CLOUD_SDK_DOWNLOAD_URL = "https://dl.google.com/dl/cloudsdk/release/{}".format(
Expand Down Expand Up @@ -243,48 +239,6 @@ def compute_engine(session):
session.run("pytest", "system_tests_sync/test_compute_engine.py")


@nox.session(python=["2.7"])
def app_engine(session):
if SKIP_GAE_TEST_ENV in os.environ:
session.log("Skipping App Engine tests.")
return

session.install(LIBRARY_DIR)
# Unlike the default tests above, the App Engine system test require a
# 'real' gcloud sdk installation that is configured to deploy to an
# app engine project.
# Grab the project ID from the cloud sdk.
project_id = (
subprocess.check_output(
["gcloud", "config", "list", "project", "--format", "value(core.project)"]
)
.decode("utf-8")
.strip()
)

if not project_id:
session.error(
"The Cloud SDK must be installed and configured to deploy to App " "Engine."
)

application_url = GAE_APP_URL_TMPL.format(GAE_TEST_APP_SERVICE, project_id)

# Vendor in the test application's dependencies
session.chdir(os.path.join(HERE, "system_tests_sync/app_engine_test_app"))
session.install(*TEST_DEPENDENCIES_SYNC)
session.run(
"pip", "install", "--target", "lib", "-r", "requirements.txt", silent=True
)

# Deploy the application.
session.run("gcloud", "app", "deploy", "-q", "app.yaml")

# Run the tests
session.env["TEST_APP_URL"] = application_url
session.chdir(HERE)
session.run("pytest", "system_tests_sync/test_app_engine.py")


@nox.session(python=PYTHON_VERSIONS_SYNC)
def grpc(session):
session.install(LIBRARY_DIR)
Expand Down

This file was deleted.

12 changes: 0 additions & 12 deletions system_tests/system_tests_sync/app_engine_test_app/app.yaml

This file was deleted.

This file was deleted.

133 changes: 0 additions & 133 deletions system_tests/system_tests_sync/app_engine_test_app/main.py

This file was deleted.

This file was deleted.

22 changes: 0 additions & 22 deletions system_tests/system_tests_sync/test_app_engine.py

This file was deleted.

0 comments on commit 826ef64

Please sign in to comment.