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

[Test Gap][decap][t0] Add testcase to verify the decap rules are working before and after warm-reboot #17262

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

Conversation

ryanzhu706
Copy link
Contributor

Description of PR

Test Gap Description
No testcase to validate the decap rules are created/working as expected after warm-reboot.

Note: This particular test case can be covered in dedicated upgrade path test.

Test Plan
verify the decap rules are present and IPinIP traffic could be decapsulated before warm reboot
warm reboot to a newer version
verify the decap rules are present and IPinIP traffic could be decapsulated after warm reboot

Summary:
Fixes # (issue)

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • New Test case
    • Skipped for non-supported platforms
  • Test case improvement

Back port request

  • 202012
  • 202205
  • 202305
  • 202311
  • 202405
  • 202411

Approach

What is the motivation for this PR?

No testcase to validate the decap rules are created/working as expected after warm-reboot.

How did you do it?

How did you verify/test it?

Any platform specific information?

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

Documentation

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@ryanzhu706 ryanzhu706 changed the title [Test Gap][decap][t0] Add testcase to verify the decap rules are working after warm-reboot [Test Gap][decap][t0] Add testcase to verify the decap rules are working before and after warm-reboot Feb 28, 2025
@mssonicbld
Copy link
Collaborator

/azp run

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

Choose a reason for hiding this comment

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

We can't move the test to a common directory. tests/common is a place for common utilities to be used by two or more tests. So the decap test still has to live inside tests/decap

@@ -18,6 +18,8 @@
from tests.common.mellanox_data import is_mellanox_device
from tests.common.platform.reboot_timing_constants import SERVICE_PATTERNS, OTHER_PATTERNS, SAIREDIS_PATTERNS, \
OFFSET_ITEMS, TIME_SPAN_ITEMS, REQUIRED_PATTERNS
from tests.common.platform.test_subnet_decap import build_encapsulated_vlan_subnet_packet, \
Copy link
Contributor

Choose a reason for hiding this comment

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

Please move the test back to decap dir. Move the logic that is to be used (build_encapsulated_vlan_subnet_packet) by both decap and advanced_reboot case to a common location.

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.

3 participants