You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
match_pattern should print the matching route url/path, in this case: "/hello/{name}" match_name should print the given name to the service, in this case: "greet"
Current Behavior
Both match_pattern and match_name returns None.
Context
We can use these functions to test if the user has registered the services in the correct order as he/she intended and the user requests are in fact routing to correct handlers.
Currently, if user had registered the greet service before greet_me service and a user sends the request to /hello/me it will send "Hello me!`` whereas it should have returned "Hi Developer!".
That's what we wanted to test, Additional Context: qdrant/qdrant#3547.
Your Environment
Rust Version: rustc 1.75.0 (82e1608df 2023-12-21)
Actix Web Version: 4
The text was updated successfully, but these errors were encountered:
So currently the test requests does not seem to implement the match functions -
match_pattern
/match_name
.Consider the below app having two services:
And a test like this:
Expected Behavior
match_pattern
should print the matching route url/path, in this case: "/hello/{name}"match_name
should print the given name to the service, in this case: "greet"Current Behavior
Both
match_pattern
andmatch_name
returns None.Context
We can use these functions to test if the user has registered the services in the correct order as he/she intended and the user requests are in fact routing to correct handlers.
Currently, if user had registered the
greet
service beforegreet_me
service and a user sends the request to/hello/me
it will send"Hello me!`` whereas it should have returned
"Hi Developer!".That's what we wanted to test, Additional Context: qdrant/qdrant#3547.
Your Environment
The text was updated successfully, but these errors were encountered: