Skip to content

Add test coverage for untested VaultBackend path branches#62694

Open
SameerMesiah97 wants to merge 1 commit intoapache:mainfrom
SameerMesiah97:VaultBackend-Missing-Tests
Open

Add test coverage for untested VaultBackend path branches#62694
SameerMesiah97 wants to merge 1 commit intoapache:mainfrom
SameerMesiah97:VaultBackend-Missing-Tests

Conversation

@SameerMesiah97
Copy link
Contributor

Description

Add test coverage for previously untested edge cases in VaultBackend path resolution.
Specifically, this change adds coverage for the connections_path="" branch to ensure connection IDs are not automatically prefixed, and extends the mount_point=None scenario to verify that non-prefixed keys correctly return None without invoking Vault.

Rationale

These branches are reachable through documented configuration options but were not explicitly protected by existing tests. Adding coverage ensures correct path resolution semantics are preserved and prevents regressions in shared _parse_path logic affecting connection retrieval behavior.

Add coverage for connections_path="" to ensure connection IDs are not prefixed.
Extend mount_point=None test to cover non-prefixed keys returning None and avoiding Vault calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant