Commit 4227158c authored by Mohamad Rahhal's avatar Mohamad Rahhal
Browse files

Update file .gitlab-ci.yml

parent dc2ad010
Loading
Loading
Loading
Loading
+24 −24
Original line number Diff line number Diff line
@@ -100,19 +100,19 @@ end2end_test ryu-openflow:
    #- yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/nbiservice.yaml
    #- yq -i '((select(.kind=="Deployment").spec.template.spec.containers.[] | select(.name=="server").env.[]) | select(.name=="LOG_LEVEL").value) |= "DEBUG"' manifests/monitoringservice.yaml
##
    - source src/tests/${TEST_NAME}/deploy_specs.sh
    - export TFS_REGISTRY_IMAGES="${CI_REGISTRY_IMAGE}"
    - export TFS_SKIP_BUILD="YES"
    - export TFS_IMAGE_TAG="latest"
    - echo "TFS_REGISTRY_IMAGES=${CI_REGISTRY_IMAGE}"
#
     Deploy TeraFlowSDN
    - ./deploy/crdb.sh
    - ./deploy/nats.sh
    - ./deploy/kafka.sh
    - ./deploy/qdb.sh
    - ./deploy/tfs.sh
    - ./deploy/show.sh
    #- source src/tests/${TEST_NAME}/deploy_specs.sh
    #- export TFS_REGISTRY_IMAGES="${CI_REGISTRY_IMAGE}"
    #- export TFS_SKIP_BUILD="YES"
    #- export TFS_IMAGE_TAG="latest"
    #- echo "TFS_REGISTRY_IMAGES=${CI_REGISTRY_IMAGE}"
##
    # Deploy TeraFlowSDN
    #- ./deploy/crdb.sh
    #- ./deploy/nats.sh
    #- ./deploy/kafka.sh
    #- ./deploy/qdb.sh
    #- ./deploy/tfs.sh
    #- ./deploy/show.sh
#
#    ## Wait for Context to be subscribed to NATS
#    ## WARNING: this loop is infinite if there is no subscriber (such as monitoring).
@@ -131,21 +131,21 @@ end2end_test ryu-openflow:
#    #      break
#    #    fi
#    #  done
    - kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/contextservice -c server
    #- kubectl --namespace $TFS_K8S_NAMESPACE logs deployment/contextservice -c server

    ## Run end-to-end test: onboard scenario
    - >
      docker run -t --rm --name ${TEST_NAME} --network=host 
      --volume "$PWD/tfs_runtime_env_vars.sh:/var/teraflow/tfs_runtime_env_vars.sh"
      --volume "$PWD/src/tests/${TEST_NAME}:/opt/results"
      $CI_REGISTRY_IMAGE/${TEST_NAME}:${IMAGE_TAG} /var/teraflow/run-onboarding.sh
    #- >
    #  docker run -t --rm --name ${TEST_NAME} --network=host 
    #  --volume "$PWD/tfs_runtime_env_vars.sh:/var/teraflow/tfs_runtime_env_vars.sh"
    #  --volume "$PWD/src/tests/${TEST_NAME}:/opt/results"
    #  $CI_REGISTRY_IMAGE/${TEST_NAME}:${IMAGE_TAG} /var/teraflow/run-onboarding.sh

#    Dump configuration of the switches (OpenFlow rules configured) (before configure IETF service)
    - docker exec ryu-openflow-mininet ovs-ofctl dump-flows s1
    - docker exec ryu-openflow-mininet ovs-ofctl dump-flows s2
    - docker exec ryu-openflow-mininet ovs-ofctl dump-flows s3
    - docker exec ryu-openflow-mininet ovs-ofctl dump-flows s4
    - docker exec ryu-openflow-mininet ovs-ofctl dump-flows s5
    #- docker exec ryu-openflow-mininet ovs-ofctl dump-flows s1
    #- docker exec ryu-openflow-mininet ovs-ofctl dump-flows s2
    #- docker exec ryu-openflow-mininet ovs-ofctl dump-flows s3
    #- docker exec ryu-openflow-mininet ovs-ofctl dump-flows s4
    #- docker exec ryu-openflow-mininet ovs-ofctl dump-flows s5
    

#    # Run end-to-end test: configure service IETF