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

Enable multi interface testing in gateway_ping_test.py (New) #998

Merged
merged 2 commits into from
Feb 19, 2024

Conversation

kissiel
Copy link
Contributor

@kissiel kissiel commented Feb 19, 2024

Description

This PR rearranges the code of gateway_ping_test.py to enable running the test on more than one interface. This is needed for SRU changes where we want the test to pass if any of the cable interfaces can ping the gateway.

This PR also adds a new job that checks if the DUT can ping a gateway of any of its cable network interfaces, and replaces the job that try pinging with each of the interfaces with this one in the SRU test plan.

Resolved issues

Resolves: CHECKBOX-1243

Tests

Everything should be covered by the unit tests.
I've also tested it manually with multiple interface configurations

Copy link

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (26916be) 38.98% compared to head (7c2f183) 38.99%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #998   +/-   ##
=======================================
  Coverage   38.98%   38.99%           
=======================================
  Files         333      333           
  Lines       37045    37051    +6     
  Branches     6316     6318    +2     
=======================================
+ Hits        14441    14447    +6     
  Misses      21976    21976           
  Partials      628      628           
Flag Coverage Δ
provider-base 12.05% <100.00%> (+0.03%) ⬆️
provider-sru 100.00% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Collaborator

@Hook25 Hook25 left a comment

Choose a reason for hiding this comment

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

+1

@Hook25 Hook25 merged commit 07dd3de into main Feb 19, 2024
24 checks passed
@Hook25 Hook25 deleted the multi-if-ping-test-support branch February 19, 2024 14:33
LiaoU3 pushed a commit to LiaoU3/checkbox that referenced this pull request Mar 20, 2024
…ical#998)

* enable multi-interface pinging on gateway-ping test script

* add any-cable-interface ping job
binli pushed a commit to binli/checkbox that referenced this pull request Mar 22, 2024
…ical#998)

* enable multi-interface pinging on gateway-ping test script

* add any-cable-interface ping job
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