mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-04-18 12:29:48 +01:00
Handle partition key path with whitespace (#2423)
* Handle partition key path with white space * add whitespace test case for pkey * remove trailing whitespace --------- Co-authored-by: Asier Isayas <aisayas@microsoft.com>
This commit is contained in:
@@ -272,4 +272,27 @@ export const documentTestCases: DocumentTestCase[] = [
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Single Partition Key With Whitespace",
|
||||
databaseId: "e2etests-sql-readonly",
|
||||
containerId: "whitespacePartitionKey",
|
||||
documents: [
|
||||
{
|
||||
documentId: "whitespacePartitionKey",
|
||||
partitionKeys: [{ key: "/ partitionKey", value: "whitespaceValue" }],
|
||||
},
|
||||
{
|
||||
documentId: "whitespacePartitionKey_empty_string",
|
||||
partitionKeys: [{ key: "/ partitionKey", value: "" }],
|
||||
},
|
||||
{
|
||||
documentId: "whitespacePartitionKey_null",
|
||||
partitionKeys: [{ key: "/ partitionKey", value: null }],
|
||||
},
|
||||
{
|
||||
documentId: "whitespacePartitionKey_missing",
|
||||
partitionKeys: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user