Commit 734ea2fd authored by Shayan Hajipour's avatar Shayan Hajipour
Browse files

debug & refactoring:

- ofc25-camara tests added to .gitlab-cy.yml
- redundant .xml test reports removed
- minor changes in ofc25-camara-agg-net-controller .gitlab-ci.yml
parent 14307428
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -21,5 +21,6 @@ include:
  #- local: '/src/tests/ofc23/.gitlab-ci.yml'
  - local: '/src/tests/ofc24/.gitlab-ci.yml'
  - local: '/src/tests/eucnc24/.gitlab-ci.yml'
  - local: '/src/tests/ofc25/.gitlab-ci.yml'
  - local: '/src/tests/ofc25-camara-agg-net-controller/.gitlab-ci.yml'
  - local: '/src/tests/ofc25-camara-e2e-controller/.gitlab-ci.yml'
  #- local: '/src/tests/ecoc24/.gitlab-ci.yml'
+5 −4
Original line number Diff line number Diff line
@@ -15,7 +15,7 @@
# Build, tag, and push the Docker images to the GitLab Docker registry
build ofc25:
  variables:
    TEST_NAME: 'ofc25_camara_agg_net'
    TEST_NAME: 'ofc25-camara-agg-net-controller'
    IP_NAME: 'ip'
    IP_PORT: '9090'
  stage: build
@@ -28,7 +28,7 @@ build ofc25:
    - 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 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 push "$CI_REGISTRY_IMAGE/${IP_NAME}:latest"
  after_script:
@@ -46,7 +46,7 @@ build ofc25:
# Deploy TeraFlowSDN and Execute end-2-end test
end2end_test ofc25_camara_agg_net:
  variables:
    TEST_NAME: 'ofc25_camara_agg_net'
    TEST_NAME: 'ofc25-camara-agg-net-controller'
    IP_NAME: 'ip'
    IP_PORT: '9090'
  stage: end2end_test
@@ -89,13 +89,14 @@ end2end_test ofc25_camara_agg_net:
      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}: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:
    - kubectl --namespace tfs logs deployment/contextservice -c server
    - kubectl --namespace tfs logs deployment/deviceservice -c server
    - kubectl --namespace tfs logs deployment/pathcompservice -c frontend
    - kubectl --namespace tfs logs deployment/serviceservice -c server
    - kubectl --namespace tfs logs deployment/sliceservice -c server
    - kubectl --namespace tfs logs deployment/nbiservice -c server

    # Destroy Scenario
+0 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="1" time="3.160" timestamp="2025-01-20T15:45:51.391725" hostname="twilight"><testcase classname="tests.ofc25-camara-agg-net-controller.tests.test_agg_net_ietf_slice_operations" name="test_ietf_slice_creation_removal" time="3.086" /></testsuite></testsuites>
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="1" time="12.092" timestamp="2025-01-19T13:03:23.064636" hostname="twilight"><testcase classname="tests.ofc25-camara-e2e-controller.tests.test_e2e_ietf_slice_operations" name="test_ietf_slice_creation_removal" time="12.028" /></testsuite></testsuites>
 No newline at end of file
+0 −1
Original line number Diff line number Diff line
<?xml version="1.0" encoding="utf-8"?><testsuites><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="2" time="1.749" timestamp="2025-01-20T15:45:49.127674" hostname="twilight"><testcase classname="tests.ofc25-camara-agg-net-controller.tests.test_onboarding" name="test_scenario_onboarding" time="0.653" /><testcase classname="tests.ofc25-camara-agg-net-controller.tests.test_onboarding" name="test_scenario_devices_enabled" time="1.017" /></testsuite></testsuites>
 No newline at end of file