Commit 7f132c97 authored by Auke Klazema's avatar Auke Klazema

SW-836: Add rabbitmq as a service and have the messagebus pick up the default broker

parent e29b318a
......@@ -66,6 +66,10 @@ unit_test_RAServices:
integration_test_RAServices:
stage: integration_test
image: ci_raservices:latest
services:
- rabbitmq:latest
variables:
LOFAR_DEFAULT_BROKER: "rabbitmq"
script:
- PACKAGE=RAServices
- echo "Testing $PACKAGE..."
......
import os
import logging
logger = logging.getLogger()
......@@ -15,6 +16,9 @@ DEFAULT_BROKER = "scu001.control.lofar" if isProductionEnvironment() else \
"scu199.control.lofar" if isTestEnvironment() else \
"localhost"
if 'LOFAR_DEFAULT_BROKER' in os.environ.keys():
DEFAULT_BROKER = os.environ.get('LOFAR_DEFAULT_BROKER')
DEFAULT_USER = "guest"
DEFAULT_PASSWORD = "guest"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment