Add vNext emulator pipeline with Gateway mode support #5540
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request Template
Description
This PR adds CI/CD pipeline support for the vNext emulator (preview), enabling automated validation of the .NET SDK against the next-generation Azure Cosmos DB emulator.
Key Changes
Pipeline Configuration:
azure-pipelines-vnext-emulator.yml- Daily scheduled pipeline (2 AM UTC) for vNext emulator validationtemplates/emulator-vnext-setup.yml- Template for vNext emulator setupvNext Emulator Support:
COSMOSDBEMULATOR_ENDPOINTenvironment variable support to override default HTTPS endpointhttp://localhost:8081/) instead of HTTPSAZURE_COSMOS_EMULATOR_CONNECTION_MODEenvironment variableTestCommon.csTest Infrastructure Updates:
ConfigurationManager.cs: Environment variable now overrides settings.json for endpoint configurationTestCommon.cs: All CreateCollectionAsync methods respect Gateway mode environment variableQueryTests.csandRoutingGatewayCosmosItemIdEncodingTests.csfor vNext compatibilityTest Results (Initial Validation)
Overall: 36 tests passing out of 225 tested (16% pass rate)
Excluded Tests: MultiPartition and CrossPartition tests excluded due to vNext single-partition constraint
vNext Emulator Limitations
The vNext emulator has significant differences from the legacy emulator:
Trigger Options
/azp run vnext-emulator(for on-demand testing)Backward Compatibility
✅ All changes maintain full backward compatibility:
Documentation
Comprehensive documentation available in OneDrive:
C:\Users\thvankra\OneDrive - Microsoft\cosmos-db-pm\sdk\vnext SDK\vNext-SDK-Test-Status.mdIncludes:
Type of change
Closing issues
N/A - This adds new vNext emulator validation infrastructure without closing specific issues.