Skip to content

More changes for multi DUT testcase support#2532

Merged
yxieca merged 3 commits intosonic-net:masterfrom
vaibhavhd:multi_dut_missing_changes
Nov 15, 2020
Merged

More changes for multi DUT testcase support#2532
yxieca merged 3 commits intosonic-net:masterfrom
vaibhavhd:multi_dut_missing_changes

Conversation

@vaibhavhd
Copy link
Copy Markdown
Contributor

Description of PR

Summary: Add more changes to support MULTI DUT testing using random hostname fixture
Fixes # (issue)

Type of change

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

Approach

What is the motivation for this PR?

This is in continuation to merged PR #2513.
Some Pytest fixtures changes were still missing.

How did you do it?

Use two recently introduced fixtures - duthosts, rand_one_dut_hostname and retrieve duthost instance from duthosts[rand_one_dut_hostname].

How did you verify/test it?

Any platform specific information?

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

Documentation

@vaibhavhd vaibhavhd requested a review from a team November 13, 2020 23:19
@lgtm-com
Copy link
Copy Markdown

lgtm-com Bot commented Nov 13, 2020

This pull request introduces 3 alerts when merging dc1ce30 into 3f12d64 - view on LGTM.com

new alerts:

  • 3 for Unused local variable

@yxieca
Copy link
Copy Markdown
Collaborator

yxieca commented Nov 15, 2020

How did the previous test missed these? What test have been done to make sure this time the change is complete?

Comment thread tests/acl/test_acl.py

@pytest.fixture(scope="class", autouse=True)
def acl_rules(self, duthost, localhost, setup, acl_table, populate_vlan_arp_entries):
def acl_rules(self, duthosts, rand_one_dut_hostname, localhost, setup, acl_table, populate_vlan_arp_entries):
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.

There is one more miss in this file. I fixed it in PR #2534. So that means the method you are using to identify these change still have issue.

@yxieca
Copy link
Copy Markdown
Collaborator

yxieca commented Nov 15, 2020

We probably should merge this change if there is no negative impact on single DUT testbed and find individual issues for dualtor at individual test level.

@yxieca yxieca changed the title Remaining changes for multi DUT testcase support More changes for multi DUT testcase support Nov 15, 2020
@yxieca yxieca merged commit d5c60bc into sonic-net:master Nov 15, 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.

2 participants