Skip to content
Snippets Groups Projects

Resolve "Investigate GitLab-CI services don't reach each other"

1 file
+ 2
1
Compare changes
  • Side-by-side
  • Inline
+ 8
14
@@ -11,7 +11,8 @@ integration-test-gosdn:
MONGO_INITDB_ROOT_PASSWORD: example
INTEGRATION_TEST_TARGET_A: gnmi-target_A:7030
INTEGRATION_TEST_TARGET_B: gnmi-target_B:7030
RABBITMQ_HOSTNAME: rabbitmq
INTEGRATION_TEST_RABBITMQ_HOSTNAME: rabbitmq
INTEGRATION_TEST_CONTROLLER_URL: gosdn:55055
services:
- name: ${CI_DEPENDENCY_PROXY_GROUP_IMAGE_PREFIX}/mongo:7
alias: mongo
@@ -28,20 +29,13 @@ integration-test-gosdn:
alias: gnmi-target_B
command: ["start", "--cert", "/etc/gnmi-target/ssl/certs/gnmi-target-selfsigned.crt", "--key", "/etc/gnmi-target/ssl/private/gnmi-target-selfsigned.key", "--ca_file", "/etc/gnmi-target/ssl/ca.crt"]
# Use gosdn docker image from this branch
# Uncomment later when fixed. See: https://code.fbi.h-da.de/danet/gosdn/-/issues/335
#- name: "${CI_REGISTRY_IMAGE}:${DOCKER_TAG}_integration-test"
# alias: gosdn
# variables:
# GOSDN_ADMIN_PASSWORD: TestPassword
# command: ["--config", "/app/configs/integration-test-gosdn.toml", "--security", "secure"]
- name: "${CI_REGISTRY_IMAGE}:${DOCKER_TAG}_integration-test"
alias: gosdn
variables:
GOSDN_ADMIN_PASSWORD: TestPassword
command: ["--config", "/app/configs/integration-test-gosdn.toml", "--security", "secure"]
before_script:
- bash -c "$(curl -sL https://get-gnmic.openconfig.net)"
script:
# Remove start of goSDN later when fixed. See: https://code.fbi.h-da.de/danet/gosdn/-/issues/335
- cp -r artifacts/ssl/gosdn/certs artifacts/ssl/
- cp -r artifacts/ssl/gosdn/private artifacts/ssl/
- mkdir artifacts/configs && cp controller/configs/gNMISubscriptions.txt.example artifacts/configs/gNMISubscriptions.txt
- make build-gosdn
- cd artifacts && GOSDN_ADMIN_PASSWORD=TestPassword ./gosdn --config ../controller/configs/integration-test-gosdn.toml --security secure &
- INTEGRATION_TEST_CONTROLLER_URL="localhost:55055" go test -p 1 ./integration-tests/*
- go test -p 1 ./integration-tests/*
<<: *test
Loading