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

Improve test coverage #1028

Merged
merged 1 commit into from
Nov 16, 2024
Merged

Conversation

wyardley
Copy link
Contributor

@wyardley wyardley commented Nov 16, 2024

Pull Request (PR) description

Improve test coverage in main class spec

Resolves some basic coverage issues reported at the end of unit test runs.

Before:

Coverage Report:

Total resources:   38
Touched resources: 33
Resource coverage: 86.84%

 Untouched resources:
  Class[Rabbitmq::Management]
  Exec[remove_old_rabbitmqadmin_on_upgrade]
  Exec[rpm --import https://github.com/rabbitmq/signing-keys/releases/download/2.0/rabbitmq-release-signing-key.asc]
  Exec[rpm --import https://packagecloud.io/rabbitmq/rabbitmq-server/gpgkey]
  File[/usr/local/bin/rabbitmqadmin]

After:

Coverage Report:

Total resources:   32
Touched resources: 32
Resource coverage: 100.00%

Could potentially be some branches that could be covered better, but overall, this seems like a Good Thing (TM).

This Pull Request (PR) fixes the following issues

Improve test coverage in main class spec
@wyardley
Copy link
Contributor Author

I'm trying to add some additional coverage for one other thing, but I'm seeing some quirks with it, so I'll PR separately.

@wyardley wyardley merged commit b39f987 into voxpupuli:master Nov 16, 2024
11 checks passed
@wyardley wyardley deleted the wyardley/test_coverage branch November 16, 2024 22:52
wyardley added a commit to wyardley/puppet-rabbitmq that referenced this pull request Nov 17, 2024
- Remove support for CentOS / RHEL 7 (breaking change)
- Remove workarounds specific to EPEL and require_epel parameter (breaking change)
- Add support for CentOS / RHEL 9 in metadata
- Where repos_ensure is not set, install centos-release-rabbitmq-38 to
  support installing RabbitMQ from semi-official source
- Add in some additional tests for coverage (followup to voxpupuli#1028) that
  were hard to test without a supported RedHat family OS in metadata

Fixes voxpupuli#816

Signed-off-by: William Yardley <[email protected]>
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