Azure / Azure/data-api-builder

Create and reuse a single instance of CosmosClient in Cosmos integration tests

Abierto
#756 0 comentarios 0 reacciones 1 asignado Asignado a @sourabh1007 Ver en GitHub
cosmos refactor testing
Lenguaje dominante
C#
Estrellas
1.5k
Forks
370
Merge medio
3 d 22 h
PR fusionados (30 d)
9

Descripción

At the moment, the Cosmos integration tests create a new instance of the CosmosClient for performing operations (such as creating collection, inserting items, etc.) on the cosmos DB. The documentation recommends creating a single instance for the lifetime of the application. Refactoring the tests to create a single instance and re-use that could be an enhancement to the existing cosmos integration tests.

Documentation Link: [Azure Cosmos DB Performance Docs](https://docs.microsoft.com/en-us/azure/cosmos-db/sql/performance-tips?tabs=trace-net-core)

Guía de contribución

Abrir la guía de contribución

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.