Skip to content

Commit

Permalink
update in rabbitmq-official coverage (#666)
Browse files Browse the repository at this point in the history
Signed-off-by: rajat <[email protected]>
  • Loading branch information
Rajat0002 authored Jun 28, 2024
1 parent 5f8d4f8 commit 6b64750
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
15 changes: 15 additions & 0 deletions community_images/rabbitmq/official/commands.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/bin/bash

set -e
set -x

rabbitmqctl version
rabbitmq-diagnostics help
rabbitmq-diagnostics status
rabbitmqctl add_user "a-user" "a-passw0rd"
rabbitmq-plugins list
rabbitmq-queues help
rabbitmq-upgrade help
rabbitmq-diagnostics cluster_status
rabbitmq-streams help
rabbitmqadmin help
4 changes: 4 additions & 0 deletions community_images/rabbitmq/official/dc_coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,4 +23,8 @@ RABBITMQ_USERNAME='user'
RABBITMQ_PASSWORD='password'

sleep 20
CONTAINER_NAME=${PROJECT_NAME}-rabbitmq-1

test_rabbitmq_docker_compose "${RABBITMQ_SERVER}" "${RABBITMQ_NETWORK}" "${RABBITMQ_USERNAME}" "${RABBITMQ_PASSWORD}"

docker exec -i "${CONTAINER_NAME}" /tmp/commands.sh
2 changes: 2 additions & 0 deletions community_images/rabbitmq/official/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ services:
environment:
- RABBITMQ_DEFAULT_USER=user
- RABBITMQ_DEFAULT_PASS=password
volumes:
- ./commands.sh:/tmp/commands.sh
ports:
# AMQP protocol port
- '5672'
Expand Down

0 comments on commit 6b64750

Please sign in to comment.