fix review findings

This commit is contained in:
Eduard Heimbuch
2020-09-24 10:43:54 +02:00
parent b424bc8ff0
commit 23581e780d
3 changed files with 3 additions and 2 deletions

View File

@@ -75,7 +75,7 @@ public class ReleaseVersionChecker {
return latestRelease;
}
// we cache that no new version was available to prevent request every time
LOG.info("No newer version found for SCM-Manager");
LOG.debug("No newer version found for SCM-Manager");
cache.put(CACHE_KEY, Optional.empty());
return Optional.empty();
}

View File

@@ -63,6 +63,7 @@ public class AdminInfoResource {
@Produces(VndMediaType.ADMIN_INFO)
@Operation(summary = "Returns release info.", description = "Returns information about the latest release if a newer version of SCM-Manager is available.", tags = "AdminInfo")
@ApiResponse(responseCode = "200", description = "success")
@ApiResponse(responseCode = "204", description = "no newer version was found")
@ApiResponse(responseCode = "401", description = "not authenticated / invalid credentials")
@ApiResponse(
responseCode = "500",

View File

@@ -57,6 +57,6 @@ class UpdateInfoMapperTest {
assertThat(dto.getLink()).isEqualTo(updateInfo.getLink());
assertThat(dto.getLatestVersion()).isEqualTo(updateInfo.getLatestVersion());
assertThat(dto.getLinks().getLinkBy("self").get().getHref()).isEqualTo("https://hitchhiker.com/scm/updateInfo");
assertThat(dto.getLinks().getLinkBy("self").get().getHref()).isEqualTo("https://hitchhiker.com/scm/v2/updateInfo");
}
}