Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
narrieta@microsoft committed Dec 29, 2024
1 parent e3d7b2e commit 1e8e0bd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 15 deletions.
26 changes: 13 additions & 13 deletions tests/python_eol/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,22 @@ jobs:
KeyVaultName: 'waagenttests'
SecretsFilter: '*'

- task: AzureCLI@2
displayName: "Download connection certificate"
inputs:
azureSubscription: $(connection_info)
scriptType: bash
scriptLocation: inlineScript
inlineScript: |
# This temporary directory removed after the pipeline execution
mkdir -p $(Agent.TempDirectory)/app
az keyvault secret download --file $(Agent.TempDirectory)/app/cert.pem --vault-name waagenttests --name AZURE-CLIENT-CERTIFICATE
# - task: AzureCLI@2
# displayName: "Download connection certificate"
# inputs:
# azureSubscription: $(connection_info)
# scriptType: bash
# scriptLocation: inlineScript
# inlineScript: |
# # This temporary directory removed after the pipeline execution
# mkdir -p $(Agent.TempDirectory)/app
# az keyvault secret download --file $(Agent.TempDirectory)/app/cert.pem --vault-name waagenttests --name AZURE-CLIENT-CERTIFICATE

- bash: $(Build.SourcesDirectory)/tests/python_eol/run_tests.sh
displayName: "Run tests"
env:
SUBSCRIPTION_ID: $(SUBSCRIPTION-ID)
AZURE_CLIENT_ID: $(AZURE-CLIENT-ID)
AZURE_TENANT_ID: $(AZURE-TENANT-ID)
# SUBSCRIPTION_ID: $(SUBSCRIPTION-ID)
# AZURE_CLIENT_ID: $(AZURE-CLIENT-ID)
# AZURE_TENANT_ID: $(AZURE-TENANT-ID)
CR_USER: $(CR-USER)
CR_SECRET: $(CR-SECRET)
4 changes: 2 additions & 2 deletions tests/python_eol/run_tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ newgrp docker < /dev/null
#
az acr login --name waagenttests --username "$CR_USER" --password "$CR_SECRET"

docker pull waagenttests.azurecr.io/python26:latest
docker pull waagenttests.azurecr.io/waagenttests:latest

docker run --rm \
--user root \
--volume "$BUILD_SOURCESDIRECTORY:/home/waagent/WALinuxAgent" \
--volume "$LOGS_DIRECTORY":/home/waagent/logs \
waagenttests.azurecr.io/python26 \
waagenttests.azurecr.io/waagenttests \
bash --login -c run-sudo-tests

#
Expand Down

0 comments on commit 1e8e0bd

Please sign in to comment.