From 2295d98edff6a8440f465d4a88f3e78c95cc151a Mon Sep 17 00:00:00 2001 From: Dinesh Kumar Sellappan <40899231+selldinesh@users.noreply.github.com> Date: Wed, 5 Jun 2024 18:52:31 -0700 Subject: [PATCH] Fix for passing snappi api credentials (#12135) * 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 --- tests/common/snappi_tests/snappi_fixtures.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/common/snappi_tests/snappi_fixtures.py b/tests/common/snappi_tests/snappi_fixtures.py index 1d3e43a27c0..7c298234191 100644 --- a/tests/common/snappi_tests/snappi_fixtures.py +++ b/tests/common/snappi_tests/snappi_fixtures.py @@ -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 = "" + # api._password = "" yield api if getattr(api, 'assistant', None) is not None: