Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ RUN apk --no-cache add git
RUN git clone https://github.com/Azure/azure-sdk-for-python --single-branch --depth 1 /azure-sdk-for-python


FROM python:3.11-slim
FROM mcr.microsoft.com/mirror/docker/library/python:3.11-slim

COPY --from=repo /azure-sdk-for-python/sdk/identity /sdk/identity
COPY --from=repo /azure-sdk-for-python/sdk/core/azure-core /sdk/core/azure-core
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,5 +57,5 @@ def test_azure_kubernetes(self):
pod_output = run_command([kubectl_path, "get", "pods", "-o", "jsonpath='{.items[0].metadata.name}'"])
assert pod_name in pod_output

output = run_command([kubectl_path, "exec", pod_name, "--", "python", "/app.py"])
output = run_command([kubectl_path, "exec", pod_name, "--", "python3", "/app.py"])
assert "Passed!" in output
5 changes: 5 additions & 0 deletions sdk/identity/test-resources-pre.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,11 @@ $templateFileParameters['sshPubKey'] = $sshKey
Write-Host "Sleeping for a bit to ensure service principal is ready."
Start-Sleep -s 45

# Install this specific version of the Azure CLI to avoid https://github.com/Azure/azure-cli/issues/28358.
pip install azure-cli=="2.56.0"

$az_version = az version
Write-Host "Azure CLI version: $az_version"
az login --service-principal -u $TestApplicationId -p $TestApplicationSecret --tenant $TenantId
az account set --subscription $SubscriptionId
$versions = az aks get-versions -l westus -o json | ConvertFrom-Json
Expand Down