Update test_plan.py to get token via az cli#13440
Conversation
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 <[email protected]>
|
The pre-commit check detected issues in the files touched by this pull request. Detailed pre-commit check results: To run the pre-commit checks locally, you can follow below steps:
|
StormLiangMS
left a comment
There was a problem hiding this comment.
approved with a question
StormLiangMS
left a comment
There was a problem hiding this comment.
approved with a question.
| ]: | ||
| scope = "api://sonic-testbed-tools-prod/.default" | ||
| return scope | ||
| # def get_scope(elastictest_url): |
There was a problem hiding this comment.
should we remove this code other than keep them in the source code with comment out?
There was a problem hiding this comment.
I'll remove it in subsequent PRs.
|
@wangxin PR conflicts with 202311 branch |
|
@wangxin PR conflicts with 202305 branch |
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 <[email protected]>
|
Cherry-pick PR to 202405: #13606 |
|
@wangxin PR conflicts with 202205 branch |
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 <[email protected]>
Description of PR
Summary:
Fixes # (issue)
Type of change
Back port request
Approach
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.
How did you verify/test it?
Any platform specific information?
Supported testbed topology if it's a new test case?
Documentation