Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/modules/arangodb/src/arangodb-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const IMAGE = getImage(__dirname);

describe("ArangoDB", { timeout: 180_000 }, () => {
// connect {
it("should connect and return a query result", async () => {
it.concurrent("should connect and return a query result", async () => {
const container = await new ArangoDBContainer(IMAGE).start();
const db = new Database({ url: container.getHttpUrl() });

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,21 @@
const IMAGE = getImage(__dirname);

describe("AzureCosmosDbEmulatorContainer", { timeout: 180_000 }, async () => {
it("should set https protocol", async () => {
it.concurrent("should set https protocol", async () => {
const container = await new AzureCosmosDbEmulatorContainer(IMAGE).withProtocol("https").start();
const connectionUri = container.getConnectionUri();
expect(connectionUri).toContain("AccountEndpoint=https://");
await container.stop();
});
it("should set http protocol if no protocol is specified", async () => {
it.concurrent("should set http protocol if no protocol is specified", async () => {
const container = await new AzureCosmosDbEmulatorContainer(IMAGE).start();
const connectionUri = container.getConnectionUri();
expect(connectionUri).toContain("AccountEndpoint=http://");
await container.stop();
});

// httpCreateDB {
it("should be able to create a database using http", async () => {
it.concurrent("should be able to create a database using http", async () => {
const container = await new AzureCosmosDbEmulatorContainer(IMAGE).withProtocol("http").start();
const cosmosClient = new CosmosClient({
endpoint: container.getEndpoint(),
Expand All @@ -28,7 +28,7 @@
});

const dbName = "testdb";
const createResponse = await cosmosClient.databases.createIfNotExists({

Check failure on line 31 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 20.x, docker) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using http

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:31:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:12:15 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '825c2f26-e687-4d6b-b3fd-82fb2b3e700b', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '625', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '825c2f26-e687-4d6b-b3fd-82fb2b3e700b', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962335181, requestDurationInMs: 862, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:35915', 'http://127.0.0.1:35915/' ], metadataDiagnostics: { metadataLookups: [ { activityId: 'ef965085-e970-4472-bae0-890a874bc51b', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751962335188, operationType: 'read', resourceType: '', durationInMs: 194, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '825c2f26-e687-4d6b-b3fd-82fb2b3e700b', correlateActivityId: undefined, startTimeUTCInMs: 1751962335384, durationInMs: 658, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 31 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 24.x, podman) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using http

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:31:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:13:33 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '9c2df696-25b2-465a-8fdf-1fc036c29e96', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '471', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '9c2df696-25b2-465a-8fdf-1fc036c29e96', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962413090, requestDurationInMs: 713, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:43535', 'http://127.0.0.1:43535/' ], metadataDiagnostics: { metadataLookups: [ { activityId: '541a6174-5152-4d24-9aa4-6d75442c849d', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751962413096, operationType: 'read', resourceType: '', durationInMs: 216, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '9c2df696-25b2-465a-8fdf-1fc036c29e96', correlateActivityId: undefined, startTimeUTCInMs: 1751962413313, durationInMs: 489, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 31 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 22.x, docker) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using http

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:31:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:13:51 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '8f457387-f0a8-4f17-855f-cf54562048a1', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '551', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '8f457387-f0a8-4f17-855f-cf54562048a1', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962431397, requestDurationInMs: 910, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:45057', 'http://127.0.0.1:45057/' ], metadataDiagnostics: { metadataLookups: [ { activityId: 'd646b5ec-1d05-4911-b5e0-96b7a0ab1279', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751962431397, operationType: 'read', resourceType: '', durationInMs: 326, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '8f457387-f0a8-4f17-855f-cf54562048a1', correlateActivityId: undefined, startTimeUTCInMs: 1751962431724, durationInMs: 583, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 31 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 20.x, podman) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using http

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:31:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:21:30 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '5db2f80a-19fd-438b-946c-7bd32eccb202', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '428', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '5db2f80a-19fd-438b-946c-7bd32eccb202', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962890582, requestDurationInMs: 757, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:41751', 'http://127.0.0.1:41751/' ], metadataDiagnostics: { metadataLookups: [ { activityId: 'da177810-fabb-42e5-bed5-aa973c51fe26', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751962890582, operationType: 'read', resourceType: '', durationInMs: 308, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '5db2f80a-19fd-438b-946c-7bd32eccb202', correlateActivityId: undefined, startTimeUTCInMs: 1751962890890, durationInMs: 449, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 31 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 24.x, docker) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using http

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:31:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:24:51 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '041bba10-fb5f-4802-b17f-c59d8e62d5d2', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '585', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '041bba10-fb5f-4802-b17f-c59d8e62d5d2', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751963091387, requestDurationInMs: 916, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:42711', 'http://127.0.0.1:42711/' ], metadataDiagnostics: { metadataLookups: [ { activityId: '01893aa5-9d53-4cd4-81db-ca0054c262b8', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751963091394, operationType: 'read', resourceType: '', durationInMs: 304, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '041bba10-fb5f-4802-b17f-c59d8e62d5d2', correlateActivityId: undefined, startTimeUTCInMs: 1751963091699, durationInMs: 603, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }
id: dbName,
});
expect(createResponse.statusCode).toBe(201);
Expand All @@ -41,7 +41,7 @@
// }

// httpsCreateDB {
it("should be able to create a database using https", async () => {
it.concurrent("should be able to create a database using https", async () => {
const container = await new AzureCosmosDbEmulatorContainer(IMAGE).withProtocol("https").start();
const cosmosClient = new CosmosClient({
endpoint: container.getEndpoint(),
Expand All @@ -52,7 +52,7 @@
});

const dbName = "testdb";
const createResponse = await cosmosClient.databases.createIfNotExists({

Check failure on line 55 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 20.x, docker) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using https

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:55:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { connection: 'close', date: 'Tue, 08 Jul 2025 08:12:16 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': 'd36ce090-d441-4ca8-b146-9417d9a0c412', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '188', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: 'd36ce090-d441-4ca8-b146-9417d9a0c412', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962335623, requestDurationInMs: 1054, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1174, locationEndpointsContacted: [ 'https://localhost:43181', 'https://127.0.0.1:43181/' ], metadataDiagnostics: { metadataLookups: [ { activityId: 'e6c1ed58-677e-40a3-b3c5-0bfb935fb379', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1087, startTimeUTCInMs: 1751962335623, operationType: 'read', resourceType: '', durationInMs: 816, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: 'd36ce090-d441-4ca8-b146-9417d9a0c412', correlateActivityId: undefined, startTimeUTCInMs: 1751962336439, durationInMs: 238, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 55 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 24.x, podman) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using https

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:55:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { connection: 'close', date: 'Tue, 08 Jul 2025 08:13:33 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '2396f3e1-b857-45fc-b79e-5a514086cd3c', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '120', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '2396f3e1-b857-45fc-b79e-5a514086cd3c', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962413591, requestDurationInMs: 685, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1174, locationEndpointsContacted: [ 'https://localhost:33221', 'https://127.0.0.1:33221/' ], metadataDiagnostics: { metadataLookups: [ { activityId: 'ac1b9e0e-4e98-45ef-adb7-5834d8900590', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1087, startTimeUTCInMs: 1751962413592, operationType: 'read', resourceType: '', durationInMs: 522, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '2396f3e1-b857-45fc-b79e-5a514086cd3c', correlateActivityId: undefined, startTimeUTCInMs: 1751962414114, durationInMs: 162, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 55 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 22.x, docker) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using https

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:55:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { connection: 'close', date: 'Tue, 08 Jul 2025 08:13:52 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '9ee6f3cb-a83a-4009-a358-48b86a5c7873', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '175', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '9ee6f3cb-a83a-4009-a358-48b86a5c7873', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962432089, requestDurationInMs: 990, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1174, locationEndpointsContacted: [ 'https://localhost:36697', 'https://127.0.0.1:36697/' ], metadataDiagnostics: { metadataLookups: [ { activityId: '06298b16-864c-4f2a-b8ba-511161ad90e6', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1087, startTimeUTCInMs: 1751962432090, operationType: 'read', resourceType: '', durationInMs: 778, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '9ee6f3cb-a83a-4009-a358-48b86a5c7873', correlateActivityId: undefined, startTimeUTCInMs: 1751962432868, durationInMs: 211, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 55 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 22.x, podman) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using https

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:55:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { connection: 'close', date: 'Tue, 08 Jul 2025 08:13:54 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '7cf4383e-2cbb-4876-be94-1f895cff1876', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '213', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '7cf4383e-2cbb-4876-be94-1f895cff1876', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962434408, requestDurationInMs: 994, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1174, locationEndpointsContacted: [ 'https://localhost:34565', 'https://127.0.0.1:34565/' ], metadataDiagnostics: { metadataLookups: [ { activityId: '611460e4-5f35-46cf-8b98-df632feec887', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1087, startTimeUTCInMs: 1751962434414, operationType: 'read', resourceType: '', durationInMs: 722, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '7cf4383e-2cbb-4876-be94-1f895cff1876', correlateActivityId: undefined, startTimeUTCInMs: 1751962435137, durationInMs: 265, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 55 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 20.x, podman) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using https

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:55:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { connection: 'close', date: 'Tue, 08 Jul 2025 08:21:30 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '3d37b8e9-752d-4d8e-a231-e85dce9d4182', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '181', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '3d37b8e9-752d-4d8e-a231-e85dce9d4182', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962890456, requestDurationInMs: 886, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1174, locationEndpointsContacted: [ 'https://localhost:45729', 'https://127.0.0.1:45729/' ], metadataDiagnostics: { metadataLookups: [ { activityId: '2545f497-dc71-4f36-bee6-e6e7cdffc6c0', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1087, startTimeUTCInMs: 1751962890461, operationType: 'read', resourceType: '', durationInMs: 666, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '3d37b8e9-752d-4d8e-a231-e85dce9d4182', correlateActivityId: undefined, startTimeUTCInMs: 1751962891127, durationInMs: 215, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 55 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 24.x, docker) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a database using https

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:55:28 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { connection: 'close', date: 'Tue, 08 Jul 2025 08:24:52 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': 'de0d12de-0bdc-48e7-932f-667c004732cf', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '257', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: 'de0d12de-0bdc-48e7-932f-667c004732cf', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751963091746, requestDurationInMs: 1024, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1174, locationEndpointsContacted: [ 'https://localhost:46667', 'https://127.0.0.1:46667/' ], metadataDiagnostics: { metadataLookups: [ { activityId: 'adcdb8a0-ca55-40bb-92b8-6b51f82a63e7', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1087, startTimeUTCInMs: 1751963091746, operationType: 'read', resourceType: '', durationInMs: 724, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: 'de0d12de-0bdc-48e7-932f-667c004732cf', correlateActivityId: undefined, startTimeUTCInMs: 1751963092470, durationInMs: 300, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }
id: dbName,
});
expect(createResponse.statusCode).toBe(201);
Expand All @@ -65,7 +65,7 @@
// }

// createAndRead {
it("should be able to create a container and store and retrieve items", async () => {
it.concurrent("should be able to create a container and store and retrieve items", async () => {
const container = await new AzureCosmosDbEmulatorContainer(IMAGE).withProtocol("http").start();
const cosmosClient = new CosmosClient({
endpoint: container.getEndpoint(),
Expand All @@ -73,7 +73,7 @@
});

const dbName = "testdb";
await cosmosClient.databases.createIfNotExists({

Check failure on line 76 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 20.x, docker) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a container and store and retrieve items

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:76:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:12:16 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '2efd7211-420a-4fa3-b3cd-f44da6e6fee3', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '538', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '2efd7211-420a-4fa3-b3cd-f44da6e6fee3', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962335711, requestDurationInMs: 882, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:37787', 'http://127.0.0.1:37787/' ], metadataDiagnostics: { metadataLookups: [ { activityId: '4cfee836-ca7c-4d52-89ba-9401fc939760', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751962335711, operationType: 'read', resourceType: '', durationInMs: 304, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '2efd7211-420a-4fa3-b3cd-f44da6e6fee3', correlateActivityId: undefined, startTimeUTCInMs: 1751962336016, durationInMs: 577, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 76 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 24.x, podman) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a container and store and retrieve items

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:76:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:13:33 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': 'b0994474-d9b1-4b7a-bd81-0935f2ae95c8', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '366', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: 'b0994474-d9b1-4b7a-bd81-0935f2ae95c8', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962413587, requestDurationInMs: 726, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:41949', 'http://127.0.0.1:41949/' ], metadataDiagnostics: { metadataLookups: [ { activityId: 'c1b3e49c-05f0-419b-b58b-71bed4e115b8', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751962413587, operationType: 'read', resourceType: '', durationInMs: 348, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: 'b0994474-d9b1-4b7a-bd81-0935f2ae95c8', correlateActivityId: undefined, startTimeUTCInMs: 1751962413935, durationInMs: 378, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 76 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 22.x, docker) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a container and store and retrieve items

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:76:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:13:51 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '0aeee98a-3102-46ef-9531-42287bbf7c58', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '549', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '0aeee98a-3102-46ef-9531-42287bbf7c58', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962431369, requestDurationInMs: 819, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:45769', 'http://127.0.0.1:45769/' ], metadataDiagnostics: { metadataLookups: [ { activityId: '468fd641-b62c-4722-a043-6cd4fe013454', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751962431374, operationType: 'read', resourceType: '', durationInMs: 232, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '0aeee98a-3102-46ef-9531-42287bbf7c58', correlateActivityId: undefined, startTimeUTCInMs: 1751962431606, durationInMs: 582, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 76 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 22.x, podman) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a container and store and retrieve items

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:76:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:13:55 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '4a53ae56-8164-45a6-ba47-821ab0138d43', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '350', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '4a53ae56-8164-45a6-ba47-821ab0138d43', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962435445, requestDurationInMs: 644, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:40363', 'http://127.0.0.1:40363/' ], metadataDiagnostics: { metadataLookups: [ { activityId: 'c009bdb7-6e87-4415-8806-a3d129dcbb8f', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751962435446, operationType: 'read', resourceType: '', durationInMs: 280, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '4a53ae56-8164-45a6-ba47-821ab0138d43', correlateActivityId: undefined, startTimeUTCInMs: 1751962435726, durationInMs: 363, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 76 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 20.x, podman) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a container and store and retrieve items

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:76:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:21:28 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '47d46613-769a-449f-abd8-34673c272d7a', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '332', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '47d46613-769a-449f-abd8-34673c272d7a', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751962888416, requestDurationInMs: 654, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:45677', 'http://127.0.0.1:45677/' ], metadataDiagnostics: { metadataLookups: [ { activityId: '88430b3e-5aac-4885-8c71-0f06bdf06f17', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751962888423, operationType: 'read', resourceType: '', durationInMs: 283, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '47d46613-769a-449f-abd8-34673c272d7a', correlateActivityId: undefined, startTimeUTCInMs: 1751962888707, durationInMs: 363, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }

Check failure on line 76 in packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts

View workflow job for this annotation

GitHub Actions / Tests (azurecosmosdb, 24.x, docker) / Run

packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts > AzureCosmosDbEmulatorContainer > should be able to create a container and store and retrieve items

Error: schema "cosmos_api" does not exist ❯ httpRequest node_modules/@azure/cosmos/src/request/RequestHandler.ts:130:42 ❯ node_modules/@azure/cosmos/src/retry/retryUtility.ts:108:26 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ addDiagnosticChild node_modules/@azure/cosmos/src/utils/diagnostics.ts:68:22 ❯ ClientContext.read node_modules/@azure/cosmos/src/ClientContext.ts:147:24 ❯ Database.readInternal node_modules/@azure/cosmos/src/client/Database/Database.ts:181:22 ❯ node_modules/@azure/cosmos/src/client/Database/Databases.ts:240:30 ❯ withDiagnostics node_modules/@azure/cosmos/src/utils/diagnostics.ts:140:27 ❯ packages/modules/azurecosmosdb/src/azure-cosmosdb-emulator-container.test.ts:76:5 ⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯ Serialized Error: { code: 500, body: { code: 'InternalServerError', message: 'schema "cosmos_api" does not exist' }, headers: { date: 'Tue, 08 Jul 2025 08:24:52 GMT', 'transfer-encoding': 'chunked', 'content-type': 'application/json', server: 'PGSQL', 'x-ms-gatewayversion': '2.0.0-unknown', 'x-ms-activity-id': '0be2252c-e7ae-4ce8-978b-b7bf1e9dbd83', 'x-ms-documentdb-partitionkeyrangeid': '0', 'x-ms-session-token': '0:-1#1', 'x-ms-interopandsdk-time-ms': '474', 'x-ms-throttle-retry-count': +0, 'x-ms-throttle-retry-wait-time-ms': +0 }, activityId: '0be2252c-e7ae-4ce8-978b-b7bf1e9dbd83', diagnostics: { clientSideRequestStatistics: { requestStartTimeUTCInMs: 1751963092044, requestDurationInMs: 901, totalRequestPayloadLengthInBytes: +0, totalResponsePayloadLengthInBytes: 1172, locationEndpointsContacted: [ 'http://localhost:38391', 'http://127.0.0.1:38391/' ], metadataDiagnostics: { metadataLookups: [ { activityId: 'b24e0b57-082b-4bb8-b5c7-e2ec3601c8a3', requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 1085, startTimeUTCInMs: 1751963092044, operationType: 'read', resourceType: '', durationInMs: 403, metaDataType: 'DATABASE_ACCOUNT_LOOK_UP' } ] }, retryDiagnostics: { failedAttempts: [] }, gatewayStatistics: [ { activityId: '0be2252c-e7ae-4ce8-978b-b7bf1e9dbd83', correlateActivityId: undefined, startTimeUTCInMs: 1751963092447, durationInMs: 498, statusCode: 500, subStatusCode: undefined, requestPayloadLengthInBytes: +0, responsePayloadLengthInBytes: 87, operationType: 'read', resourceType: 'dbs', partitionKeyRangeId: undefined } ], encryptionDiagnostics: undefined }, diagnosticNode: undefined, clientConfig: undefined, constructor: 'Function<CosmosDiagnostics>' } }
id: dbName,
});
const dbClient = cosmosClient.database(dbName);
Expand Down
12 changes: 6 additions & 6 deletions packages/modules/azurite/src/azurite-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const IMAGE = getImage(__dirname);

describe("Azurite", { timeout: 240_000 }, () => {
// uploadAndDownloadBlob {
it("should upload and download blob with default credentials", async () => {
it.concurrent("should upload and download blob with default credentials", async () => {
const container = await new AzuriteContainer(IMAGE).start();

const connectionString = container.getConnectionString();
Expand Down Expand Up @@ -40,7 +40,7 @@ describe("Azurite", { timeout: 240_000 }, () => {
// }

// sendAndReceiveQueue {
it("should add to queue with default credentials", async () => {
it.concurrent("should add to queue with default credentials", async () => {
const container = await new AzuriteContainer(IMAGE).start();

const connectionString = container.getConnectionString();
Expand All @@ -64,7 +64,7 @@ describe("Azurite", { timeout: 240_000 }, () => {
// }

// createAndInsertOnTable {
it("should add to table with default credentials", async () => {
it.concurrent("should add to table with default credentials", async () => {
const container = await new AzuriteContainer(IMAGE).start();

const connectionString = container.getConnectionString();
Expand Down Expand Up @@ -92,7 +92,7 @@ describe("Azurite", { timeout: 240_000 }, () => {
// }

// customCredentials {
it("should be able to specify accountName and accountKey", async () => {
it.concurrent("should be able to specify accountName and accountKey", async () => {
const accountName = "test-account";
// Account key must be base64 encoded
const accountKey = Buffer.from("test-key").toString("base64");
Expand All @@ -115,7 +115,7 @@ describe("Azurite", { timeout: 240_000 }, () => {
// }

// customPorts {
it("should be able to specify custom ports", async () => {
it.concurrent("should be able to specify custom ports", async () => {
const blobPort = 13000;
const queuePort = 14000;
const tablePort = 15000;
Expand Down Expand Up @@ -143,7 +143,7 @@ describe("Azurite", { timeout: 240_000 }, () => {
// }

// inMemoryPersistence {
it("should be able to use in-memory persistence", async () => {
it.concurrent("should be able to use in-memory persistence", async () => {
const container = await new AzuriteContainer(IMAGE).withInMemoryPersistence().start();
const blobName = "hello.txt";

Expand Down
10 changes: 5 additions & 5 deletions packages/modules/cassandra/src/cassandra-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const IMAGE = getImage(__dirname);

describe("Cassandra", { timeout: 240_000 }, () => {
// connectWithDefaultCredentials {
it("should connect and execute a query with default credentials", async () => {
it.concurrent("should connect and execute a query with default credentials", async () => {
const container = await new CassandraContainer(IMAGE).start();

const client = new Client({
Expand All @@ -27,7 +27,7 @@ describe("Cassandra", { timeout: 240_000 }, () => {
// }

// connectWithCustomCredentials {
it("should connect with custom username and password", async () => {
it.concurrent("should connect with custom username and password", async () => {
const username = "testUser";
const password = "testPassword";

Expand All @@ -51,7 +51,7 @@ describe("Cassandra", { timeout: 240_000 }, () => {
// }

// customDataSenterAndRack {
it("should set datacenter and rack", async () => {
it.concurrent("should set datacenter and rack", async () => {
const customDataCenter = "customDC";
const customRack = "customRack";
const container = await new CassandraContainer(IMAGE).withDatacenter(customDataCenter).withRack(customRack).start();
Expand All @@ -72,7 +72,7 @@ describe("Cassandra", { timeout: 240_000 }, () => {
// }

// createAndFetchData {
it("should create keyspace, a table, insert data, and retrieve it", async () => {
it.concurrent("should create keyspace, a table, insert data, and retrieve it", async () => {
const container = await new CassandraContainer(IMAGE).start();

const client = new Client({
Expand Down Expand Up @@ -112,7 +112,7 @@ describe("Cassandra", { timeout: 240_000 }, () => {
});
// }

it("should work with restarted container", async () => {
it.concurrent("should work with restarted container", async () => {
const container = await new CassandraContainer(IMAGE).start();
await container.restart();

Expand Down
10 changes: 5 additions & 5 deletions packages/modules/chromadb/src/chromadb-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const IMAGE = getImage(__dirname);

describe("ChromaDB", { timeout: 360_000 }, () => {
// startContainer {
it("should connect", async () => {
it.concurrent("should connect", async () => {
const container = await new ChromaDBContainer(IMAGE).start();
const client = await connectTo(container);
expect(await client.heartbeat()).toBeDefined();
Expand All @@ -31,7 +31,7 @@ describe("ChromaDB", { timeout: 360_000 }, () => {
// }

// createCollection {
it("should create collection and get data", async () => {
it.concurrent("should create collection and get data", async () => {
const container = await new ChromaDBContainer(IMAGE).start();
const client = await connectTo(container);
const collection = await client.createCollection({ name: "test", metadata: { "hnsw:space": "cosine" } });
Expand All @@ -49,7 +49,7 @@ describe("ChromaDB", { timeout: 360_000 }, () => {
// }

// queryCollectionWithEmbeddingFunction {
it("should create collection and query", async () => {
it.concurrent("should create collection and query", async () => {
const container = await new ChromaDBContainer(IMAGE).start();
const ollama = await new GenericContainer("ollama/ollama").withExposedPorts(11434).start();
await ollama.exec(["ollama", "pull", "nomic-embed-text"]);
Expand Down Expand Up @@ -79,7 +79,7 @@ describe("ChromaDB", { timeout: 360_000 }, () => {
});

// persistentData {
it("should reconnect with volume and persistence data", async () => {
it.concurrent("should reconnect with volume and persistence data", async () => {
const sourcePath = fs.mkdtempSync(path.join(os.tmpdir(), "chroma-temp"));
const container = await new ChromaDBContainer(IMAGE)
.withBindMounts([{ source: sourcePath, target: "/data" }])
Expand All @@ -105,7 +105,7 @@ describe("ChromaDB", { timeout: 360_000 }, () => {
// }

// auth {
it("should use auth", async () => {
it.concurrent("should use auth", async () => {
const tenant = "test-tenant";
const key = "test-key";
const database = "test-db";
Expand Down
12 changes: 6 additions & 6 deletions packages/modules/clickhouse/src/clickhouse-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface ClickHouseQueryResponse<T> {

describe("ClickHouseContainer", { timeout: 180_000 }, () => {
// connectWithOptions {
it("should connect using the client options object", async () => {
it.concurrent("should connect using the client options object", async () => {
const container = await new ClickHouseContainer(IMAGE).start();
const client = createClient(container.getClientOptions());

Expand All @@ -27,7 +27,7 @@ describe("ClickHouseContainer", { timeout: 180_000 }, () => {
// }

// connectWithUrl {
it("should connect using the URL", async () => {
it.concurrent("should connect using the URL", async () => {
const container = await new ClickHouseContainer(IMAGE).start();
const client = createClient({
url: container.getConnectionUrl(),
Expand All @@ -47,7 +47,7 @@ describe("ClickHouseContainer", { timeout: 180_000 }, () => {
// }

// connectWithUsernameAndPassword {
it("should connect using the username and password", async () => {
it.concurrent("should connect using the username and password", async () => {
const container = await new ClickHouseContainer(IMAGE)
.withUsername("customUsername")
.withPassword("customPassword")
Expand All @@ -73,7 +73,7 @@ describe("ClickHouseContainer", { timeout: 180_000 }, () => {
// }

// setDatabase {
it("should set database", async () => {
it.concurrent("should set database", async () => {
const customDatabase = "customDatabase";
const container = await new ClickHouseContainer(IMAGE).withDatabase(customDatabase).start();

Expand All @@ -93,7 +93,7 @@ describe("ClickHouseContainer", { timeout: 180_000 }, () => {
// }

// setUsername {
it("should set username", async () => {
it.concurrent("should set username", async () => {
const customUsername = "customUsername";
const container = await new ClickHouseContainer(IMAGE).withUsername(customUsername).start();

Expand All @@ -112,7 +112,7 @@ describe("ClickHouseContainer", { timeout: 180_000 }, () => {
});
// }

it("should work with restarted container", async () => {
it.concurrent("should work with restarted container", async () => {
const container = await new ClickHouseContainer(IMAGE).start();
await container.restart();

Expand Down
12 changes: 6 additions & 6 deletions packages/modules/cockroachdb/src/cockroachdb-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ const IMAGE = getImage(__dirname);

describe("CockroachDbContainer", { timeout: 180_000 }, () => {
// connect {
it("should connect and return a query result", async () => {
it.concurrent("should connect and return a query result", async () => {
const container = await new CockroachDbContainer(IMAGE).start();

const client = new Client({
Expand All @@ -28,7 +28,7 @@ describe("CockroachDbContainer", { timeout: 180_000 }, () => {
// }

// uriConnect {
it("should work with database URI", async () => {
it.concurrent("should work with database URI", async () => {
const container = await new CockroachDbContainer(IMAGE).start();

const client = new Client({
Expand All @@ -45,7 +45,7 @@ describe("CockroachDbContainer", { timeout: 180_000 }, () => {
// }

// setDatabase {
it("should set database", async () => {
it.concurrent("should set database", async () => {
const container = await new CockroachDbContainer(IMAGE).withDatabase("custom_database").start();

const client = new Client({
Expand All @@ -65,7 +65,7 @@ describe("CockroachDbContainer", { timeout: 180_000 }, () => {
// }

// setUsername {
it("should set username", async () => {
it.concurrent("should set username", async () => {
const container = await new CockroachDbContainer(IMAGE).withUsername("custom_username").start();

const client = new Client({
Expand All @@ -84,7 +84,7 @@ describe("CockroachDbContainer", { timeout: 180_000 }, () => {
});
// }

it("should work with restarted container", async () => {
it.concurrent("should work with restarted container", async () => {
const container = await new CockroachDbContainer(IMAGE).start();
await container.restart();

Expand All @@ -103,7 +103,7 @@ describe("CockroachDbContainer", { timeout: 180_000 }, () => {
await container.stop();
});

it("should allow custom healthcheck", async () => {
it.concurrent("should allow custom healthcheck", async () => {
const container = new CockroachDbContainer(IMAGE).withHealthCheck({
test: ["CMD-SHELL", "exit 1"],
interval: 100,
Expand Down
12 changes: 6 additions & 6 deletions packages/modules/couchbase/src/couchbase-container.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ describe("CouchbaseContainer", { timeout: 180_000 }, () => {
});

// connectAndQuery {
it("should connect and query using enterprise image", async () => {
it.concurrent("should connect and query using enterprise image", async () => {
const bucketDefinition = new BucketDefinition("mybucket");
const container = new CouchbaseContainer(COUCHBASE_IMAGE_ENTERPRISE).withBucket(bucketDefinition);

Expand All @@ -63,7 +63,7 @@ describe("CouchbaseContainer", { timeout: 180_000 }, () => {
});
// }

it("should flush bucket if flushEnabled and check any document exists", async () => {
it.concurrent("should flush bucket if flushEnabled and check any document exists", async () => {
const bucketDefinition = new BucketDefinition("mybucket").withFlushEnabled(true);
const container = new CouchbaseContainer(COUCHBASE_IMAGE_ENTERPRISE).withBucket(bucketDefinition);

Expand Down Expand Up @@ -100,7 +100,7 @@ describe("CouchbaseContainer", { timeout: 180_000 }, () => {
}
});

it("should connect and query using community image", async () => {
it.concurrent("should connect and query using community image", async () => {
const bucketDefinition = new BucketDefinition("mybucket");
const container = new CouchbaseContainer(COUCHBASE_IMAGE_COMMUNITY).withBucket(bucketDefinition);

Expand All @@ -116,7 +116,7 @@ describe("CouchbaseContainer", { timeout: 180_000 }, () => {
expect(result.content).toEqual({ foo: "bar" });
});

it("should flush bucket if flushEnabled and check any document exists", async () => {
it.concurrent("should flush bucket if flushEnabled and check any document exists", async () => {
const bucketDefinition = new BucketDefinition("mybucket").withFlushEnabled(true);
const container = new CouchbaseContainer(COUCHBASE_IMAGE_COMMUNITY).withBucket(bucketDefinition);

Expand All @@ -136,7 +136,7 @@ describe("CouchbaseContainer", { timeout: 180_000 }, () => {
expect(existResult.exists).toBe(false);
});

it("should throw error if analytics service enabled with community version", async () => {
it.concurrent("should throw error if analytics service enabled with community version", async () => {
const container = new CouchbaseContainer(COUCHBASE_IMAGE_COMMUNITY).withEnabledServices(
CouchbaseService.KV,
CouchbaseService.ANALYTICS
Expand All @@ -147,7 +147,7 @@ describe("CouchbaseContainer", { timeout: 180_000 }, () => {
);
});

it("should throw error if eventing service enabled with community version", async () => {
it.concurrent("should throw error if eventing service enabled with community version", async () => {
const container = new CouchbaseContainer(COUCHBASE_IMAGE_COMMUNITY).withEnabledServices(
CouchbaseService.KV,
CouchbaseService.EVENTING
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("ElasticsearchContainer", { timeout: 180_000 }, () => {
// }

// indexDocument {
it("should index a document", async () => {
it.concurrent("should index a document", async () => {
const container = await new ElasticsearchContainer(IMAGE).start();
const client = new Client({
node: container.getHttpUrl(),
Expand All @@ -44,7 +44,7 @@ describe("ElasticsearchContainer", { timeout: 180_000 }, () => {
});
// }

it("should work with restarted container", async () => {
it.concurrent("should work with restarted container", async () => {
const container = await new ElasticsearchContainer(IMAGE).start();
await container.restart();

Expand All @@ -59,7 +59,7 @@ describe("ElasticsearchContainer", { timeout: 180_000 }, () => {
await container.stop();
}); // }

it("should set custom password", async () => {
it.concurrent("should set custom password", async () => {
const container = await new ElasticsearchContainer(IMAGE).withPassword("testPassword").start();

const client = new Client({
Expand Down
Loading
Loading