mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 09:51:11 +00: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:
31
test/mongo/testCases.ts
Normal file
31
test/mongo/testCases.ts
Normal file
@@ -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