Commit a92c789f authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

CI/CD pipeline:

- Fixed execution of OFC'22 tests
parent 996c08ab
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -37,7 +37,7 @@ build ofc22:
      - .gitlab-ci.yml

# Deploy TeraFlowSDN and Execute end-2-end test
end2end ofc22:
end2end_test ofc22:
  variables:
    TEST_NAME: 'ofc22'
    IMAGE_TAG: 'latest'
@@ -45,8 +45,10 @@ end2end ofc22:
  before_script:
    - docker login -u "$CI_REGISTRY_USER" -p "$CI_REGISTRY_PASSWORD" $CI_REGISTRY
  script:
    - echo "TEST_NAME=${TEST_NAME}"
    - echo "IMAGE_TAG=${IMAGE_TAG}"
    # Download Docker image to run the test
    - docker pull "$CI_REGISTRY_IMAGE/${TEST_NAME}:$IMAGE_TAG"
    - docker pull "${CI_REGISTRY_IMAGE}/${TEST_NAME}:${IMAGE_TAG}"

    # Check MicroK8s is ready
    - microk8s status --wait-ready
@@ -54,9 +56,11 @@ end2end ofc22:

    # Configure TeraFlowSDN deployment
    - source src/tests/${TEST_NAME}/deploy_specs.sh
    - export TFS_REGISTRY_IMAGES="labs.etsi.org:5050/tfs/controller"
    - export TFS_REGISTRY_IMAGES="${CI_REGISTRY_IMAGE}"
    - export TFS_SKIP_BUILD="YES"
    - export TFS_IMAGE_TAG="latest"
    - export TFS_IMAGE_TAG="${IMAGE_TAG}"
    - echo "TFS_REGISTRY_IMAGES=${CI_REGISTRY_IMAGE}"
    - echo "TFS_IMAGE_TAG=${IMAGE_TAG}"

    # Deploy TeraFlowSDN
    - ./deploy/crdb.sh