From 1efc52728168a0d8f03755c44fd1923fb3cb82dc Mon Sep 17 00:00:00 2001 From: Michael Krasnyk Date: Wed, 2 Aug 2017 13:19:22 +0200 Subject: [PATCH] Test with a traffic update on an edge with traffic signal --- features/car/traffic_light_penalties.feature | 31 ++++++++++++++++++++ 1 file changed, 31 insertions(+) diff --git a/features/car/traffic_light_penalties.feature b/features/car/traffic_light_penalties.feature index 1d9bbe01f..e5bc313a0 100644 --- a/features/car/traffic_light_penalties.feature +++ b/features/car/traffic_light_penalties.feature @@ -60,3 +60,34 @@ Feature: Car - Handle traffic lights When I route I should get | from | to | route | geometry | | a | c | abc,abc | _ibE_ibE?gJ?gJ | + + @traffic + Scenario: Traffic update on the edge with a traffic signal + Given the node map + """ + a - b - c + """ + + And the ways + | nodes | highway | + | abc | primary | + + + And the nodes + | node | highway | + | b | traffic_signals | + + And the contract extra arguments "--segment-speed-file {speeds_file}" + And the customize extra arguments "--segment-speed-file {speeds_file}" + And the speed file + """ + 1,2,65 + 2,1,65 + """ + And the query options + | annotations | datasources,nodes,speed,duration,weight | + + When I route I should get + | from | to | route | speed | weights | time | distances | a:datasources | a:nodes | a:speed | a:duration | a:weight | + | a | c | abc,abc | 59 km/h | 24.2,0 | 24.2s | 399.9m,0m | 1:0 | 1:2:3 | 18:18 | 11.1:11.1 | 11.1:11.1 | + | c | a | abc,abc | 59 km/h | 24.2,0 | 24.2s | 399.9m,0m | 0:1 | 3:2:1 | 18:18 | 11.1:11.1 | 11.1:11.1 |