Skip to content

Commit

Permalink
Fix kubectl plugin tests
Browse files Browse the repository at this point in the history
Don't expect experimental features to be enabled
  • Loading branch information
mkuratczyk committed Mar 22, 2024
1 parent b35f2d1 commit 9b0ed68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions bin/kubectl-rabbitmq.bats
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,8 @@ eventually() {
@test "enable-all-feature-flags enables all feature flags" {
kubectl rabbitmq enable-all-feature-flags bats-default

states=$(kubectl exec bats-default-server-0 -- rabbitmqctl list_feature_flags --silent state --formatter=json)
[[ $(jq 'map(select(.state=="disabled")) | length' <<< "$states") -eq 0 ]]
states=$(kubectl exec bats-default-server-0 -- rabbitmqctl list_feature_flags --silent state --formatter=json name state stability)
[[ $(jq 'map(select(.stability!="experimental" and .state=="disabled")) | length' <<< "$states") -eq 0 ]]
}

@test "perf-test runs perf-test" {
Expand Down

0 comments on commit 9b0ed68

Please sign in to comment.