Commit 75f4bfb9 authored by Lluis Gifre Renom's avatar Lluis Gifre Renom
Browse files

PathComp-Frontend component:

- correct unitary test constraints for SP algorithm
parent c5dd2aa6
Loading
Loading
Loading
Loading
+4 −4
Original line number Diff line number Diff line
@@ -84,10 +84,10 @@ def test_request_service_shortestpath(
    pathcomp_client : PathCompClient):  # pylint: disable=redefined-outer-name

    request_services = copy.deepcopy(SERVICES)
    request_services[0]['service_constraints'] = [
        json_constraint('bandwidth[gbps]', 1000.0),
        json_constraint('latency[ms]',     1200.0),
    ]
    #request_services[0]['service_constraints'] = [
    #    json_constraint('bandwidth[gbps]', 1000.0),
    #    json_constraint('latency[ms]',     1200.0),
    #]
    pathcomp_request = PathCompRequest(services=request_services)
    pathcomp_request.shortest_path.Clear()  # hack to select the shortest path algorithm that has no attributes