Skip to content
This repository was archived by the owner on Mar 2, 2026. It is now read-only.

Commit b67b0b7

Browse files
1 parent d652b96 commit b67b0b7

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

CONTRIBUTING.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,31 @@ Running System Tests
307307

308308
$ python tests/system/utils/clear_datastore.py
309309

310+
- You'll need to create composite
311+
`indexes <https://cloud.google.com/datastore/docs/tools/indexconfig>`__
312+
with the ``gcloud`` command line
313+
`tool <https://developers.google.com/cloud/sdk/gcloud/>`__::
314+
315+
# Install the app (App Engine Command Line Interface) component.
316+
$ gcloud components install app-engine-python
317+
318+
# Authenticate the gcloud tool with your account.
319+
$ GOOGLE_APPLICATION_CREDENTIALS="path/to/app_credentials.json"
320+
$ gcloud auth activate-service-account > --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
321+
322+
# Create the indexes
323+
$ gcloud datastore indexes create tests/system/index.yaml
324+
325+
- You'll also need stored data in your dataset. To populate this data, run::
326+
327+
$ python tests/system/utils/populate_datastore.py
328+
329+
- If you make a mistake during development (i.e. a failing test that
330+
prevents clean-up) you can clear all system test data from your
331+
datastore instance via::
332+
333+
$ python tests/system/utils/clear_datastore.py
334+
310335
*************
311336
Test Coverage
312337
*************

0 commit comments

Comments
 (0)