Skip to content

[action] [PR:12997] Add detailed and meaningful reason for assert failure in test_ssh_limit#13002

Merged
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/12997
May 28, 2024
Merged

[action] [PR:12997] Add detailed and meaningful reason for assert failure in test_ssh_limit#13002
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/12997

Conversation

@mssonicbld
Copy link
Collaborator

Description of PR

Summary:
Fixes # (issue)
Current failure summary is Failed: None for test_ssh_limit, it doesn't give us useful information about why it fails.
Add detailed reason for assert failure in pytest_assert.

Type of change

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

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

Add useful information about failed reason.

How did you do it?

Add the message parameter in pytest_assert

How did you verify/test it?

Run ssh.test_ssh_limit.

Any platform specific information?

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

Documentation

What is the motivation for this PR?
Add useful information about failed reason.

How did you do it?
Add the message parameter in pytest_assert

How did you verify/test it?
Run ssh.test_ssh_limit.
@mssonicbld
Copy link
Collaborator Author

Original PR: #12997

@mssonicbld mssonicbld merged commit 11f1e1a into sonic-net:202311 May 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants