Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.5:Update
curl.36283
curl-aws_sigv4-verify-query-canonization.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File curl-aws_sigv4-verify-query-canonization.patch of Package curl.36283
From 656610160fa2a5cb65cba00aa64a75e1a8d69157 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg <daniel@haxx.se> Date: Thu, 7 Sep 2023 09:19:14 +0200 Subject: [PATCH] test439: verify query canonization for aws-sigv4 --- tests/data/Makefile.inc | 2 - tests/data/test439 | 58 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 59 insertions(+), 1 deletion(-) --- curl-8.0.1.orig/tests/data/Makefile.inc +++ curl-8.0.1/tests/data/Makefile.inc @@ -70,7 +70,7 @@ test399 test400 test401 test402 test403 test408 test409 test410 test411 test412 test413 test414 test415 test416 \ test417 test418 test419 test420 test421 test422 \ \ -test430 test431 test432 test433 test434 test435 test436 \ +test430 test431 test432 test433 test434 test435 test436 test439 \ \ test440 test441 test442 test443 test444 test445 test446 \ \ --- /dev/null +++ curl-8.0.1/tests/data/test439 @@ -0,0 +1,58 @@ +<testcase> +<info> +<keywords> +HTTP +aws-sigv4 +</keywords> +</info> + +# +# Server-side +<reply> +<data crlf="yes"> +HTTP/1.1 200 OK +Date: Tue, 09 Nov 2010 14:49:00 GMT +Server: test-server/fake +Last-Modified: Tue, 13 Jun 2000 12:10:00 GMT +ETag: "21025-dc7-39462498" +Accept-Ranges: bytes +Content-Length: 6 +Connection: close +Content-Type: text/html +Funny-head: yesyes + +-foo- +</data> +</reply> + +# +# Client-side +<client> +<server> +http +</server> +<features> +debug +</features> +<name> +aws-sigv4 with query +</name> +<command> +"http://fake.fake.fake:8000/%TESTNUMBER/?name=me%&aim=b%aad&weirdo=*.//-" -u user:secret --aws-sigv4 "aws:amz:us-east-2:es" --connect-to fake.fake.fake:8000:%HOSTIP:%HTTPPORT +</command> +</client> + +# +# Verify data after the test has been "shot" +<verify> +<protocol crlf="yes"> +GET /%TESTNUMBER/?name=me%&aim=b%aad&weirdo=*.//- HTTP/1.1 +Host: fake.fake.fake:8000 +Authorization: AWS4-HMAC-SHA256 Credential=user/19700101/us-east-2/es/aws4_request, SignedHeaders=host;x-amz-date, Signature=61376efa7adec25078f791a830dc3173d68e6c93799dd9a02046cf5092e2362a +X-Amz-Date: 19700101T000000Z +User-Agent: curl/%VERSION +Accept: */* + +</protocol> +</verify> +</testcase>
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor