Skip to content

Commit

Permalink
Update docs for building datastore indexes. (#8707)
Browse files Browse the repository at this point in the history
Restore `index.yml` file removed in PR #3146.
  • Loading branch information
Kami authored and tseaver committed Aug 1, 2019
1 parent ef6442d commit 4ed725f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Running System Tests
> --key-file=${GOOGLE_APPLICATION_CREDENTIALS}

# Create the indexes
$ gcloud datastore create-indexes system_tests/data/index.yaml
$ gcloud datastore indexes create datastore/tests/system/index.yaml

- For datastore query tests, you'll need stored data in your dataset.
To populate this data, run::
Expand Down
23 changes: 23 additions & 0 deletions datastore/tests/system/index.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
indexes:

- kind: Character
ancestor: yes
properties:
- name: appearances

- kind: Character
ancestor: yes
properties:
- name: alive

- kind: Character
ancestor: yes
properties:
- name: family
- name: appearances

- kind: Character
ancestor: yes
properties:
- name: name
- name: family

0 comments on commit 4ed725f

Please sign in to comment.