Skip to content

Commit

Permalink
test: fix az login
Browse files Browse the repository at this point in the history
  • Loading branch information
ayachensiyuan committed Apr 9, 2024
1 parent 31bda77 commit 49324c8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/ui-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -413,6 +413,12 @@ jobs:
run: | # rm -r -f ~/.fx/account
npx ts-node src/scripts/m365Login.ts -- '${{ env.M365_ACCOUNT_NAME }}' '${{ env.M365_ACCOUNT_PASSWORD }}'
- name: Azure Login(win)
if: matrix.os == 'windows-latest'
working-directory: packages/tests
run: |
npx ts-node src/scripts/azureLogin.ts -- '${{ env.AZURE_ACCOUNT_NAME }}' '${{ env.AZURE_ACCOUNT_PASSWORD }}'
- name: Build
working-directory: packages/tests
run: |
Expand Down
4 changes: 2 additions & 2 deletions packages/tests/src/utils/azureCliHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export class AzSqlHelper {
}

static async login() {
const command = `az login -u ${Env["azureAccountName"]} -p ${Env["azureAccountPassword"]}`;
const command = `az login -u ${Env["azureAccountName"]} -p '${Env["azureAccountPassword"]}'`;
await Executor.execute(command, process.cwd());
// set subscription
const subscription = Env["azureSubscriptionId"];
Expand Down Expand Up @@ -237,7 +237,7 @@ export class AzServiceBusHelper {
}

static async login() {
const command = `az login -u ${Env["azureAccountName"]} -p ${Env["azureAccountPassword"]}`;
const command = `az login -u ${Env["azureAccountName"]} -p '${Env["azureAccountPassword"]}'`;
await Executor.execute(command, process.cwd());

// set subscription
Expand Down

0 comments on commit 49324c8

Please sign in to comment.