azure-cosmos-db-emulator-docker
azure-cosmos-db-emulator-docker copied to clipboard
Patch precondition returns OK when it should be 'precondition failed'
Describe the bug I have a test which runs a patch operation with two preconditions and a filter predicate, In the test I expect that I will receive a precondition failed, Running against an actual Cosmos database in Azure I get the expected result when I run the emulator preview I receive an OK result.
To Reproduce
- Create a document
- Patch the document by adding a new string, like "/Value = hello" and a filter predicate of "WHERE NOT IS_STRING(c.Value)
- Repeat step 2
Expected behavior Should receive response 'PreconditionFailed'
**Docker Images Used: **
- Linux: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:vnext-preview