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

[FIXED] Stream create response test for sources being present in the response. #1420

Merged
merged 2 commits into from
Sep 27, 2023

Conversation

jnmoyne
Copy link
Contributor

@jnmoyne jnmoyne commented Sep 27, 2023

Server 2.10 now returns source infos (as well as the config) so you can for example tell which sources where successfully added for the stream, and what their current state is) but 2.9 would only return the source config info inside the stream info.

nats.go 2.10 added a check that all of the sources defined in the config where indeed added to the stream in the stream create transform, which would work with a 2.10 server but not with a 2.9.

This fixes the test by downgrading it to the best you can do with a 2.9 server which is check against the stream config returned in the create response message.

…sponse.

Server 2.10 now returns source infos (as well as the config) so you can for example tell which sources where successfully added for the stream, and what their current state is) but 2.9 would only return the source config info inside the stream info.

nats.go 2.10 added a check that all of the sources defined in the config where indeed added to the stream in the stream create transform, which would work with a 2.10 server but not with a 2.9.

This fixes the test by downgrading it to the best you can do with a 2.9 server which is check against the stream config returned in the create response message.

Signed-off-by: Jean-Noël Moyne <jnmoyne@gmail.com>
Copy link

@ndeubert ndeubert left a comment

Choose a reason for hiding this comment

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

Fixed my issue. :)

Copy link
Member

@Jarema Jarema left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Piotr Piotrowski <piotr@synadia.com>
@piotrpio piotrpio merged commit 4d43218 into main Sep 27, 2023
2 checks passed
@piotrpio piotrpio deleted the jnm/fix_26-Sep-23 branch September 27, 2023 07:20
@piotrpio piotrpio mentioned this pull request Sep 27, 2023
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.

None yet

4 participants