Skip to content
This repository was archived by the owner on Nov 29, 2023. It is now read-only.

Commit 81646ac

Browse files
Jon Wayne Parrottdpebot
authored andcommitted
Remove cloud config fixture [(#887)](GoogleCloudPlatform/python-docs-samples#887)
* Remove cloud config fixture * Fix client secrets * Fix bigtable instance
1 parent 21a7875 commit 81646ac

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

samples/snippets/dataproc_e2e_test.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@
1616
submits a job to Dataproc that runs the pyspark file, then downloads
1717
the output logs from Cloud Storage and verifies the expected output."""
1818

19+
import os
20+
1921
from gcp.testing.flaky import flaky
2022

2123
import create_cluster_and_submit_job
2224

25+
PROJECT = os.environ['GCLOUD_PROJECT']
26+
BUCKET = os.environ['CLOUD_STORAGE_BUCKET']
2327
CLUSTER_NAME = 'testcluster2'
2428
ZONE = 'us-central1-b'
2529

2630

2731
@flaky
28-
def test_e2e(cloud_config):
32+
def test_e2e():
2933
output = create_cluster_and_submit_job.main(
30-
cloud_config.project, ZONE, CLUSTER_NAME, cloud_config.storage_bucket)
34+
PROJECT, ZONE, CLUSTER_NAME, BUCKET)
3135
assert b"['Hello,', 'dog', 'elephant', 'panther', 'world!']" in output

0 commit comments

Comments
 (0)