This repository was archived by the owner on Mar 2, 2026. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +25
-0
lines changed
Expand file tree Collapse file tree 1 file changed +25
-0
lines changed Original file line number Diff line number Diff line change @@ -282,6 +282,31 @@ Running System Tests
282282
283283 $ python tests/system/utils/clear_datastore.py
284284
285+ - You'll need to create composite
286+ `indexes <https://cloud.google.com/datastore/docs/tools/indexconfig >`__
287+ with the ``gcloud `` command line
288+ `tool <https://developers.google.com/cloud/sdk/gcloud/ >`__::
289+
290+ # Install the app (App Engine Command Line Interface) component.
291+ $ gcloud components install app-engine-python
292+
293+ # Authenticate the gcloud tool with your account.
294+ $ GOOGLE_APPLICATION_CREDENTIALS="path/to/app_credentials.json"
295+ $ gcloud auth activate-service-account > --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
296+
297+ # Create the indexes
298+ $ gcloud datastore indexes create tests/system/index.yaml
299+
300+ - You'll also need stored data in your dataset. To populate this data, run::
301+
302+ $ python tests/system/utils/populate_datastore.py
303+
304+ - If you make a mistake during development (i.e. a failing test that
305+ prevents clean-up) you can clear all system test data from your
306+ datastore instance via::
307+
308+ $ python tests/system/utils/clear_datastore.py
309+
285310*************
286311Test Coverage
287312*************
You can’t perform that action at this time.
0 commit comments