Skip to content

Commit

Permalink
Use Quarkus path in Arquillian Servlet
Browse files Browse the repository at this point in the history
  • Loading branch information
radcortez committed Jul 19, 2023
1 parent 4f843d5 commit ae39614
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 ae39614

Please sign in to comment.