Skip to content
Snippets Groups Projects
Commit cb8e8cc5 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Pre-release CI/CD pipeline fixes

parent d7964dd8
No related branches found
No related tags found
2 merge requests!142Release TeraFlowSDN 2.1,!137Pre-release CI/CD fixes - Service - PathComp
...@@ -137,14 +137,15 @@ SERVICE_R1_R2_DESCRIPTOR = json_service_l3nm_planned(SERVICE_R1_R2_UUID) ...@@ -137,14 +137,15 @@ SERVICE_R1_R2_DESCRIPTOR = json_service_l3nm_planned(SERVICE_R1_R2_UUID)
# ----- Test Descriptor ------------------------------------------------------------------------------------------------ # ----- Test Descriptor ------------------------------------------------------------------------------------------------
TEST_SERVICE_HANDLER = (SERVICE_HANDLER_NAME, { TEST_SERVICE_HANDLER = (SERVICE_HANDLER_NAME, {
'contexts' : [CONTEXT], 'contexts' : [CONTEXT],
'topologies' : [TOPOLOGY], 'topologies' : [TOPOLOGY],
'devices' : [DEVICE_R1, DEVICE_R2, DEVICE_O1], 'devices' : [DEVICE_R1, DEVICE_R2, DEVICE_O1],
'links' : [LINK_R1_O1, LINK_R2_O1], 'links' : [LINK_R1_O1, LINK_R2_O1],
'service_id' : SERVICE_R1_R2_ID,
'service_id' : SERVICE_R1_R2_ID, 'service_descriptor' : SERVICE_R1_R2_DESCRIPTOR,
'service_descriptor' : SERVICE_R1_R2_DESCRIPTOR, 'service_endpoint_ids' : SERVICE_R1_R2_ENDPOINT_IDS,
'service_endpoint_ids' : SERVICE_R1_R2_ENDPOINT_IDS, 'service_config_rules' : SERVICE_R1_R2_CONFIG_RULES,
'service_config_rules' : SERVICE_R1_R2_CONFIG_RULES, 'service_constraints' : SERVICE_R1_R2_CONSTRAINTS,
'service_constraints' : SERVICE_R1_R2_CONSTRAINTS, 'service_constraints_location' : [],
'service_constraints_location_new' : [],
}) })
...@@ -93,9 +93,8 @@ class TestServiceHandlers: ...@@ -93,9 +93,8 @@ class TestServiceHandlers:
def test_service_create_correct( def test_service_create_correct(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -104,9 +103,8 @@ class TestServiceHandlers: ...@@ -104,9 +103,8 @@ class TestServiceHandlers:
def test_service_get_created( def test_service_get_created(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -116,9 +114,8 @@ class TestServiceHandlers: ...@@ -116,9 +114,8 @@ class TestServiceHandlers:
def test_service_update_configure( def test_service_update_configure(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -136,9 +133,8 @@ class TestServiceHandlers: ...@@ -136,9 +133,8 @@ class TestServiceHandlers:
str(device_id), i, grpc_message_to_json_string(config_rule))) str(device_id), i, grpc_message_to_json_string(config_rule)))
def test_service_update_deconfigure( def test_service_update_deconfigure(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -156,9 +152,8 @@ class TestServiceHandlers: ...@@ -156,9 +152,8 @@ class TestServiceHandlers:
def test_service_get_updated( def test_service_get_updated(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -168,9 +163,8 @@ class TestServiceHandlers: ...@@ -168,9 +163,8 @@ class TestServiceHandlers:
def test_service_update_configure_loc( def test_service_update_configure_loc(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -189,9 +183,8 @@ class TestServiceHandlers: ...@@ -189,9 +183,8 @@ class TestServiceHandlers:
def test_service_get_updated_1( def test_service_get_updated_1(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -201,9 +194,8 @@ class TestServiceHandlers: ...@@ -201,9 +194,8 @@ class TestServiceHandlers:
def test_service_update_configure_loc_new( def test_service_update_configure_loc_new(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -222,9 +214,8 @@ class TestServiceHandlers: ...@@ -222,9 +214,8 @@ class TestServiceHandlers:
def test_service_get_updated_2( def test_service_get_updated_2(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -233,9 +224,8 @@ class TestServiceHandlers: ...@@ -233,9 +224,8 @@ class TestServiceHandlers:
LOGGER.info('service_data = {:s}'.format(grpc_message_to_json_string(service_data))) LOGGER.info('service_data = {:s}'.format(grpc_message_to_json_string(service_data)))
def test_service_delete_loc( def test_service_delete_loc(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
...@@ -243,9 +233,8 @@ class TestServiceHandlers: ...@@ -243,9 +233,8 @@ class TestServiceHandlers:
service_client.DeleteService(ServiceId(**service_id)) service_client.DeleteService(ServiceId(**service_id))
def test_cleanup_environment( def test_cleanup_environment(
self, service_id, service_descriptor, service_endpoint_ids, service_config_rules, service_constraints, self, contexts, topologies, devices, links, service_id, service_descriptor, service_endpoint_ids,
service_constraints_location, service_constraints_location_new, service_config_rules, service_constraints, service_constraints_location, service_constraints_location_new,
contexts, topologies, devices, links,
context_client : ContextClient, # pylint: disable=redefined-outer-name context_client : ContextClient, # pylint: disable=redefined-outer-name
device_client : DeviceClient, # pylint: disable=redefined-outer-name device_client : DeviceClient, # pylint: disable=redefined-outer-name
service_client : ServiceClient): # pylint: disable=redefined-outer-name service_client : ServiceClient): # pylint: disable=redefined-outer-name
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment