File tree 1 file changed +15
-0
lines changed
1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change 21
21
" x-amz-content-sha256" " e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
22
22
" x-amz-date" " 20130524T000000Z" }}))))
23
23
24
+ (deftest canonical-request-hash
25
+ (is (= " 7344ae5b7ee6c3e7e6b0fe0640412a37625d1fbfff95c48bbb2dc43964946972"
26
+ (-> (str " GET\n "
27
+ " /test.txt\n "
28
+ " \n "
29
+ " host:examplebucket.s3.amazonaws.com\n "
30
+ " range:bytes=0-9\n "
31
+ " x-amz-content-sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855\n "
32
+ " x-amz-date:20130524T000000Z\n "
33
+ " \n "
34
+ " host;range;x-amz-content-sha256;x-amz-date\n "
35
+ " e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855" )
36
+ (sut/hash-sha256 )
37
+ (sut/hex-encode-str )))))
38
+
24
39
(deftest hashing-payloads
25
40
(testing " hashing an empty payload"
26
41
(is (= " e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
You can’t perform that action at this time.
0 commit comments