From 3916b8e6150af8abc67b1e15d4815aa3b7a6a66b Mon Sep 17 00:00:00 2001
From: Neil Schark <neil.schark@h-da.de>
Date: Mon, 4 Mar 2024 13:33:19 +0000
Subject: [PATCH] test services

---
 .gitlab/ci/.test.yml | 22 +++++++++++-----------
 1 file changed, 11 insertions(+), 11 deletions(-)

diff --git a/.gitlab/ci/.test.yml b/.gitlab/ci/.test.yml
index 6fe9f251d..eb67b0c95 100644
--- a/.gitlab/ci/.test.yml
+++ b/.gitlab/ci/.test.yml
@@ -29,19 +29,19 @@ integration-test-gosdn:
         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/*
+        #- 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="gosdn:55055" go test -p 1 ./integration-tests/*
     <<: *test
-- 
GitLab