Skip to content

Use the creds fixture to get username and password#1885

Merged
wangxin merged 1 commit intosonic-net:masterfrom
wangxin:replace-secret-group-vars
Jul 14, 2020
Merged

Use the creds fixture to get username and password#1885
wangxin merged 1 commit intosonic-net:masterfrom
wangxin:replace-secret-group-vars

Conversation

@wangxin
Copy link
Collaborator

@wangxin wangxin commented Jul 13, 2020

Description of PR

Summary:
Fixes # (issue)

The original code uses secrets['secret-group-vars'] to get username and password
of DUT. This is not the standard way for getting credentials. This PR uses the creds
fixture to get DUT username and password.

Type of change

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

Approach

What is the motivation for this PR?

The method for getting credential in test_wr_arp and advanced_reboot is not standard. Replace it with using the creds fixture to get the username and password.

How did you do it?

  • Replace the method of reading username and password from secrets['secret-group-vars'] with the standard creds fixture.
  • Fixed some typos.

How did you verify/test it?

Test run tests/arp/test_wr_arp.py and tests/platform_tests/test_advanced_reboot.py.

Any platform specific information?

No

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

Documentation

The original code uses secrets['secret-group-vars'] to get username and password
of DUT. This is not the standard way for getting credentials. This PR uses the `creds`
fixture to get DUT username and password.

Signed-off-by: Xin Wang <[email protected]>
@wangxin wangxin requested review from a team and tahmed-dev July 13, 2020 08:48
@yxieca
Copy link
Collaborator

yxieca commented Jul 13, 2020

retest vsimage please

@wangxin wangxin merged commit 00cf556 into sonic-net:master Jul 14, 2020
@wangxin wangxin deleted the replace-secret-group-vars branch July 20, 2020 08:57
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
sonic-swss commits

5fbd113 [Flex-counters] Fix the delay of flex counters flow to prevent infinite loop (sonic-net#1899)
dc685b6 [portsorch] Add an extra check before setting oper speed to APPL_DB (sonic-net#1885)
ceef728 Update port_rates & rif_rates lua scripts to convert poll_interval to MS (sonic-net#1855)

sonic-utilities commits

3160753 [ci]: Support PR coverage (sonic-net#1806)
3316fdb fix wrong code indent in sfputil (sonic-net#1808)
c33e3a8 [config reload] Fix config reload failure due to sonic.target job cancellation (sonic-net#1814)
4f7e107 [portconfig] Validate duplicate speed value and interface type value (sonic-net#1745)
59817e2 [warm-reboot] Add new preboot health check: verify database integrity (sonic-net#1785)
bf2ff3c [portstat, intfstat] added rates and utilization (sonic-net#1750)
3bf962c [show][platform] Revise chassis info fallback to only fall back on pmon crash (sonic-net#1751)
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