File tree 2 files changed +24
-1
lines changed
2 files changed +24
-1
lines changed Original file line number Diff line number Diff line change 41
41
kind create cluster --image kindest/node:"$K8S_VERSION"
42
42
DOCKER_REGISTRY_SERVER=local-server OPERATOR_IMAGE=local-operator make deploy-kind
43
43
make system-tests
44
+
45
+ kubectl_tests :
46
+ name : kubectl rabbitmq tests
47
+ runs-on : ubuntu-latest
48
+ steps :
49
+ - name : Install Bats
50
+ run : |
51
+ git clone https://github.com/bats-core/bats-core.git "$HOME"/bats-core
52
+ cd "$HOME"/bats-core
53
+ sudo ./install.sh /usr/local
54
+ - name : Check out code into the Go module directory
55
+ uses : actions/checkout@v2
56
+ - name : kubectl rabbitmq tests
57
+ env :
58
+ K8S_VERSION : v1.19.1
59
+ run : |
60
+ export GOPATH=$HOME/go
61
+ export PATH=$PATH:$GOPATH/bin
62
+ make install-tools
63
+ kind create cluster --image kindest/node:"$K8S_VERSION"
64
+ PATH=$PATH:$(pwd)/bin
65
+ kubectl-rabbitmq.bats
Original file line number Diff line number Diff line change @@ -30,7 +30,8 @@ eventually() {
30
30
}
31
31
32
32
@test " create creates RabbitMQ cluster" {
33
- kubectl rabbitmq create bats-default
33
+ kubectl rabbitmq create bats-default \
34
+ --unlimited # otherwise scheduling the pod fails on kind in GitHub actions because of insufficient CPU
34
35
35
36
eventually ' [[ $(kubectl get rabbitmqcluster bats-default -o json | jq -r ' " '" ' .status.conditions | .[] | select(.type=="AllReplicasReady").status' " '" ' ) == "True" ]]' 600
36
37
}
You can’t perform that action at this time.
0 commit comments