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 @@ -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*************
311336Test Coverage
312337*************
You can’t perform that action at this time.
0 commit comments