Skip to content

Conversation

@TomRitserveldt
Copy link
Contributor

with the previous code there were scenarios where version on line 46 was empty and the following if did not work as expected.

@wyardley
Copy link
Contributor

Will this also solve #872 ?

Is there a way to unit test this?

Also, can you double check it your commit email address is tied to your GH account?

@wyardley wyardley added the bug Something isn't working label Feb 24, 2021
@TomRitserveldt
Copy link
Contributor Author

that email should be linked now as well.
I will look into expanding the unit tests for this.
as for the other PR, I think it's related for sure, his problem sounds really similar.

I'm wondering now if it wouldnt be better to just use the rabbitmq_version fact that is created here using rabbitmqadmin --version, instead of using a regex that could break every time rabbitmqctl --status output changes..

@wyardley
Copy link
Contributor

I'm wondering now if it wouldnt be better to just use the rabbitmq_version fact that is created here using rabbitmqadmin --version

I think that may not be available early enough or as consistently, or else may not be as reliably there, since the module installs it in a weird way, but could be wrong.

@TomRitserveldt
Copy link
Contributor Author

That's correct, using the fact was not consistent enough.
My attempts to catch the problem I saw in unit tests failed, so I'm afraid I wont be able to update the unit tests for this PR.

fyi: I can confirm the current regex works for both use cases you mentioned here (#872 (comment))

@wyardley wyardley merged commit dfd7607 into voxpupuli:master Mar 2, 2021
wyardley added a commit to wyardley/puppet-rabbitmq that referenced this pull request Apr 16, 2021
- Add support for oom_score_adj (voxpupuli#877)
- CLI Environment Fixes (voxpupuli#876)
- make sure the rabbitmq_version method actually returns the version (voxpupuli#874)
- Use mocked facts in tests (voxpupuli#873)
@wyardley wyardley mentioned this pull request Apr 16, 2021
wyardley added a commit to wyardley/puppet-rabbitmq that referenced this pull request Apr 16, 2021
- Add support for oom_score_adj (voxpupuli#877)
- CLI Environment Fixes (voxpupuli#876)
- make sure the rabbitmq_version method actually returns the version (voxpupuli#874)
- Use mocked facts in tests (voxpupuli#873)
- Enable Puppet 7 support (voxpupuli#881)
wyardley added a commit to wyardley/puppet-rabbitmq that referenced this pull request Apr 20, 2021
- Add support for oom_score_adj (voxpupuli#877)
- CLI Environment Fixes (voxpupuli#876)
- make sure the rabbitmq_version method actually returns the version (voxpupuli#874)
- Use mocked facts in tests (voxpupuli#873)
- Enable Puppet 7 support (voxpupuli#881)
- Add auto cluster configuration support (voxpupuli#883)
wyardley added a commit to wyardley/puppet-rabbitmq that referenced this pull request May 6, 2021
- Add support for oom_score_adj (voxpupuli#877)
- CLI Environment Fixes (voxpupuli#876)
- make sure the rabbitmq_version method actually returns the version (voxpupuli#874)
- Use mocked facts in tests (voxpupuli#873)
- Enable Puppet 7 support (voxpupuli#881)
- Add auto cluster configuration support (voxpupuli#883)
wyardley added a commit to wyardley/puppet-rabbitmq that referenced this pull request May 6, 2021
- Add support for oom_score_adj (voxpupuli#877)
- CLI Environment Fixes (voxpupuli#876)
- make sure the rabbitmq_version method actually returns the version (voxpupuli#874)
- Use mocked facts in tests (voxpupuli#873)
- Enable Puppet 7 support (voxpupuli#881)
- Add auto cluster configuration support (voxpupuli#883)
- Compatibility with camptocamp/systemd 3.x (voxpupuli#886)
wyardley added a commit to wyardley/puppet-rabbitmq that referenced this pull request May 6, 2021
- Add support for oom_score_adj (voxpupuli#877)
- CLI Environment Fixes (voxpupuli#876)
- make sure the rabbitmq_version method actually returns the version (voxpupuli#874)
- Use mocked facts in tests (voxpupuli#873)
- Enable Puppet 7 support (voxpupuli#881)
- Add auto cluster configuration support (voxpupuli#883)
- Compatibility with camptocamp/systemd 3.x (voxpupuli#886)
- puppetlabs/apt: Allow 8.x (voxpupuli#884)
- puppet/archive: Allow 5.x (voxpupuli#884)
- puppetlabs/stdlib: allow 7.x (voxpupuli#884)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants