Skip to content

Add test_pfc_config.py script to t0 and t1-lag PR test set#13672

Merged
wangxin merged 1 commit intosonic-net:masterfrom
xwjiang-ms:add_pfcwd_config_test_to_pr_test
Jul 19, 2024
Merged

Add test_pfc_config.py script to t0 and t1-lag PR test set#13672
wangxin merged 1 commit intosonic-net:masterfrom
xwjiang-ms:add_pfcwd_config_test_to_pr_test

Conversation

@xwjiang-ms
Copy link
Contributor

Description of PR

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405

Approach

What is the motivation for this PR?

Elastictest performs well in distribute running PR test in multiple KVMs, which support us to add more test scripts to PR checker.
When we get conn_graph_facts in pfcwd module, it would return an empty dict for KVM testbed, and raise key error when we get neighbors by directly get conn_graph_facts['device_conn'][duthost.hostname]

How did you do it?

Use get method to pass variables, and pass empty dict or string if conn_graph_facts is empty

How did you verify/test it?

Run KVM test

Any platform specific information?

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

Documentation

@wangxin wangxin merged commit a891fdb into sonic-net:master Jul 19, 2024
@xwjiang-ms xwjiang-ms deleted the add_pfcwd_config_test_to_pr_test branch July 19, 2024 15:00
arista-hpandya pushed a commit to arista-hpandya/sonic-mgmt that referenced this pull request Oct 2, 2024
What is the motivation for this PR?
Elastictest performs well in distribute running PR test in multiple KVMs, which support us to add more test scripts to PR checker.
When we get conn_graph_facts in pfcwd module, it would return an empty dict for KVM testbed, and raise key error when we get neighbors by directly get conn_graph_facts['device_conn'][duthost.hostname]

How did you do it?
Use get method to pass variables, and pass empty dict or string if conn_graph_facts is empty

How did you verify/test it?
Run KVM test
vikshaw-Nokia pushed a commit to vikshaw-Nokia/sonic-mgmt that referenced this pull request Oct 23, 2024
What is the motivation for this PR?
Elastictest performs well in distribute running PR test in multiple KVMs, which support us to add more test scripts to PR checker.
When we get conn_graph_facts in pfcwd module, it would return an empty dict for KVM testbed, and raise key error when we get neighbors by directly get conn_graph_facts['device_conn'][duthost.hostname]

How did you do it?
Use get method to pass variables, and pass empty dict or string if conn_graph_facts is empty

How did you verify/test it?
Run KVM test
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