Skip to content

Commit

Permalink
Add melange test coverage
Browse files Browse the repository at this point in the history
Signed-off-by: Mark McCormick <[email protected]>
  • Loading branch information
mamccorm committed Oct 8, 2024
1 parent 9369ba4 commit e1ed327
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions py3-azure-identity.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -49,3 +49,32 @@ update:
strip-prefix: azure-identity_
tag-filter: azure-identity_
use-tag: true

test:
environment:
contents:
packages:
- openssl
- python3
pipeline:
- name: Verify Installation
runs: |
# Ensure that the azure-identity package is installed
python3 -c "import azure.identity" || exit 1
echo "azure-identity package is installed."
- name: Test DefaultAzureCredential
runs: |
# Test creating a DefaultAzureCredential object
python3 -c "
from azure.identity import DefaultAzureCredential
credential = DefaultAzureCredential()
print('DefaultAzureCredential initialized successfully.')
"
- name: Test Azure Identity with Mock Environment
runs: |
# Simulate an environment variable-based authentication
python3 -c "
from azure.identity import DefaultAzureCredential
credential = DefaultAzureCredential()
print('DefaultAzureCredential with environment variables initialized successfully.')
"

0 comments on commit e1ed327

Please sign in to comment.