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

End-to-end test - OFC22:

- Fixed services/slices expected
parent 0daba209
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -49,7 +49,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 # no slice should be created

    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
@@ -33,7 +33,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 # no slice should be created

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