Commit cb8e8cc5 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

Pre-release CI/CD pipeline fixes

parent d7964dd8
Loading
Loading
Loading
Loading
+11 −10
Original line number Original line Diff line number Diff line
@@ -141,10 +141,11 @@ TEST_SERVICE_HANDLER = (SERVICE_HANDLER_NAME, {
    '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'  : [],
})
})
+22 −33
Original line number Original line Diff line number Diff line
@@ -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:




    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:




    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:
                    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:




    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:




    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:




    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:




    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:




    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:
        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:
        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