buerokratt / POC.CentOps

Central administration of components in external networks and monitoring their technical parameters and performance
MIT License
1 stars 0 forks source link

CentOps: Test Cosmos Linq Provider in CentOps #74

Open guypritchard opened 2 years ago

guypritchard commented 2 years ago

There are some complications around unit testing the Linq provider in CosmosDB.
The Linq Provider is work having in the codebase it really simplifies logic and avoids length SQL strings. The code needs a few changes to deal with this as a test for the new GetAll API to prove it works.

Acceptance Criteria

guypritchard commented 2 years ago

Have a look at https://github.com/Azure/azure-cosmos-dotnet-v3/issues/893 for some tips on how to restructure the code to make these queries more testable.

guypritchard commented 2 years ago

Equally we could just use the ToQueryDefinition extension method to get this over the line.

shelabd commented 2 years ago

Weak 2