Commit e6ab6512 authored by Jorrit Schaap's avatar Jorrit Schaap

TMSS-163: use rabbitmq in gitlabt CI/CD

parent 9cec8bd2
......@@ -123,8 +123,12 @@ integration_test_TMSS:
integration_test_RAServices:
stage: integration_test
image: ci_sas:latest
# services:
# - rabbitmq:latest
services:
- rabbitmq:latest
variables:
RABBITMQ_DEFAULT_USER: guest
RABBITMQ_DEFAULT_PASS: guest
LOFAR_DEFAULT_BROKER: 'rabbitmq' # override default 'localhost' which does not work for CI service rabbitmq.
script:
- PACKAGE=RAServices
- echo "Integration Testing $PACKAGE..."
......
......@@ -19,8 +19,8 @@ DEFAULT_BROKER = "scu001.control.lofar" if isProductionEnvironment() else \
if 'LOFAR_DEFAULT_BROKER' in os.environ.keys():
DEFAULT_BROKER = os.environ.get('LOFAR_DEFAULT_BROKER')
DEFAULT_USER = "guest"
DEFAULT_PASSWORD = "guest"
DEFAULT_USER = os.environ.get('RABBITMQ_DEFAULT_USER', 'guest')
DEFAULT_PASSWORD = os.environ.get('RABBITMQ_DEFAULT_PASS', 'guest')
if isProductionEnvironment() or isTestEnvironment():
# import the user and password from RabbitMQ 'db'credentials
......
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