Skip to content

Commit 74ec6b3

Browse files
authored
[rdma] Update connection info for ixia api server (#3413)
* Add creds file with well known username and password to connect to ixia api server and update fixtures to use that info Signed-off-by: Neetha John <nejo@microsoft.com> How did you verify/test it? Ran one of the ixia tests with the changes and it passed
1 parent 62dc900 commit 74ec6b3

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

ansible/group_vars/ixia/creds.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
ixia_api_server:
2+
user: admin
3+
password: admin
4+
rest_port: 443
5+
session_id: none
6+

tests/common/ixia/ixia_fixtures.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def ixia_api_serv_user(duthosts, rand_one_dut_hostname):
5757
Ixia API server username.
5858
"""
5959
duthost = duthosts[rand_one_dut_hostname]
60-
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['secret_group_vars']['ixia_api_server']['user']
60+
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['ixia_api_server']['user']
6161

6262

6363
@pytest.fixture(scope = "module")
@@ -72,7 +72,7 @@ def ixia_api_serv_passwd(duthosts, rand_one_dut_hostname):
7272
Ixia API server password.
7373
"""
7474
duthost = duthosts[rand_one_dut_hostname]
75-
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['secret_group_vars']['ixia_api_server']['password']
75+
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['ixia_api_server']['password']
7676

7777

7878
@pytest.fixture(scope = "module")
@@ -87,7 +87,7 @@ def ixia_api_serv_port(duthosts, rand_one_dut_hostname):
8787
Ixia API server REST port.
8888
"""
8989
duthost = duthosts[rand_one_dut_hostname]
90-
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['secret_group_vars']['ixia_api_server']['rest_port']
90+
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['ixia_api_server']['rest_port']
9191

9292

9393
@pytest.fixture(scope = "module")
@@ -103,7 +103,7 @@ def ixia_api_serv_session_id(duthosts, rand_one_dut_hostname):
103103
Ixia API server session id.
104104
"""
105105
duthost = duthosts[rand_one_dut_hostname]
106-
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['secret_group_vars']['ixia_api_server']['session_id']
106+
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['ixia_api_server']['session_id']
107107

108108

109109
@pytest.fixture(scope = "module")

0 commit comments

Comments
 (0)