Skip to content

Wrap test_plan.py in AzureCLI task#13435

Merged
wangxin merged 3 commits intosonic-net:masterfrom
wangxin:azcli-test-plan
Jun 25, 2024
Merged

Wrap test_plan.py in AzureCLI task#13435
wangxin merged 3 commits intosonic-net:masterfrom
wangxin:azcli-test-plan

Conversation

@wangxin
Copy link
Collaborator

@wangxin wangxin commented Jun 24, 2024

Description of PR

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

This is the fist step for eliminating client secrets. Purpose of this change is to allow test_plan.py to get access_token via service connection for accessing scheduler.

How did you do it?

This change wrapped all test_plan.py call in AzureCLI task instead of regular Bash task.

The next step is to update test_plan.py to get access_token via service connection.

How did you verify/test it?

Any platform specific information?

Supported testbed topology if it's a new test case?

Documentation

This is the fist step for eliminating client secrets. Purpose of this change is to allow test_plan.py to get access_token via service connection for accessing scheduler.

This change wrapped all test_plan.py call in AzureCLI task instead of regular Bash task.

The next step is to update test_plan.py to get access_token via service connection.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
@wangxin wangxin requested review from ZhaohuiS and lerry-lee June 24, 2024 10:50
Copy link
Contributor

@ZhaohuiS ZhaohuiS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

wangxin added a commit to wangxin/sonic-mgmt that referenced this pull request Jun 24, 2024
This is the second part of the work for eliminating client secrets.

This change depends on merge of sonic-net#13435.

This change updated the test_plan.py to get access token by az cli. For the az cli command to work, the task calling test_plan.py must be wrapped in an AzureCLI azure pipeline task.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
@wangxin wangxin merged commit e938807 into sonic-net:master Jun 25, 2024
wangxin added a commit that referenced this pull request Jul 8, 2024
What is the motivation for this PR?
This is the second part of the work for eliminating client secrets.

This change depends on merge of #13435.

How did you do it?
This change updated the test_plan.py to get access token by az cli. For the az cli command to work, the task calling test_plan.py must be wrapped in an AzureCLI azure pipeline task.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
mssonicbld pushed a commit to mssonicbld/sonic-mgmt that referenced this pull request Jul 10, 2024
What is the motivation for this PR?
This is the second part of the work for eliminating client secrets.

This change depends on merge of sonic-net#13435.

How did you do it?
This change updated the test_plan.py to get access token by az cli. For the az cli command to work, the task calling test_plan.py must be wrapped in an AzureCLI azure pipeline task.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
What is the motivation for this PR?
This is the second part of the work for eliminating client secrets.

This change depends on merge of sonic-net#13435.

How did you do it?
This change updated the test_plan.py to get access token by az cli. For the az cli command to work, the task calling test_plan.py must be wrapped in an AzureCLI azure pipeline task.

Signed-off-by: Xin Wang <xiwang5@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants