Migrate Cosmos tests to federated AAD - #5287
Draft
Tomas Varon (tvaron3) wants to merge 10 commits into
Draft
Tomas Varon (tvaron3) wants to merge 10 commits into
Tomas Varon (tvaron3) wants to merge 10 commits into
Conversation
Move the AAD, binary round-trip fuzz, and partition merge live legs to federated credentials with local authentication disabled. Use a shared typed ARM test client for resource lifecycle and preserve key-backed Gateway V2 coverage separately.\n\nAdd propagation-aware setup and cleanup so data-plane RBAC tests do not fall back to account keys while ARM operations remain resilient to asynchronous resource availability.\n\nCo-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
|
Azure Pipelines: Successfully started running 1 pipeline(s). 2 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
Gate non-Gateway environment resolution out of Gateway V2 builds so warnings-as-errors compilation succeeds. Retry transient ARM lock conflicts from direct responses and long-running operations during throughput transitions. Probe AAD item, query, and change-feed authorization independently to cover RBAC propagation. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use a partition-scoped non-aggregate query to verify executeQuery RBAC without requiring unsupported cross-partition aggregate planning. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Resolve the preferred-region client conflict by preserving federated authentication while applying the upstream vNext binary-encoding override. Adopt the published Cosmos management SDK for supported lifecycle operations, retaining typed raw ARM fallbacks for newer container properties and the partition-merge API version. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Avoid reintroducing the repository-banned ring crate through the legacy management SDK's Rustls feature while retaining its generated Cosmos ARM operations. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Allow the published azure_mgmt_cosmosdb crate name in repository spelling checks. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Replace the legacy generated Cosmos management dependency with the shared typed test-only ARM client built on the repository's current Azure Core stack. Keep typed database, container, throughput, and partition-merge lifecycle operations while removing the Azure Core 0.21 dependency graph and credential adapter. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Integrate the latest Cosmos API changes and align the test ARM throughput model with the right-sized SDK integer types. Keep preview patch imports feature-gated so the full workspace remains warning-free. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Use azure_mgmt_cosmosdb for database, container, throughput, and partition-merge lifecycle operations while retaining a typed raw fallback only for container fields the generated model cannot preserve. Preserve idempotent and lock-retry behavior across legacy pipeline errors, align throughput values with current SDK types, and block legacy request logging paths that could expose ARM bearer tokens. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Integrate the latest upstream Cosmos SDK and driver changes while preserving the federated live-test configuration. Resolve the live DISTINCT test helper signature against the ARM-backed test framework. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Migrate the existing Cosmos AAD live suite, BinaryEncodingRoundtripFuzz leg, and Partition Merge Preview leg to fully federated Entra ID authentication.
disableLocalAuthenabled, proving there is no account-key fallback.UseFederatedAuth=false.Validation includes formatting, all-target/all-feature checks and clippy for the affected Cosmos crates, targeted SDK/driver/helper tests, AAD-mode in-memory coverage, matrix JSON validation, PowerShell parsing, Bicep compilation, markdown linting, spelling checks, and independent staged-diff review.
Bicep compilation retains the expected warnings for the registered
2026-03-15API version lacking local type metadata and the conditionallistKeysoutput still required by preserved Gateway/key legs.