Skip to content

Commit 3f657ef

Browse files
authored
{AKS} Fix live test pipeline (#8698)
1 parent e27c646 commit 3f657ef

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

src/aks-preview/azcli_aks_live_test/scripts/setup_venv.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ setupAZ(){
3434
# install azdev, used later to install azcli and extension
3535
pip install azdev==0.1.60
3636

37+
# fix setuptools to 77.0.3 as a workaround for "No module named azure.cli.__main__; 'azure.cli' is a package and cannot be directly executed"
38+
pip install setuptools==77.0.3
39+
3740
# pre-install-az: check existing az
3841
which az || az version || az extension list || true
3942

src/aks-preview/azcli_aks_live_test/scripts/test_cli_live.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ removeAKSPreview
3737

3838
# login before the recording test to avoid the newly added test case does not include a corresponding
3939
# recording file and fall back to live mode, otherwise it will prompt `az login`.
40-
az login --identity -u "${IDENTITY_RESOURCE_ID}"
40+
az login --identity --resource-id "${IDENTITY_RESOURCE_ID}"
4141
az account set -s "${AZCLI_ALT_SUBSCRIPTION_ID}"
4242
az account show
4343

src/aks-preview/azcli_aks_live_test/scripts/test_ext_live.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ source azEnv/bin/activate
4040

4141
# login before the recording test to avoid the newly added test case does not include a corresponding
4242
# recording file and fall back to live mode, otherwise it will prompt `az login`.
43-
az login --identity -u "${IDENTITY_RESOURCE_ID}"
43+
az login --identity --resource-id "${IDENTITY_RESOURCE_ID}"
4444
az account set -s "${AZCLI_ALT_SUBSCRIPTION_ID}"
4545
az account show
4646

0 commit comments

Comments
 (0)