This is an automated email from the ASF dual-hosted git repository.

adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git


The following commit(s) were added to refs/heads/master by this push:
     new e525a48768 HDDS-6872. TestAuthorizationV4QueryParser should pass 
offline (#3506)
e525a48768 is described below

commit e525a48768f2573a6418653455aceed3bfc8e229
Author: Maxim Myskov <[email protected]>
AuthorDate: Wed Jun 15 15:48:23 2022 +0400

    HDDS-6872. TestAuthorizationV4QueryParser should pass offline (#3506)
---
 .../ozone/s3/signature/TestAuthorizationV4QueryParser.java     | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git 
a/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/signature/TestAuthorizationV4QueryParser.java
 
b/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/signature/TestAuthorizationV4QueryParser.java
index 7396d68902..c67c107909 100644
--- 
a/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/signature/TestAuthorizationV4QueryParser.java
+++ 
b/hadoop-ozone/s3gateway/src/test/java/org/apache/hadoop/ozone/s3/signature/TestAuthorizationV4QueryParser.java
@@ -102,11 +102,11 @@ public class TestAuthorizationV4QueryParser {
     //passed
   }
 
-  @Test
   /**
-   * Based on https://docs.aws.amazon
-   * .com/AmazonS3/latest/API/sigv4-query-string-auth.html.
+   * Based on <a href="https://docs.aws.amazon.com
+   * /AmazonS3/latest/API/sigv4-query-string-auth.html">AWS example</a>.
    */
+  @Test
   public void testWithAWSExample() throws Exception {
 
     Map<String, String> queryParams = new HashMap<>();
@@ -131,7 +131,7 @@ public class TestAuthorizationV4QueryParser {
     final SignatureInfo signatureInfo = parser.parseSignature();
 
     LowerCaseKeyStringMap headers = new LowerCaseKeyStringMap();
-    headers.put("host", "examplebucket.s3.amazonaws.com");
+    headers.put("host", "localhost");
 
     final String stringToSign =
         StringToSignProducer.createSignatureBase(signatureInfo, "https", "GET",
@@ -142,7 +142,7 @@ public class TestAuthorizationV4QueryParser {
             + "20130524T000000Z\n"
             + "20130524/us-east-1/s3/aws4_request\n"
             +
-            "3bfa292879f6447bbcda7001decf97f4a54dc650c8942174ae0a9121cf58ad04",
+            "521c030411bb1ad61412d44aff2a1b0916e473d2dc275ada8e5569c16ecdee36",
         stringToSign);
   }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to