mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-05-02 22:43:57 +01:00
* 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
32 lines
630 B
TypeScript
32 lines
630 B
TypeScript
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",
|
|
},
|
|
],
|
|
},
|
|
],
|
|
},
|
|
];
|