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 @@ -207,6 +207,31 @@ Running System Tests
207207
208208 $ python tests/system/utils/clear_datastore.py
209209
210+ - You'll need to create composite
211+ `indexes <https://cloud.google.com/datastore/docs/tools/indexconfig >`__
212+ with the ``gcloud `` command line
213+ `tool <https://developers.google.com/cloud/sdk/gcloud/ >`__::
214+
215+ # Install the app (App Engine Command Line Interface) component.
216+ $ gcloud components install app-engine-python
217+
218+ # Authenticate the gcloud tool with your account.
219+ $ GOOGLE_APPLICATION_CREDENTIALS="path/to/app_credentials.json"
220+ $ gcloud auth activate-service-account > --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
221+
222+ # Create the indexes
223+ $ gcloud datastore indexes create tests/system/index.yaml
224+
225+ - You'll also need stored data in your dataset. To populate this data, run::
226+
227+ $ python tests/system/utils/populate_datastore.py
228+
229+ - If you make a mistake during development (i.e. a failing test that
230+ prevents clean-up) you can clear all system test data from your
231+ datastore instance via::
232+
233+ $ python tests/system/utils/clear_datastore.py
234+
210235*************
211236Test Coverage
212237*************
You can’t perform that action at this time.
0 commit comments