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

Update kubectl-bats tests #980

Merged
merged 1 commit into from
Mar 3, 2022
Merged

Update kubectl-bats tests #980

merged 1 commit into from
Mar 3, 2022

Conversation

Zerpet
Copy link
Collaborator

@Zerpet Zerpet commented Mar 3, 2022

Note to reviewers: remember to look at the commits in this PR and consider if they can be squashed

Summary Of Changes

The test to set debug logs was broken since the default image became
3.9.x because this commit: rabbitmq/rabbitmq-server@cdcf602
changed the debug log prefix from debug to dbug.

There's a small tweak to the make target that runs the kubectl bats
tests locally to include the repo's bin first in the path. This is
important because the version installed by krew will take precedence.

The above also allows us to simplify slightly the PR workflow file and
run everything using make.

Local Testing

kind create cluster
kubectl rabbitmq install-cluster-operator
make kubectl-plugin-tests

The test to set debug logs was broken since the default image became
3.9.x because this commit: rabbitmq/rabbitmq-server@cdcf602
changed the debug log prefix from `debug` to `dbug`.

There's a small tweak to the make target that runs the kubectl bats
tests locally to include the repo's bin first in the path. This is
important because the version installed by krew will take precedence.

The above also allows us to simplify slightly the PR workflow file and
run everything using `make`.

Signed-off-by: Aitor Perez Cedres <[email protected]>
@Zerpet Zerpet merged commit 87487ab into main Mar 3, 2022
@Zerpet Zerpet deleted the fix-kubectl-plugin-tests branch March 3, 2022 15:50
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.

3 participants