From 08885cf90d4970f02e0655309f2a2e4046ad78b2 Mon Sep 17 00:00:00 2001 From: Corneil du Plessis Date: Thu, 17 Oct 2024 13:15:45 +0200 Subject: [PATCH] Removed logging statements from test controller. --- .../support/S3SignedRedirectRequestController.java | 5 ----- 1 file changed, 5 deletions(-) diff --git a/spring-cloud-dataflow-configuration-metadata/src/test/java/org/springframework/cloud/dataflow/container/registry/authorization/support/S3SignedRedirectRequestController.java b/spring-cloud-dataflow-configuration-metadata/src/test/java/org/springframework/cloud/dataflow/container/registry/authorization/support/S3SignedRedirectRequestController.java index 3762c0ab76..52ad13de12 100644 --- a/spring-cloud-dataflow-configuration-metadata/src/test/java/org/springframework/cloud/dataflow/container/registry/authorization/support/S3SignedRedirectRequestController.java +++ b/spring-cloud-dataflow-configuration-metadata/src/test/java/org/springframework/cloud/dataflow/container/registry/authorization/support/S3SignedRedirectRequestController.java @@ -39,7 +39,6 @@ */ @RestController public class S3SignedRedirectRequestController { - private final static Logger logger = LoggerFactory.getLogger(S3SignedRedirectRequestController.class); @RequestMapping("/service/token") public ResponseEntity> getToken() { @@ -57,7 +56,6 @@ public ResponseEntity getManifests(@RequestHeader("Authorization") Str @RequestMapping("/v2/test/s3-redirect-image/blobs/signed_redirect_digest") public ResponseEntity> getBlobRedirect(@RequestHeader("Authorization") String token) { if (!"bearer my_token_999".equals(token.trim().toLowerCase())) { - logger.info("getBlobRedirect=BAD_REQUEST"); return new ResponseEntity<>(HttpStatus.BAD_REQUEST); } HttpHeaders redirectHeaders = new HttpHeaders(); @@ -68,15 +66,12 @@ public ResponseEntity> getBlobRedirect(@RequestHeader("Autho "&X-Amz-Expires=1200" + "&X-Amz-SignedHeaders=host" + "&X-Amz-Signature=test"); - logger.info("getBlobRedirect:{}", redirectHeaders); return new ResponseEntity<>(redirectHeaders, HttpStatus.TEMPORARY_REDIRECT); } @RequestMapping("/test/docker/registry/v2/blobs/test/data") public ResponseEntity getSignedBlob(@RequestHeader Map headers) { - logger.info("getSignedBlob:{}", headers); if (headers.containsKey("authorization")) { - logger.info("getSignedBlob=BAD_REQUEST"); return new ResponseEntity<>(HttpStatus.BAD_REQUEST); } return buildFromString("{\"config\": {\"Labels\": {\"foo\": \"bar\"} } }");