Commit 14ed219f authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

ECOC22 End-to-End test:

- Fixed check of slices/services created/removed
parent c495ecb2
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -48,7 +48,7 @@ def test_service_creation(context_client : ContextClient, osm_wim : MockOSM): #
    # Ensure slices and services are created
    response = context_client.ListSlices(ADMIN_CONTEXT_ID)
    LOGGER.info('Slices[{:d}] = {:s}'.format(len(response.slices), grpc_message_to_json_string(response)))
    assert len(response.slices) == 1 # OSM slice
    assert len(response.slices) == 0

    response = context_client.ListServices(ADMIN_CONTEXT_ID)
    LOGGER.info('Services[{:d}] = {:s}'.format(len(response.services), grpc_message_to_json_string(response)))
+1 −1
Original line number Diff line number Diff line
@@ -34,7 +34,7 @@ def test_service_removal(context_client : ContextClient, osm_wim : MockOSM): # p
    # Ensure slices and services are created
    response = context_client.ListSlices(ADMIN_CONTEXT_ID)
    LOGGER.info('Slices[{:d}] = {:s}'.format(len(response.slices), grpc_message_to_json_string(response)))
    assert len(response.slices) == 1 # OSM slice
    assert len(response.slices) == 0

    response = context_client.ListServices(ADMIN_CONTEXT_ID)
    LOGGER.info('Services[{:d}] = {:s}'.format(len(response.services), grpc_message_to_json_string(response)))