@@ -72,12 +72,12 @@ mod integration_tests {
7272 let spin = env. runtime_mut ( ) ;
7373 assert_spin_request (
7474 spin,
75- Request :: new ( Method :: Get , "/test/ hello" ) ,
75+ Request :: new ( Method :: Get , "/hello" ) ,
7676 Response :: new_with_body ( 200 , "I'm a teapot" ) ,
7777 ) ?;
7878 assert_spin_request (
7979 spin,
80- Request :: new ( Method :: Get , "/test/ hello/wildcards/should/be/handled" ) ,
80+ Request :: new ( Method :: Get , "/hello/wildcards/should/be/handled" ) ,
8181 Response :: new_with_body ( 200 , "I'm a teapot" ) ,
8282 ) ?;
8383 assert_spin_request (
@@ -87,7 +87,7 @@ mod integration_tests {
8787 ) ?;
8888 assert_spin_request (
8989 spin,
90- Request :: new ( Method :: Get , "/test/ hello/test-placement" ) ,
90+ Request :: new ( Method :: Get , "/hello/test-placement" ) ,
9191 Response :: new_with_body ( 200 , "text for test" ) ,
9292 )
9393 } ,
@@ -183,7 +183,7 @@ mod integration_tests {
183183 let spin = env. runtime_mut ( ) ;
184184 assert_spin_request (
185185 spin,
186- Request :: new ( Method :: Get , "/test/ hello" ) ,
186+ Request :: new ( Method :: Get , "/hello" ) ,
187187 Response :: new_with_body ( 200 , "Hello, Fermyon!\n " ) ,
188188 ) ?;
189189
@@ -368,13 +368,13 @@ Caused by:
368368 let spin = env. runtime_mut ( ) ;
369369 assert_spin_request (
370370 spin,
371- Request :: new ( Method :: Get , "/test/ outbound-allowed" ) ,
371+ Request :: new ( Method :: Get , "/outbound-allowed" ) ,
372372 Response :: new_with_body ( 200 , "Hello, Fermyon!\n " ) ,
373373 ) ?;
374374
375375 assert_spin_request (
376376 spin,
377- Request :: new ( Method :: Get , "/test/ outbound-not-allowed" ) ,
377+ Request :: new ( Method :: Get , "/outbound-not-allowed" ) ,
378378 Response :: new_with_body (
379379 500 ,
380380 "Error::UnexpectedError(\" ErrorCode::HttpRequestDenied\" )" ,
@@ -421,14 +421,14 @@ Caused by:
421421 Response :: new_with_body ( expected_status, expected_body) ,
422422 )
423423 } ;
424- ensure_success ( "/test/ hello" , 200 , "I'm a teapot" ) ?;
424+ ensure_success ( "/hello" , 200 , "I'm a teapot" ) ?;
425425 ensure_success (
426- "/test/ hello/wildcards/should/be/handled" ,
426+ "/hello/wildcards/should/be/handled" ,
427427 200 ,
428428 "I'm a teapot" ,
429429 ) ?;
430430 ensure_success ( "/thisshouldfail" , 404 , "" ) ?;
431- ensure_success ( "/test/ hello/test-placement" , 200 , "text for test" ) ?;
431+ ensure_success ( "/hello/test-placement" , 200 , "text for test" ) ?;
432432 Ok ( ( ) )
433433 } ,
434434 ) ?;
@@ -1255,14 +1255,14 @@ route = "/..."
12551255 let spin = env. runtime_mut ( ) ;
12561256 assert_spin_request (
12571257 spin,
1258- Request :: full ( Method :: Get , "/base/ echo" , & [ ] , Some ( "Echo..." ) ) ,
1258+ Request :: full ( Method :: Get , "/echo" , & [ ] , Some ( "Echo..." ) ) ,
12591259 Response :: new_with_body ( 200 , "Echo..." ) ,
12601260 ) ?;
12611261 assert_spin_request (
12621262 spin,
12631263 Request :: full (
12641264 Method :: Get ,
1265- "/base/ assert-headers?k=v" ,
1265+ "/assert-headers?k=v" ,
12661266 & [ ( "X-Custom-Foo" , "bar" ) ] ,
12671267 Some ( r#"{"x-custom-foo": "bar"}"# ) ,
12681268 ) ,
@@ -1288,24 +1288,24 @@ route = "/..."
12881288 let spin = env. runtime_mut ( ) ;
12891289 assert_spin_request (
12901290 spin,
1291- Request :: full ( Method :: Get , "/base/ echo" , & [ ] , Some ( "Echo..." ) ) ,
1291+ Request :: full ( Method :: Get , "/echo" , & [ ] , Some ( "Echo..." ) ) ,
12921292 Response :: new_with_body ( 200 , "Echo..." ) ,
12931293 ) ?;
12941294 assert_spin_request (
12951295 spin,
12961296 Request :: full (
12971297 Method :: Get ,
1298- "/base/ assert-args?x=y" ,
1298+ "/assert-args?x=y" ,
12991299 & [ ] ,
1300- Some ( r#"["/base/ assert-args", "x=y"]"# ) ,
1300+ Some ( r#"["/assert-args", "x=y"]"# ) ,
13011301 ) ,
13021302 Response :: new ( 200 ) ,
13031303 ) ?;
13041304 assert_spin_request (
13051305 spin,
13061306 Request :: full (
13071307 Method :: Get ,
1308- "/base/ assert-env" ,
1308+ "/assert-env" ,
13091309 & [ ( "X-Custom-Foo" , "bar" ) ] ,
13101310 Some ( r#"{"HTTP_X_CUSTOM_FOO": "bar"}"# ) ,
13111311 ) ,
@@ -1464,7 +1464,7 @@ route = "/..."
14641464 spin,
14651465 Request :: full (
14661466 Method :: Get ,
1467- "/test/ outbound-allowed/hello" ,
1467+ "/outbound-allowed/hello" ,
14681468 & [ ( "Host" , "google.com" ) ] ,
14691469 Some ( "" ) ,
14701470 ) ,
0 commit comments