Skip to content

Adding a new test for FIB in pytest#1413

Merged
lguohan merged 1 commit intosonic-net:masterfrom
arlakshm:fib_pytest
Mar 5, 2020
Merged

Adding a new test for FIB in pytest#1413
lguohan merged 1 commit intosonic-net:masterfrom
arlakshm:fib_pytest

Conversation

@arlakshm
Copy link
Copy Markdown
Contributor

Adding a test for FIB in pytest.

Signed-off-by: Arvindsrinivasan Lakshminarasimhan [email protected]

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Approach

How did you do it?

Convert the ansible fib test to py test

How did you verify/test it?

Verify on the test run on existing platform

Any platform specific information?

None

Supported testbed topology if it's a new test case?

This test is support in T1 and T0 topologies

Documentation

…e fib test.

Signed-off-by: Arvindsrinivasan Lakshminarasimhan <[email protected]>
@arlakshm arlakshm requested review from anqyan, prsunny and yxieca and removed request for anqyan February 28, 2020 19:24
@prsunny
Copy link
Copy Markdown
Contributor

prsunny commented Feb 28, 2020

@arlakshm , as i understand, this is converting the existing ansible test to pytest right? The title mentions as adding new test.. Just clarifying

@arlakshm
Copy link
Copy Markdown
Contributor Author

@prsunny, This is new test in pytest, so I marked it as new test.

def test_fib(ansible_adhoc, testbed, duthost, ptfhost,ipv4, ipv6, mtu):

t1_topologies = ['t1', 't1-lag', 't1-64-lag', 't1-64-lag-clet']
t0_topologies = ['t0', 't0-52', 't0-56', 't0-64', 't0-64-32', 't0-116']
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I am wondering if you could make this more generic?

Having these 2 above list meaning that if we define a new topology in the future. This test code needs to be changed too. Previously we only have to change the testcase.yml.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

good concern, this needs to work together with the new fib fixture. suggest to address in a separate pr.

@lguohan lguohan merged commit 2a45131 into sonic-net:master Mar 5, 2020
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.

4 participants