@@ -253,14 +253,16 @@ def test_reaching_daeploy_entrypoint_with_basemodel_args(
253253def test_call_service_multiple_cases (
254254 dummy_manager , cli_auth_login , services , logs , headers
255255):
256- url = "http://localhost/services/upstream/call_downstream_method"
256+ url = "http://localhost/services/upstream/"
257+ url_downstream_post = url + "call_downstream_method"
258+ url_downstream_get = url + "call_downstream_get_method"
257259
258260 unique_name = str (uuid .uuid1 ())
259261
260262 # Correct arguments
261263 resp = requests .request (
262264 "POST" ,
263- url = url ,
265+ url = url_downstream_post ,
264266 json = {
265267 "service_name" : "downstream" ,
266268 "entrypoint_name" : "hello" ,
@@ -282,7 +284,7 @@ def test_call_service_multiple_cases(
282284 unique_name = str (uuid .UUID )
283285 resp = requests .request (
284286 "POST" ,
285- url = url ,
287+ url = url_downstream_post ,
286288 json = {
287289 "service_name" : "downstream" ,
288290 "entrypoint_name" : "hello" ,
@@ -298,7 +300,7 @@ def test_call_service_multiple_cases(
298300 unique_name = str (uuid .uuid1 ())
299301 resp = requests .request (
300302 "POST" ,
301- url = url ,
303+ url = url_downstream_post ,
302304 json = {
303305 "service_name" : "downstream" ,
304306 "entrypoint_name" : "hello" ,
@@ -314,7 +316,7 @@ def test_call_service_multiple_cases(
314316 unique_name = str (uuid .uuid1 ())
315317 resp = requests .request (
316318 "POST" ,
317- url = url ,
319+ url = url_downstream_post ,
318320 json = {
319321 "service_name" : "downstream" ,
320322 "entrypoint_name" : "hello_TYPO" ,
@@ -330,7 +332,7 @@ def test_call_service_multiple_cases(
330332 unique_name = str (uuid .uuid1 ())
331333 resp = requests .request (
332334 "POST" ,
333- url = url ,
335+ url = url_downstream_post ,
334336 json = {
335337 "service_name" : "downstream_TYPO" ,
336338 "entrypoint_name" : "hello" ,
@@ -342,6 +344,19 @@ def test_call_service_multiple_cases(
342344 upstream_logs = logs ("upstream" )
343345 assert "Not Found" in upstream_logs
344346
347+ # Call get method
348+ resp = requests .request (
349+ "POST" ,
350+ url = url_downstream_get ,
351+ json = {
352+ "service_name" : "downstream" ,
353+ },
354+ headers = headers ,
355+ )
356+
357+ assert resp .status_code == 200
358+ assert resp .json () == "Get - Got - Gotten"
359+
345360
346361def test_raised_notification_from_service_ends_up_at_manager (
347362 dummy_manager , cli_auth_login , services , headers
0 commit comments