Skip to content

Commit

Permalink
Fix for passing snappi api credentials (#12135)
Browse files Browse the repository at this point in the history
* passing non default password from snappi-sonic.yml file

* passing non default password from snappi-sonic.yml file

* commenting the username and paswword block

* removing duthost
  • Loading branch information
selldinesh authored and mssonicbld committed Jun 13, 2024
1 parent 68a346d commit 977c413
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/common/snappi_tests/snappi_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,9 @@ def snappi_api(snappi_api_serv_ip,
# Going forward, we should be able to specify extension
# from command line while running pytest.
api = snappi.api(location=location, ext="ixnetwork")

# TODO - Uncomment to use. Prefer to use environment vars to retrieve this information
# api._username = "<please mention the username if other than default username>"
# api._password = "<please mention the password if other than default password>"
yield api

if getattr(api, 'assistant', None) is not None:
Expand Down

0 comments on commit 977c413

Please sign in to comment.