Skip to content

Commit 1c7775c

Browse files
authored
Add GCS configuration info to Authoring Guide (GoogleCloudPlatform#1737)
* Add GCS configuration info to Authoring Guide Add information about the CLOUD_STORAGE_BUCKET environment variable used by tests, as well as the availability of cloud-samples-data which contains files required for a number of the test suites * Remove cloud-samples-data from Authoring Guide Remove info about cloud-samples-data from Authoring Guide because the tests that use this use it explicitly, not from $CLOUD_STORAGE_BUCKET
1 parent 7e07ff8 commit 1c7775c

1 file changed

Lines changed: 9 additions & 6 deletions

File tree

AUTHORING_GUIDE.md

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -478,11 +478,14 @@ need to set environment variables for the tests to be able to use your project
478478
and its resources. See `testing/test-env.tmpl.sh` for a list of all environment
479479
variables used by all tests. Not every test needs all of these variables.
480480

481+
#### Google Cloud Storage resources
481482

483+
Certain samples require integration with Google Cloud Storage (GCS),
484+
most commonly for APIs that read files from GCS. To run the tests for
485+
these samples, configure your GCS bucket name via the `CLOUD_STORAGE_BUCKET`
486+
environment variable.
482487

483-
484-
485-
486-
487-
488-
488+
The resources required by tests can usually be found in the `./resources`
489+
folder inside the sample directory. You can upload these resources to your
490+
own bucket to run the tests, e.g. using `gsutil`:
491+
`gsutil cp ./resources/* gs://$CLOUD_STORAGE_BUCKET/`

0 commit comments

Comments
 (0)