Skip to content

Commit

Permalink
Merge pull request quarkusio#34864 from radcortez/arquillian
Browse files Browse the repository at this point in the history
Use Quarkus path in Arquillian Servlet
  • Loading branch information
gastaldi authored Jul 24, 2023
2 parents 13ecb78 + ae39614 commit b0641d3
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,11 @@ public void execute(BuildContext context) {
URI uri = URI.create(testUri);
HTTPContext httpContext = new HTTPContext(uri.getHost(), uri.getPort());
// This is to work around https://github.com/arquillian/arquillian-core/issues/216
httpContext.add(new Servlet("dummy", "/"));
String path = uri.getPath();
if (path == null || path.isEmpty()) {
path = "/";
}
httpContext.add(new Servlet("dummy", path));
metadata.addContext(httpContext);
return metadata;
}
Expand Down

0 comments on commit b0641d3

Please sign in to comment.