@@ -157,106 +157,6 @@ Running System Tests
157157
158158- System tests will be run against an actual project. You should use local credentials from gcloud when possible. See `Best practices for application authentication <https://cloud.google.com/docs/authentication/best-practices-applications#local_development_and_testing_with_the >`__. Some tests require a service account. For those tests see `Authenticating as a service account <https://cloud.google.com/docs/authentication/production >`__.
159159
160- - You'll need to create composite
161- `indexes <https://cloud.google.com/datastore/docs/tools/indexconfig >`__
162- with the ``gcloud `` command line
163- `tool <https://developers.google.com/cloud/sdk/gcloud/ >`__::
164-
165- # Install the app (App Engine Command Line Interface) component.
166- $ gcloud components install app-engine-python
167-
168- # Authenticate the gcloud tool with your account.
169- $ GOOGLE_APPLICATION_CREDENTIALS="path/to/app_credentials.json"
170- $ gcloud auth activate-service-account > --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
171-
172- # Create the indexes
173- $ gcloud datastore indexes create tests/system/index.yaml
174-
175- - You'll also need stored data in your dataset. To populate this data, run::
176-
177- $ python tests/system/utils/populate_datastore.py
178-
179- - If you make a mistake during development (i.e. a failing test that
180- prevents clean-up) you can clear all system test data from your
181- datastore instance via::
182-
183- $ python tests/system/utils/clear_datastore.py
184-
185- - You'll need to create composite
186- `indexes <https://cloud.google.com/datastore/docs/tools/indexconfig >`__
187- with the ``gcloud `` command line
188- `tool <https://developers.google.com/cloud/sdk/gcloud/ >`__::
189-
190- # Install the app (App Engine Command Line Interface) component.
191- $ gcloud components install app-engine-python
192-
193- # Authenticate the gcloud tool with your account.
194- $ GOOGLE_APPLICATION_CREDENTIALS="path/to/app_credentials.json"
195- $ gcloud auth activate-service-account > --key-file=${GOOGLE_APPLICATION_CREDENTIALS}
196-
197- # Create the indexes
198- $ gcloud datastore indexes create tests/system/index.yaml
199-
200- - You'll also need stored data in your dataset. To populate this data, run::
201-
202- $ python tests/system/utils/populate_datastore.py
203-
204- - If you make a mistake during development (i.e. a failing test that
205- prevents clean-up) you can clear all system test data from your
206- datastore instance via::
207-
208- $ python tests/system/utils/clear_datastore.py
209-
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-
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-
260160- You'll need to create composite
261161 `indexes <https://cloud.google.com/datastore/docs/tools/indexconfig >`__
262162 with the ``gcloud `` command line
0 commit comments