Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ansible/group_vars/ixia/creds.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
ixia_api_server:
user: admin
password: admin
rest_port: 443
session_id: none

8 changes: 4 additions & 4 deletions tests/common/ixia/ixia_fixtures.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ def ixia_api_serv_user(duthosts, rand_one_dut_hostname):
Ixia API server username.
"""
duthost = duthosts[rand_one_dut_hostname]
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['secret_group_vars']['ixia_api_server']['user']
return duthost.host.options['variable_manager']._hostvars[duthost.hostname]['ixia_api_server']['user']


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


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


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


@pytest.fixture(scope = "module")
Expand Down