-
-
Notifications
You must be signed in to change notification settings - Fork 499
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
Extend version regex for RabbitMQ 3.8 #814
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi -- I think you'll need to slightly adjust the stubbed commands in the tests - see the failed items in the Travis build.
Because, in RabbitMQ 3.8.0, the default output of `rabbitmqctl -q status` has changed; it no longer formats output using Erlang's property list format. When making a version check, we also verify the version has been extracted ok.
849a53c
to
424155a
Compare
@wyardley Good point. Have fixed the tests and force-pushed back up. |
@codeinthehole thanks for the PR. Can you add an acceptance test that verifies this works? |
@bastelfreak unless they’ve been reworked, I think the acceptance tests still are only using the old version of RMQ and erlang? I can double check, but if so, it’s actually a pretty non-trivial task to add. |
ah, right. |
Maybe an additional unit test would have been good though? |
- Update existing tests to include the leading spaces and some additional formatting - Add new test case for the newer format included in `rabbitmqctl -q status` that's included in RabbitMQ >= v3.8.x, originally fixed in voxpupuli#814 See discussion in voxpupuli#872
Where the output from
rabbitmqctl -q status
isn't printed as an Erlangproperty list.
Without this change, you get a crash with error: