Skip to content

Commit

Permalink
TST: Refactor deployment test
Browse files Browse the repository at this point in the history
  • Loading branch information
cortadocodes committed May 19, 2022
1 parent a3e7118 commit b62e538
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions tests/test_deployment.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@ def test_cloud_run_deployment(self):
"""Test that the Google Cloud Run integration works, providing a service that can be asked questions and send
responses. An input dataset from Google Cloud Storage is used for this test.
"""
project_name = os.environ["TEST_PROJECT_NAME"]
service_id = "aerosense/turbsim-service"

input_manifest = Manifest(datasets={"turbsim": "gs://openfast-data/testing/turbsim"})

child = Child(
name="turbsim-service",
id=service_id,
backend={"name": "GCPPubSubBackend", "project_name": project_name},
id="aerosense/turbsim-service",
backend={"name": "GCPPubSubBackend", "project_name": os.environ["TEST_PROJECT_NAME"]},
)

answer = child.ask(input_manifest=input_manifest, timeout=360)
Expand Down

0 comments on commit b62e538

Please sign in to comment.