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

Commit 617986b

Browse files
1 parent 0384d89 commit 617986b

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

CONTRIBUTING.rst

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

233233
$ python tests/system/utils/clear_datastore.py
234234

235+
- You'll need to create composite
236+
`indexes <https://cloud.google.com/datastore/docs/tools/indexconfig>`__
237+
with the ``gcloud`` command line
238+
`tool <https://developers.google.com/cloud/sdk/gcloud/>`__::
239+
240+
# Install the app (App Engine Command Line Interface) component.
241+
$ gcloud components install app-engine-python
242+
243+
# Authenticate the gcloud tool with your account.
244+
$ GOOGLE_APPLICATION_CREDENTIALS="path/to/app_credentials.json"
245+
$ gcloud auth activate-service-account > --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
246+
247+
# Create the indexes
248+
$ gcloud datastore indexes create tests/system/index.yaml
249+
250+
- You'll also need stored data in your dataset. To populate this data, run::
251+
252+
$ python tests/system/utils/populate_datastore.py
253+
254+
- If you make a mistake during development (i.e. a failing test that
255+
prevents clean-up) you can clear all system test data from your
256+
datastore instance via::
257+
258+
$ python tests/system/utils/clear_datastore.py
259+
235260
*************
236261
Test Coverage
237262
*************

0 commit comments

Comments
 (0)