mirror of
https://github.com/restic/restic.git
synced 2026-09-29 23:40:29 +00:00
Update vendored library cloud.google.com/go
This commit is contained in:
-11
@@ -1,11 +0,0 @@
|
||||
# Copy textproto files in this directory from the source of truth.
|
||||
|
||||
SRC=$(GOPATH)/src/github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/testdata
|
||||
|
||||
.PHONY: refresh
|
||||
|
||||
refresh:
|
||||
-rm *.textproto
|
||||
cp $(SRC)/*.textproto .
|
||||
openssl dgst -sha1 $(SRC)/tests.binprotos > VERSION
|
||||
|
||||
+1
-1
@@ -1 +1 @@
|
||||
SHA1(/usr/local/google/home/jba/go/src/github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/testdata/tests.binprotos)= b0fbaaac8664945cb4f5667da092a6f9ededc57e
|
||||
SHA1(/usr/local/google/home/jba/go/src/github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/testdata/test-suite.binproto)= 3047565564b81726a57d7db719704ea8bf17a9ab
|
||||
|
||||
Generated
Vendored
+68
@@ -0,0 +1,68 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# When a document snapshot is used, the client appends a __name__ order-by clause
|
||||
# with the direction of the last order-by clause.
|
||||
|
||||
description: "query: cursor methods with a document snapshot, existing orderBy"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "b"
|
||||
>
|
||||
direction: "desc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
start_after: <
|
||||
doc_snapshot: <
|
||||
path: "projects/projectID/databases/(default)/documents/C/D"
|
||||
json_data: "{\"a\": 7, \"b\": 8}"
|
||||
>
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "b"
|
||||
>
|
||||
direction: DESCENDING
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "__name__"
|
||||
>
|
||||
direction: DESCENDING
|
||||
>
|
||||
start_at: <
|
||||
values: <
|
||||
integer_value: 7
|
||||
>
|
||||
values: <
|
||||
integer_value: 8
|
||||
>
|
||||
values: <
|
||||
reference_value: "projects/projectID/databases/(default)/documents/C/D"
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
Generated
Vendored
+76
@@ -0,0 +1,76 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# If there is an existing orderBy clause on __name__, no changes are made to the
|
||||
# list of orderBy clauses.
|
||||
|
||||
description: "query: cursor method, doc snapshot, existing orderBy __name__"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "desc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "__name__"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
start_at: <
|
||||
doc_snapshot: <
|
||||
path: "projects/projectID/databases/(default)/documents/C/D"
|
||||
json_data: "{\"a\": 7, \"b\": 8}"
|
||||
>
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_at: <
|
||||
doc_snapshot: <
|
||||
path: "projects/projectID/databases/(default)/documents/C/D"
|
||||
json_data: "{\"a\": 7, \"b\": 8}"
|
||||
>
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
direction: DESCENDING
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "__name__"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
start_at: <
|
||||
values: <
|
||||
integer_value: 7
|
||||
>
|
||||
values: <
|
||||
reference_value: "projects/projectID/databases/(default)/documents/C/D"
|
||||
>
|
||||
before: true
|
||||
>
|
||||
end_at: <
|
||||
values: <
|
||||
integer_value: 7
|
||||
>
|
||||
values: <
|
||||
reference_value: "projects/projectID/databases/(default)/documents/C/D"
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
Generated
Vendored
+53
@@ -0,0 +1,53 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# A Where clause using equality doesn't change the implicit orderBy clauses.
|
||||
|
||||
description: "query: cursor methods with a document snapshot and an equality where clause"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
op: "=="
|
||||
json_value: "3"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_at: <
|
||||
doc_snapshot: <
|
||||
path: "projects/projectID/databases/(default)/documents/C/D"
|
||||
json_data: "{\"a\": 7, \"b\": 8}"
|
||||
>
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
where: <
|
||||
field_filter: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
op: EQUAL
|
||||
value: <
|
||||
integer_value: 3
|
||||
>
|
||||
>
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "__name__"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
end_at: <
|
||||
values: <
|
||||
reference_value: "projects/projectID/databases/(default)/documents/C/D"
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
Generated
Vendored
+72
@@ -0,0 +1,72 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# If there is an OrderBy clause, the inequality Where clause does not result in a
|
||||
# new OrderBy clause. We still add a __name__ OrderBy clause
|
||||
|
||||
description: "query: cursor method, doc snapshot, inequality where clause, and existing orderBy clause"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "desc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
op: "<"
|
||||
json_value: "4"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
start_at: <
|
||||
doc_snapshot: <
|
||||
path: "projects/projectID/databases/(default)/documents/C/D"
|
||||
json_data: "{\"a\": 7, \"b\": 8}"
|
||||
>
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
where: <
|
||||
field_filter: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
op: LESS_THAN
|
||||
value: <
|
||||
integer_value: 4
|
||||
>
|
||||
>
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
direction: DESCENDING
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "__name__"
|
||||
>
|
||||
direction: DESCENDING
|
||||
>
|
||||
start_at: <
|
||||
values: <
|
||||
integer_value: 7
|
||||
>
|
||||
values: <
|
||||
reference_value: "projects/projectID/databases/(default)/documents/C/D"
|
||||
>
|
||||
before: true
|
||||
>
|
||||
>
|
||||
>
|
||||
Generated
Vendored
+64
@@ -0,0 +1,64 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# A Where clause with an inequality results in an OrderBy clause on that clause's
|
||||
# path, if there are no other OrderBy clauses.
|
||||
|
||||
description: "query: cursor method with a document snapshot and an inequality where clause"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
op: "<="
|
||||
json_value: "3"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_before: <
|
||||
doc_snapshot: <
|
||||
path: "projects/projectID/databases/(default)/documents/C/D"
|
||||
json_data: "{\"a\": 7, \"b\": 8}"
|
||||
>
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
where: <
|
||||
field_filter: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
op: LESS_THAN_OR_EQUAL
|
||||
value: <
|
||||
integer_value: 3
|
||||
>
|
||||
>
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "__name__"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
end_at: <
|
||||
values: <
|
||||
integer_value: 7
|
||||
>
|
||||
values: <
|
||||
reference_value: "projects/projectID/databases/(default)/documents/C/D"
|
||||
>
|
||||
before: true
|
||||
>
|
||||
>
|
||||
>
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# When a document snapshot is used, the client appends a __name__ order-by clause.
|
||||
|
||||
description: "query: cursor methods with a document snapshot"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
start_at: <
|
||||
doc_snapshot: <
|
||||
path: "projects/projectID/databases/(default)/documents/C/D"
|
||||
json_data: "{\"a\": 7, \"b\": 8}"
|
||||
>
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "__name__"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
start_at: <
|
||||
values: <
|
||||
reference_value: "projects/projectID/databases/(default)/documents/C/D"
|
||||
>
|
||||
before: true
|
||||
>
|
||||
>
|
||||
>
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# If a cursor method with a list of values is provided, there must be at least as
|
||||
# many explicit orderBy clauses as values.
|
||||
|
||||
description: "query: cursor method without orderBy"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
start_at: <
|
||||
json_values: "2"
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Cursor methods take the same number of values as there are OrderBy clauses.
|
||||
|
||||
description: "query: StartAt/EndBefore with values"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
start_at: <
|
||||
json_values: "7"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_before: <
|
||||
json_values: "9"
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
start_at: <
|
||||
values: <
|
||||
integer_value: 7
|
||||
>
|
||||
before: true
|
||||
>
|
||||
end_at: <
|
||||
values: <
|
||||
integer_value: 9
|
||||
>
|
||||
before: true
|
||||
>
|
||||
>
|
||||
>
|
||||
+48
@@ -0,0 +1,48 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Cursor methods take the same number of values as there are OrderBy clauses.
|
||||
|
||||
description: "query: StartAfter/EndAt with values"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
start_after: <
|
||||
json_values: "7"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_at: <
|
||||
json_values: "9"
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
start_at: <
|
||||
values: <
|
||||
integer_value: 7
|
||||
>
|
||||
>
|
||||
end_at: <
|
||||
values: <
|
||||
integer_value: 9
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
+71
@@ -0,0 +1,71 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Cursor methods take the same number of values as there are OrderBy clauses.
|
||||
|
||||
description: "query: Start/End with two values"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "b"
|
||||
>
|
||||
direction: "desc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
start_at: <
|
||||
json_values: "7"
|
||||
json_values: "8"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_at: <
|
||||
json_values: "9"
|
||||
json_values: "10"
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "b"
|
||||
>
|
||||
direction: DESCENDING
|
||||
>
|
||||
start_at: <
|
||||
values: <
|
||||
integer_value: 7
|
||||
>
|
||||
values: <
|
||||
integer_value: 8
|
||||
>
|
||||
before: true
|
||||
>
|
||||
end_at: <
|
||||
values: <
|
||||
integer_value: 9
|
||||
>
|
||||
values: <
|
||||
integer_value: 10
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
+50
@@ -0,0 +1,50 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Cursor values corresponding to a __name__ field take the document path relative
|
||||
# to the query's collection.
|
||||
|
||||
description: "query: cursor methods with __name__"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "__name__"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
start_after: <
|
||||
json_values: "\"D1\""
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_before: <
|
||||
json_values: "\"D2\""
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "__name__"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
start_at: <
|
||||
values: <
|
||||
reference_value: "projects/projectID/databases/(default)/documents/C/D1"
|
||||
>
|
||||
>
|
||||
end_at: <
|
||||
values: <
|
||||
reference_value: "projects/projectID/databases/(default)/documents/C/D2"
|
||||
>
|
||||
before: true
|
||||
>
|
||||
>
|
||||
>
|
||||
Generated
Vendored
+60
@@ -0,0 +1,60 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# When multiple Start* or End* calls occur, the values of the last one are used.
|
||||
|
||||
description: "query: cursor methods, last one wins"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
start_after: <
|
||||
json_values: "1"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
start_at: <
|
||||
json_values: "2"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_at: <
|
||||
json_values: "3"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_before: <
|
||||
json_values: "4"
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
start_at: <
|
||||
values: <
|
||||
integer_value: 2
|
||||
>
|
||||
before: true
|
||||
>
|
||||
end_at: <
|
||||
values: <
|
||||
integer_value: 4
|
||||
>
|
||||
before: true
|
||||
>
|
||||
>
|
||||
>
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Sentinel values are not permitted in queries.
|
||||
|
||||
description: "query: Delete in cursor method"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_before: <
|
||||
json_values: "\"Delete\""
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Sentinel values are not permitted in queries.
|
||||
|
||||
description: "query: Delete in Where"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
op: "=="
|
||||
json_value: "\"Delete\""
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# The != operator is not supported.
|
||||
|
||||
description: "query: invalid operator in Where clause"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
op: "!="
|
||||
json_value: "4"
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# The path has an empty component.
|
||||
|
||||
description: "query: invalid path in OrderBy clause"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "*"
|
||||
field: ""
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
Generated
Vendored
+18
@@ -0,0 +1,18 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# The path has an empty component.
|
||||
|
||||
description: "query: invalid path in Where clause"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
select: <
|
||||
fields: <
|
||||
field: "*"
|
||||
field: ""
|
||||
>
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# The path has an empty component.
|
||||
|
||||
description: "query: invalid path in Where clause"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "*"
|
||||
field: ""
|
||||
>
|
||||
op: "=="
|
||||
json_value: "4"
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
Generated
Vendored
+30
@@ -0,0 +1,30 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# With multiple Offset or Limit clauses, the last one wins.
|
||||
|
||||
description: "query: multiple Offset and Limit clauses"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
offset: 2
|
||||
>
|
||||
clauses: <
|
||||
limit: 3
|
||||
>
|
||||
clauses: <
|
||||
limit: 4
|
||||
>
|
||||
clauses: <
|
||||
offset: 5
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
offset: 5
|
||||
limit: <
|
||||
value: 4
|
||||
>
|
||||
>
|
||||
>
|
||||
+24
@@ -0,0 +1,24 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Offset and Limit clauses.
|
||||
|
||||
description: "query: Offset and Limit clauses"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
offset: 2
|
||||
>
|
||||
clauses: <
|
||||
limit: 3
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
offset: 2
|
||||
limit: <
|
||||
value: 3
|
||||
>
|
||||
>
|
||||
>
|
||||
+42
@@ -0,0 +1,42 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Multiple OrderBy clauses combine.
|
||||
|
||||
description: "query: basic OrderBy clauses"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "b"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "desc"
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "b"
|
||||
>
|
||||
direction: ASCENDING
|
||||
>
|
||||
order_by: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
direction: DESCENDING
|
||||
>
|
||||
>
|
||||
>
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# An empty Select clause selects just the document ID.
|
||||
|
||||
description: "query: empty Select clause"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
select: <
|
||||
>
|
||||
>
|
||||
query: <
|
||||
select: <
|
||||
fields: <
|
||||
field_path: "__name__"
|
||||
>
|
||||
>
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
>
|
||||
>
|
||||
+36
@@ -0,0 +1,36 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# The last Select clause is the only one used.
|
||||
|
||||
description: "query: two Select clauses"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
select: <
|
||||
fields: <
|
||||
field: "a"
|
||||
>
|
||||
fields: <
|
||||
field: "b"
|
||||
>
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
select: <
|
||||
fields: <
|
||||
field: "c"
|
||||
>
|
||||
>
|
||||
>
|
||||
query: <
|
||||
select: <
|
||||
fields: <
|
||||
field_path: "c"
|
||||
>
|
||||
>
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
>
|
||||
>
|
||||
+32
@@ -0,0 +1,32 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# An ordinary Select clause.
|
||||
|
||||
description: "query: Select clause with some fields"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
select: <
|
||||
fields: <
|
||||
field: "a"
|
||||
>
|
||||
fields: <
|
||||
field: "b"
|
||||
>
|
||||
>
|
||||
>
|
||||
query: <
|
||||
select: <
|
||||
fields: <
|
||||
field_path: "a"
|
||||
>
|
||||
fields: <
|
||||
field_path: "b"
|
||||
>
|
||||
>
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
>
|
||||
>
|
||||
+23
@@ -0,0 +1,23 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Sentinel values are not permitted in queries.
|
||||
|
||||
description: "query: ServerTimestamp in cursor method"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
order_by: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
direction: "asc"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
end_before: <
|
||||
json_values: "\"ServerTimestamp\""
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Sentinel values are not permitted in queries.
|
||||
|
||||
description: "query: ServerTimestamp in Where"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
op: "=="
|
||||
json_value: "\"ServerTimestamp\""
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
+59
@@ -0,0 +1,59 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# Multiple Where clauses are combined into a composite filter.
|
||||
|
||||
description: "query: two Where clauses"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
op: ">="
|
||||
json_value: "5"
|
||||
>
|
||||
>
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "b"
|
||||
>
|
||||
op: "<"
|
||||
json_value: "\"foo\""
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
where: <
|
||||
composite_filter: <
|
||||
op: AND
|
||||
filters: <
|
||||
field_filter: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
op: GREATER_THAN_OR_EQUAL
|
||||
value: <
|
||||
integer_value: 5
|
||||
>
|
||||
>
|
||||
>
|
||||
filters: <
|
||||
field_filter: <
|
||||
field: <
|
||||
field_path: "b"
|
||||
>
|
||||
op: LESS_THAN
|
||||
value: <
|
||||
string_value: "foo"
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
+34
@@ -0,0 +1,34 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# A simple Where clause.
|
||||
|
||||
description: "query: Where clause"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
where: <
|
||||
path: <
|
||||
field: "a"
|
||||
>
|
||||
op: ">"
|
||||
json_value: "5"
|
||||
>
|
||||
>
|
||||
query: <
|
||||
from: <
|
||||
collection_id: "C"
|
||||
>
|
||||
where: <
|
||||
field_filter: <
|
||||
field: <
|
||||
field_path: "a"
|
||||
>
|
||||
op: GREATER_THAN
|
||||
value: <
|
||||
integer_value: 5
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
>
|
||||
+19
@@ -0,0 +1,19 @@
|
||||
# DO NOT MODIFY. This file was generated by
|
||||
# github.com/GoogleCloudPlatform/google-cloud-common/testing/firestore/cmd/generate-firestore-tests/generate-firestore-tests.go.
|
||||
|
||||
# If a document snapshot is passed to a Start*/End* method, it must be in the same
|
||||
# collection as the query.
|
||||
|
||||
description: "query: doc snapshot with wrong collection in cursor method"
|
||||
query: <
|
||||
coll_path: "projects/projectID/databases/(default)/documents/C"
|
||||
clauses: <
|
||||
end_before: <
|
||||
doc_snapshot: <
|
||||
path: "projects/projectID/databases/(default)/documents/C2/D"
|
||||
json_data: "{\"a\": 7, \"b\": 8}"
|
||||
>
|
||||
>
|
||||
>
|
||||
is_error: true
|
||||
>
|
||||
Reference in New Issue
Block a user