Skip to content

Commit

Permalink
fix: removes v2 from the new public endpoint (#4089)
Browse files Browse the repository at this point in the history
* fix: removes v2 from the new public endpoint

* chore: dependencies file
  • Loading branch information
wolf4ood authored Apr 5, 2024
1 parent 7d57d06 commit 9035ee7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
import static jakarta.ws.rs.core.Response.Status.UNAUTHORIZED;
import static jakarta.ws.rs.core.Response.status;

@Path("/v2/{any:.*}")
@Path("{any:.*}")
@Produces(WILDCARD)
public class DataPlanePublicApiV2Controller implements DataPlanePublicApiV2 {

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,7 @@ void shouldStreamSourceToResponse() {
var request = requestCaptor.getValue();
assertThat(request.getDestinationDataAddress().getType()).isEqualTo(AsyncStreamingDataSink.TYPE);
assertThat(request.getSourceDataAddress().getType()).isEqualTo("test");
assertThat(request.getProperties()).containsEntry("method", "POST").containsEntry("pathSegments", "v2/any").containsEntry("queryParams", "foo=bar");
assertThat(request.getProperties()).containsEntry("method", "POST").containsEntry("pathSegments", "any").containsEntry("queryParams", "foo=bar");
}

@Override
Expand All @@ -171,7 +171,7 @@ protected Object controller() {

private RequestSpecification baseRequest() {
return given()
.baseUri("http://localhost:" + port + "/v2")
.baseUri("http://localhost:" + port)
.when();
}

Expand Down

0 comments on commit 9035ee7

Please sign in to comment.