Skip to content

Commit

Permalink
Fix build. No idea why this other overlaod is broken.
Browse files Browse the repository at this point in the history
(wip @ 96a7efc)
  • Loading branch information
hiddenalpha committed Jun 30, 2023
1 parent 67f673e commit d036b62
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
1 change: 1 addition & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:
build_maven:
runs-on: ubuntu-latest
timeout-minutes: 30

steps:
- uses: actions/checkout@v3
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ private void makeStorageExpandRequest(final String targetUri, final List subReso
Logger log = RequestLoggerFactory.getLogger(ExpansionHandler.class, req);
HttpMethod reqMethod = HttpMethod.POST;
String reqUri = targetUri + "?storageExpand=true";
httpClient.request(reqMethod, reqUri, asyncResult -> {
httpClient.request(reqMethod, reqUri).onComplete(asyncResult -> {

Check warning on line 505 in gateleen-expansion/src/main/java/org/swisspush/gateleen/expansion/ExpansionHandler.java

View check run for this annotation

Codecov / codecov/patch

gateleen-expansion/src/main/java/org/swisspush/gateleen/expansion/ExpansionHandler.java#L503-L505

Added lines #L503 - L505 were not covered by tests
if (asyncResult.failed()) {
log.warn("Failed request to {}: {}", targetUri + "?storageExpand=true", asyncResult.cause());
return;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -504,22 +504,25 @@ public boolean handle(final RoutingContext ctx) {
/*
* 1) Un- / Register Listener / Routes
*/
if (request.method() == PUT) {
if (request.uri().contains(HOOKS_LISTENERS_URI_PART)) {
var requestMethod = request.method();
if (requestMethod == PUT) {
var requestUri = request.uri();
if (requestUri.contains(HOOKS_LISTENERS_URI_PART)) {
handleListenerRegistration(request);
return true;
}
if (request.uri().contains(HOOKS_ROUTE_URI_PART)) {
if (requestUri.contains(HOOKS_ROUTE_URI_PART)) {
handleRouteRegistration(request);
return true;
}
}
if (request.method() == DELETE) {
if (request.uri().contains(HOOKS_LISTENERS_URI_PART)) {
if (requestMethod == DELETE) {
var requestUri = request.uri();

Check warning on line 520 in gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java

View check run for this annotation

Codecov / codecov/patch

gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java#L520

Added line #L520 was not covered by tests
if (requestUri.contains(HOOKS_LISTENERS_URI_PART)) {
handleListenerUnregistration(request);
return true;

Check warning on line 523 in gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java

View check run for this annotation

Codecov / codecov/patch

gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java#L522-L523

Added lines #L522 - L523 were not covered by tests
}
if (request.uri().contains(HOOKS_ROUTE_URI_PART)) {
if (requestUri.contains(HOOKS_ROUTE_URI_PART)) {
handleRouteUnregistration(request);
return true;

Check warning on line 527 in gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java

View check run for this annotation

Codecov / codecov/patch

gateleen-hook/src/main/java/org/swisspush/gateleen/hook/HookHandler.java#L526-L527

Added lines #L526 - L527 were not covered by tests
}
Expand Down

0 comments on commit d036b62

Please sign in to comment.