Skip to content
Snippets Groups Projects

Resolve: "(CTTC) CAMARA Demo Integration tests"

Merged Lluis Gifre Renom requested to merge camara-demo-integration into develop
5 files
+ 7
8
Compare changes
  • Side-by-side
  • Inline
Files
5
  • 734ea2fd
    debug & refactoring: · 734ea2fd
    Shayan Hajipour authored
    - ofc25-camara tests added to .gitlab-cy.yml
    - redundant .xml test reports removed
    - minor changes in ofc25-camara-agg-net-controller .gitlab-ci.yml
@@ -15,7 +15,7 @@
@@ -15,7 +15,7 @@
# Build, tag, and push the Docker images to the GitLab Docker registry
# Build, tag, and push the Docker images to the GitLab Docker registry
build ofc25:
build ofc25:
variables:
variables:
TEST_NAME: 'ofc25_camara_agg_net'
TEST_NAME: 'ofc25-camara-agg-net-controller'
IP_NAME: 'ip'
IP_NAME: 'ip'
IP_PORT: '9090'
IP_PORT: '9090'
stage: build
stage: build
@@ -28,7 +28,7 @@ build ofc25:
@@ -28,7 +28,7 @@ build ofc25:
- docker buildx build -t "${TEST_NAME}:latest" -f ./src/tests/${TEST_NAME}/Dockerfile .
- docker buildx build -t "${TEST_NAME}:latest" -f ./src/tests/${TEST_NAME}/Dockerfile .
- docker tag "${TEST_NAME}:latest" "$CI_REGISTRY_IMAGE/${TEST_NAME}:latest"
- docker tag "${TEST_NAME}:latest" "$CI_REGISTRY_IMAGE/${TEST_NAME}:latest"
- docker push "$CI_REGISTRY_IMAGE/${TEST_NAME}:latest"
- docker push "$CI_REGISTRY_IMAGE/${TEST_NAME}:latest"
- docker buildx build -t "${IP_NAME}:latest" -f ./src/tests/tools/mock_ietf_l3vpn_sdn_ctrl/Dockerfile .
- docker buildx build -t "${IP_NAME}:latest" -f ./src/tests/tools/mock_ietf_l3vpn_sdn_ctrl/Dockerfile ./src/tests/tools/mock_ietf_l3vpn_sdn_ctrl
- docker tag "${IP_NAME}:latest" "$CI_REGISTRY_IMAGE/${IP_NAME}:latest"
- docker tag "${IP_NAME}:latest" "$CI_REGISTRY_IMAGE/${IP_NAME}:latest"
- docker push "$CI_REGISTRY_IMAGE/${IP_NAME}:latest"
- docker push "$CI_REGISTRY_IMAGE/${IP_NAME}:latest"
after_script:
after_script:
@@ -46,7 +46,7 @@ build ofc25:
@@ -46,7 +46,7 @@ build ofc25:
# Deploy TeraFlowSDN and Execute end-2-end test
# Deploy TeraFlowSDN and Execute end-2-end test
end2end_test ofc25_camara_agg_net:
end2end_test ofc25_camara_agg_net:
variables:
variables:
TEST_NAME: 'ofc25_camara_agg_net'
TEST_NAME: 'ofc25-camara-agg-net-controller'
IP_NAME: 'ip'
IP_NAME: 'ip'
IP_PORT: '9090'
IP_PORT: '9090'
stage: end2end_test
stage: end2end_test
@@ -89,13 +89,14 @@ end2end_test ofc25_camara_agg_net:
@@ -89,13 +89,14 @@ end2end_test ofc25_camara_agg_net:
docker run -t --rm --name ${TEST_NAME} --network=host
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/tfs_runtime_env_vars.sh:/var/teraflow/tfs_runtime_env_vars.sh"
--volume "$PWD/src/tests/${TEST_NAME}:/opt/results"
--volume "$PWD/src/tests/${TEST_NAME}:/opt/results"
$CI_REGISTRY_IMAGE/${TEST_NAME}:latest /var/teraflow/run-e2e-ietf-slice-operations.sh
$CI_REGISTRY_IMAGE/${TEST_NAME}:latest /var/teraflow/run-agg-net-ietf-slice-operations.sh
after_script:
after_script:
- kubectl --namespace tfs logs deployment/contextservice -c server
- kubectl --namespace tfs logs deployment/contextservice -c server
- kubectl --namespace tfs logs deployment/deviceservice -c server
- kubectl --namespace tfs logs deployment/deviceservice -c server
- kubectl --namespace tfs logs deployment/pathcompservice -c frontend
- kubectl --namespace tfs logs deployment/pathcompservice -c frontend
- kubectl --namespace tfs logs deployment/serviceservice -c server
- kubectl --namespace tfs logs deployment/serviceservice -c server
 
- kubectl --namespace tfs logs deployment/sliceservice -c server
- kubectl --namespace tfs logs deployment/nbiservice -c server
- kubectl --namespace tfs logs deployment/nbiservice -c server
# Destroy Scenario
# Destroy Scenario
Loading