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 @@ -257,6 +257,31 @@ Running System Tests
257257
258258 $ python tests/system/utils/clear_datastore.py
259259
260+ - You'll need to create composite
261+ `indexes <https://cloud.google.com/datastore/docs/tools/indexconfig >`__
262+ with the ``gcloud `` command line
263+ `tool <https://developers.google.com/cloud/sdk/gcloud/ >`__::
264+
265+ # Install the app (App Engine Command Line Interface) component.
266+ $ gcloud components install app-engine-python
267+
268+ # Authenticate the gcloud tool with your account.
269+ $ GOOGLE_APPLICATION_CREDENTIALS="path/to/app_credentials.json"
270+ $ gcloud auth activate-service-account > --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
271+
272+ # Create the indexes
273+ $ gcloud datastore indexes create tests/system/index.yaml
274+
275+ - You'll also need stored data in your dataset. To populate this data, run::
276+
277+ $ python tests/system/utils/populate_datastore.py
278+
279+ - If you make a mistake during development (i.e. a failing test that
280+ prevents clean-up) you can clear all system test data from your
281+ datastore instance via::
282+
283+ $ python tests/system/utils/clear_datastore.py
284+
260285*************
261286Test Coverage
262287*************
You can’t perform that action at this time.
0 commit comments