-
Notifications
You must be signed in to change notification settings - Fork 150
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into markduckworth/fix-firestore-settings-tojson
- Loading branch information
Showing
8 changed files
with
245 additions
and
56 deletions.
There are no files selected for viewing
6 changes: 3 additions & 3 deletions
6
...formance-tests/update-exists-precond.json → ...ce-tests/update-exists-false-precond.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
38 changes: 38 additions & 0 deletions
38
dev/conformance/conformance-tests/update-exists-true-precond.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"tests": [ | ||
{ | ||
"description": "update: Exists=true precondition is valid", | ||
"comment": "The Update method supports an explicit exists=true precondition.", | ||
"update": { | ||
"docRefPath": "projects/projectID/databases/(default)/documents/C/d", | ||
"precondition": { | ||
"exists": true | ||
}, | ||
"jsonData": "{\"a\": 1}", | ||
"request": { | ||
"database": "projects/projectID/databases/(default)", | ||
"writes": [ | ||
{ | ||
"update": { | ||
"name": "projects/projectID/databases/(default)/documents/C/d", | ||
"fields": { | ||
"a": { | ||
"integerValue": "1" | ||
} | ||
} | ||
}, | ||
"updateMask": { | ||
"fieldPaths": [ | ||
"a" | ||
] | ||
}, | ||
"currentDocument": { | ||
"exists": true | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
6 changes: 3 additions & 3 deletions
6
...ce-tests/update-paths-exists-precond.json → ...ts/update-paths-exists-false-precond.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
47 changes: 47 additions & 0 deletions
47
dev/conformance/conformance-tests/update-paths-exists-true-precond.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"tests": [ | ||
{ | ||
"description": "update-paths: Exists=true precondition is valid", | ||
"comment": "The Update method supports an explicit exists=true precondition.", | ||
"updatePaths": { | ||
"docRefPath": "projects/projectID/databases/(default)/documents/C/d", | ||
"precondition": { | ||
"exists": true | ||
}, | ||
"fieldPaths": [ | ||
{ | ||
"field": [ | ||
"a" | ||
] | ||
} | ||
], | ||
"jsonValues": [ | ||
"1" | ||
], | ||
"request": { | ||
"database": "projects/projectID/databases/(default)", | ||
"writes": [ | ||
{ | ||
"update": { | ||
"name": "projects/projectID/databases/(default)/documents/C/d", | ||
"fields": { | ||
"a": { | ||
"integerValue": "1" | ||
} | ||
} | ||
}, | ||
"updateMask": { | ||
"fieldPaths": [ | ||
"a" | ||
] | ||
}, | ||
"currentDocument": { | ||
"exists": true | ||
} | ||
} | ||
] | ||
} | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.