Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pfc tests migrated to snappi #9

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open

Conversation

ANISH-GOTTAPU
Copy link
Owner

Description of PR

Migration of PFC tests from abstract open traffic generator to snappi

Summary:
Test case(new/improvement)

Type of change

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

Approach

What is the motivation for this PR?

The motivation for this PR is to migrate the tests that are written with abstract open traffic generator to snappi

How did you do it?

Replaced the code where abstract is used to snappi

How did you verify/test it?

verified all the tests in sonic-mgmt using pytest with DUT and IXIA connections
snappi version used for the development of tests snappi[ixnetwork]==0.4.0

tests/common/fixtures/snappi_fixtures.py Outdated Show resolved Hide resolved
tests/common/fixtures/snappi_fixtures.py Outdated Show resolved Hide resolved
"""
duthost = duthosts[rand_one_dut_hostname]
return (duthost.host.options['variable_manager'].
_hostvars[duthost.hostname]['secret_group_vars']
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why do we have secret_group_vars ? doesn't seem to be used in ixia_api_serv_port

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there is some update in the library end, have to add this to ixia_api_serv_port also..I will add that in separate PR and same is informed to Wei

tests/common/fixtures/snappi_fixtures.py Outdated Show resolved Hide resolved
tests/common/fixtures/snappi_fixtures.py Show resolved Hide resolved
tests/common/fixtures/snappi_fixtures.py Outdated Show resolved Hide resolved
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.

2 participants