mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2026-05-21 04:37:28 +01:00
Pk missing fix (#2107)
* fix partition key missing not being able to load the document * Implement E2E tests for documents with different partitionkeys * Implement E2E tests for documents with different partitionkeys * Implement E2E tests for documents with different partitionkeys * Updated snapshot * Updated tests for MongoRU and add create/delete tests * Fixing system partition key showing up in Data Explorer
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import { DocumentTestCase } from "../testData";
|
||||
|
||||
export const documentTestCases: DocumentTestCase[] = [
|
||||
{
|
||||
name: "Unsharded Collection",
|
||||
databaseId: "e2etests-mongo-readonly",
|
||||
containerId: "unsharded",
|
||||
documents: [
|
||||
{
|
||||
documentId: "unsharded",
|
||||
partitionKeys: [],
|
||||
},
|
||||
],
|
||||
},
|
||||
{
|
||||
name: "Sharded Collection",
|
||||
databaseId: "e2etests-mongo-readonly",
|
||||
containerId: "sharded",
|
||||
documents: [
|
||||
{
|
||||
documentId: "sharded",
|
||||
partitionKeys: [
|
||||
{
|
||||
key: "/shardKey",
|
||||
value: "shardKey",
|
||||
},
|
||||
],
|
||||
},
|
||||
],
|
||||
},
|
||||
];
|
||||
Reference in New Issue
Block a user