From 75598da9a1d75965f5aa507d55bfeb660429fed6 Mon Sep 17 00:00:00 2001 From: gifrerenom <lluis.gifre@cttc.es> Date: Fri, 22 Dec 2023 11:54:01 +0000 Subject: [PATCH] NBI Component: - Fixing GitLab CI/CD pipeline - Updated script to manually launch IETF L2VPN test --- ...tests_locally-nbi.sh => run_tests_locally-nbi-ietf-l2vpn.sh} | 2 +- src/nbi/tests/test_ietf_network.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) rename scripts/{run_tests_locally-nbi.sh => run_tests_locally-nbi-ietf-l2vpn.sh} (96%) diff --git a/scripts/run_tests_locally-nbi.sh b/scripts/run_tests_locally-nbi-ietf-l2vpn.sh similarity index 96% rename from scripts/run_tests_locally-nbi.sh rename to scripts/run_tests_locally-nbi-ietf-l2vpn.sh index 1be045158..f6b53e432 100755 --- a/scripts/run_tests_locally-nbi.sh +++ b/scripts/run_tests_locally-nbi-ietf-l2vpn.sh @@ -21,4 +21,4 @@ RCFILE=$PROJECTDIR/coverage/.coveragerc # Run unitary tests and analyze coverage of code at same time coverage run --rcfile=$RCFILE --append -m pytest --log-level=INFO --verbose \ - nbi/tests/test_unitary.py + nbi/tests/test_ietf_l2vpn.py diff --git a/src/nbi/tests/test_ietf_network.py b/src/nbi/tests/test_ietf_network.py index 1977bd508..78183c3da 100644 --- a/src/nbi/tests/test_ietf_network.py +++ b/src/nbi/tests/test_ietf_network.py @@ -15,6 +15,7 @@ from typing import Dict import deepdiff, json, logging, operator from common.Constants import DEFAULT_CONTEXT_NAME +from common.proto.context_pb2 import ContextId from common.tools.descriptor.Loader import DescriptorLoader, check_descriptor_load_results, validate_empty_scenario from common.tools.object_factory.Context import json_context_id from context.client.ContextClient import ContextClient -- GitLab