Skip to content
Snippets Groups Projects
Unverified Commit 844422b3 authored by david-perez's avatar david-perez Committed by GitHub
Browse files

`aws-smithy-http-server`: remove S3-like URI pattern conflict avoidance test (#1070)

The previous commit introduced a failing test because CI doesn't have
Rust tests as a blocking step and auto-merge was enabled.

With the two operations:

1. `ListBuckets` with URI pattern `/`; and
2. `ListObjects` with URI pattern `/{bucket}`,

the test wants to route the request `/` to the first operation. However,
in #1029 we started allowing empty path segments. Since `ListBuckets`
has more weight than `ListObjects`, the request matches against it,
binding `""` to the `bucket` label.
parent 5a07828e
Branches
Tags
No related merge requests found
......@@ -362,14 +362,6 @@ mod tests {
),
"B2",
),
(
RequestSpec::from_parts(Method::GET, Vec::new(), Vec::new()),
"ListBuckets",
),
(
RequestSpec::from_parts(Method::GET, vec![PathSegment::Label], Vec::new()),
"ListObjects",
),
];
let mut router = Router::from_box_clone_service_iter(request_specs.into_iter().map(|(spec, svc_name)| {
......@@ -384,8 +376,6 @@ mod tests {
("A2", Method::GET, "/a/foo/a"),
("B1", Method::GET, "/b/foo/bar/baz"),
("B2", Method::GET, "/b/foo?q=baz"),
("ListBuckets", Method::GET, "/"),
("ListObjects", Method::GET, "/bucket"),
];
for (svc_name, method, uri) in &hits {
let mut res = router.call(req(method, uri)).await.unwrap();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment