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(cluster): should respond when disable default response is true #142

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

Conversation

RobinBol
Copy link
Collaborator

@RobinBol RobinBol commented Jan 6, 2025

Handle frame should respond with cluster specific response even if disable default response is set to true.

  1. Added tests to make sure no regressions are introduced and the above mentioned case is tested: 9ee11bc
  2. Fixed Endpoint.handleFrame to make the tests pass: 0160278

@RobinBol RobinBol force-pushed the fix/default-response branch 2 times, most recently from 49ce47e to 53570cd Compare January 6, 2025 16:25
The tests ensure that:
1. A cluster specific response is sent even when disable default response is set.
2. A default response is not sent when disable default response is set.
3. A default response is not sent in response to receiving a default response.
4. A default response is not sent in response to a group addressed frame.
5. A default response (error status) is sent when the frame could not be handled by the resp. cluster.
@RobinBol RobinBol force-pushed the fix/default-response branch from 53570cd to 9ee11bc Compare January 7, 2025 15:26
@RobinBol RobinBol requested a review from nozols January 7, 2025 16:23
@RobinBol RobinBol self-assigned this Jan 7, 2025
@RobinBol RobinBol marked this pull request as ready for review January 7, 2025 16:24
Copy link
Contributor

@nozols nozols left a comment

Choose a reason for hiding this comment

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

Looks good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants