Skip to content

Commit d764afb

Browse files
committed
Regenerate spec test json
1 parent ab962ce commit d764afb

File tree

1 file changed

+95
-50
lines changed

1 file changed

+95
-50
lines changed

Firestore/Example/Tests/SpecTests/json/write_spec_test.json

Lines changed: 95 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -5797,9 +5797,9 @@
57975797
}
57985798
]
57995799
},
5800-
"Writes that fail with code aborted are rejected": {
5800+
"Writes that fail with code out-of-range are rejected": {
58015801
"describeName": "Writes:",
5802-
"itName": "Writes that fail with code aborted are rejected",
5802+
"itName": "Writes that fail with code out-of-range are rejected",
58035803
"tags": [],
58045804
"config": {
58055805
"useGarbageCollection": true,
@@ -5864,7 +5864,7 @@
58645864
{
58655865
"failWrite": {
58665866
"error": {
5867-
"code": 10
5867+
"code": 11
58685868
}
58695869
},
58705870
"stateExpect": {
@@ -5903,9 +5903,9 @@
59035903
}
59045904
]
59055905
},
5906-
"Writes that fail with code out-of-range are rejected": {
5906+
"Writes that fail with code unimplemented are rejected": {
59075907
"describeName": "Writes:",
5908-
"itName": "Writes that fail with code out-of-range are rejected",
5908+
"itName": "Writes that fail with code unimplemented are rejected",
59095909
"tags": [],
59105910
"config": {
59115911
"useGarbageCollection": true,
@@ -5970,7 +5970,7 @@
59705970
{
59715971
"failWrite": {
59725972
"error": {
5973-
"code": 11
5973+
"code": 12
59745974
}
59755975
},
59765976
"stateExpect": {
@@ -6009,9 +6009,9 @@
60096009
}
60106010
]
60116011
},
6012-
"Writes that fail with code unimplemented are rejected": {
6012+
"Writes that fail with code data-loss are rejected": {
60136013
"describeName": "Writes:",
6014-
"itName": "Writes that fail with code unimplemented are rejected",
6014+
"itName": "Writes that fail with code data-loss are rejected",
60156015
"tags": [],
60166016
"config": {
60176017
"useGarbageCollection": true,
@@ -6076,7 +6076,7 @@
60766076
{
60776077
"failWrite": {
60786078
"error": {
6079-
"code": 12
6079+
"code": 15
60806080
}
60816081
},
60826082
"stateExpect": {
@@ -6115,9 +6115,9 @@
61156115
}
61166116
]
61176117
},
6118-
"Writes that fail with code data-loss are rejected": {
6118+
"Writes that fail with code resource_exhausted are not rejected": {
61196119
"describeName": "Writes:",
6120-
"itName": "Writes that fail with code data-loss are rejected",
6120+
"itName": "Writes that fail with code resource_exhausted are not rejected",
61216121
"tags": [],
61226122
"config": {
61236123
"useGarbageCollection": true,
@@ -6182,48 +6182,16 @@
61826182
{
61836183
"failWrite": {
61846184
"error": {
6185-
"code": 15
6186-
}
6187-
},
6188-
"stateExpect": {
6189-
"userCallbacks": {
6190-
"acknowledgedDocs": [],
6191-
"rejectedDocs": [
6192-
"collection/key"
6193-
]
6194-
}
6195-
},
6196-
"expect": [
6197-
{
6198-
"query": {
6199-
"path": "collection/key",
6200-
"filters": [],
6201-
"orderBys": []
6202-
},
6203-
"removed": [
6204-
{
6205-
"key": "collection/key",
6206-
"version": 0,
6207-
"value": {
6208-
"foo": "bar"
6209-
},
6210-
"options": {
6211-
"hasLocalMutations": true,
6212-
"hasCommittedMutations": false
6213-
}
6214-
}
6215-
],
6216-
"errorCode": 0,
6217-
"fromCache": true,
6218-
"hasPendingWrites": false
6219-
}
6220-
]
6185+
"code": 8
6186+
},
6187+
"keepInQueue": true
6188+
}
62216189
}
62226190
]
62236191
},
6224-
"Writes that fail with code resource_exhausted are not rejected": {
6192+
"Writes that fail with code aborted are retried": {
62256193
"describeName": "Writes:",
6226-
"itName": "Writes that fail with code resource_exhausted are not rejected",
6194+
"itName": "Writes that fail with code aborted are retried",
62276195
"tags": [],
62286196
"config": {
62296197
"useGarbageCollection": true,
@@ -6288,10 +6256,87 @@
62886256
{
62896257
"failWrite": {
62906258
"error": {
6291-
"code": 8
6259+
"code": 10
62926260
},
62936261
"keepInQueue": true
62946262
}
6263+
},
6264+
{
6265+
"writeAck": {
6266+
"version": 1000
6267+
},
6268+
"stateExpect": {
6269+
"userCallbacks": {
6270+
"acknowledgedDocs": [
6271+
"collection/key"
6272+
],
6273+
"rejectedDocs": []
6274+
}
6275+
}
6276+
},
6277+
{
6278+
"watchAck": [
6279+
2
6280+
]
6281+
},
6282+
{
6283+
"watchEntity": {
6284+
"docs": [
6285+
{
6286+
"key": "collection/key",
6287+
"version": 1000,
6288+
"value": {
6289+
"foo": "bar"
6290+
},
6291+
"options": {
6292+
"hasLocalMutations": false,
6293+
"hasCommittedMutations": false
6294+
}
6295+
}
6296+
],
6297+
"targets": [
6298+
2
6299+
]
6300+
}
6301+
},
6302+
{
6303+
"watchCurrent": [
6304+
[
6305+
2
6306+
],
6307+
"resume-token-1000"
6308+
]
6309+
},
6310+
{
6311+
"watchSnapshot": {
6312+
"version": 1000,
6313+
"targetIds": []
6314+
},
6315+
"expect": [
6316+
{
6317+
"query": {
6318+
"path": "collection/key",
6319+
"filters": [],
6320+
"orderBys": []
6321+
},
6322+
"metadata": [
6323+
{
6324+
"key": "collection/key",
6325+
"version": 1000,
6326+
"value": {
6327+
"foo": "bar"
6328+
},
6329+
"options": {
6330+
"hasLocalMutations": false,
6331+
"hasCommittedMutations": false
6332+
}
6333+
}
6334+
],
6335+
"errorCode": 0,
6336+
"fromCache": false,
6337+
"hasPendingWrites": false
6338+
}
6339+
]
62956340
}
62966341
]
62976342
},

0 commit comments

Comments
 (0)