pax_global_header00006660000000000000000000000064145221733720014520gustar00rootroot0000000000000052 comment=ecd1dab14db2239b8f6f3ef16772def6535e8031 libwebservice-s3-tiny-perl-0.003/000077500000000000000000000000001452217337200166135ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/Build.PL000066400000000000000000000002651452217337200201120ustar00rootroot00000000000000# This Build.PL for WebService-S3-Tiny was generated by Dist::Zilla::Plugin::ModuleBuildTiny 0.015. use strict; use warnings; use 5.014; use Module::Build::Tiny 0.034; Build_PL(); libwebservice-s3-tiny-perl-0.003/Changes000066400000000000000000000002761452217337200201130ustar00rootroot000000000000000.003 2018-06-18 - Add signed_url and related *_url method variants 0.002 2018-05-16 - Bump HTTP::Tiny because of using www_form_urlencode(). 0.001 2018-04-04 - Initial release. libwebservice-s3-tiny-perl-0.003/LICENSE000066400000000000000000000436631452217337200176340ustar00rootroot00000000000000This software is copyright (c) 2018 by CV-Library Ltd. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. Terms of the Perl programming language system itself a) the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version, or b) the "Artistic License" --- The GNU General Public License, Version 1, February 1989 --- This software is Copyright (c) 2018 by CV-Library Ltd. This is free software, licensed under: The GNU General Public License, Version 1, February 1989 GNU GENERAL PUBLIC LICENSE Version 1, February 1989 Copyright (C) 1989 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The license agreements of most software companies try to keep users at the mercy of those companies. By contrast, our General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. The General Public License applies to the Free Software Foundation's software and to any other program whose authors commit to using it. You can use it for your programs, too. When we speak of free software, we are referring to freedom, not price. Specifically, the General Public License is designed to make sure that you have the freedom to give away or sell copies of free software, that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of a such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must tell them their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License Agreement applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any work containing the Program or a portion of it, either verbatim or with modifications. Each licensee is addressed as "you". 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this General Public License and to the absence of any warranty; and give any other recipients of the Program a copy of this General Public License along with the Program. You may charge a fee for the physical act of transferring a copy. 2. You may modify your copy or copies of the Program or any portion of it, and copy and distribute such modifications under the terms of Paragraph 1 above, provided that you also do the following: a) cause the modified files to carry prominent notices stating that you changed the files and the date of any change; and b) cause the whole of any work that you distribute or publish, that in whole or in part contains the Program or any part thereof, either with or without modifications, to be licensed at no charge to all third parties under the terms of this General Public License (except that you may choose to grant warranty protection to some or all third parties, at your option). c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the simplest and most usual way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this General Public License. d) You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. Mere aggregation of another independent work with the Program (or its derivative) on a volume of a storage or distribution medium does not bring the other work under the scope of these terms. 3. You may copy and distribute the Program (or a portion or derivative of it, under Paragraph 2) in object code or executable form under the terms of Paragraphs 1 and 2 above provided that you also do one of the following: a) accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Paragraphs 1 and 2 above; or, b) accompany it with a written offer, valid for at least three years, to give any third party free (except for a nominal charge for the cost of distribution) a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Paragraphs 1 and 2 above; or, c) accompany it with the information you received as to where the corresponding source code may be obtained. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form alone.) Source code for a work means the preferred form of the work for making modifications to it. For an executable file, complete source code means all the source code for all modules it contains; but, as a special exception, it need not include source code for modules which are standard libraries that accompany the operating system on which the executable file runs, or for standard header files or definitions files that accompany that operating system. 4. You may not copy, modify, sublicense, distribute or transfer the Program except as expressly provided under this General Public License. Any attempt otherwise to copy, modify, sublicense, distribute or transfer the Program is void, and will automatically terminate your rights to use the Program under this License. However, parties who have received copies, or rights to use copies, from you under this General Public License will not have their licenses terminated so long as such parties remain in full compliance. 5. By copying, distributing or modifying the Program (or any work based on the Program) you indicate your acceptance of this license to do so, and all its terms and conditions. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. 7. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of the license which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of the license, you may choose any version ever published by the Free Software Foundation. 8. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 9. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 10. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS Appendix: How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to humanity, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. Copyright (C) 19yy This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 1, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301 USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) 19xx name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (a program to direct compilers to make passes at assemblers) written by James Hacker. , 1 April 1989 Ty Coon, President of Vice That's all there is to it! --- The Artistic License 1.0 --- This software is Copyright (c) 2018 by CV-Library Ltd. This is free software, licensed under: The Artistic License 1.0 The Artistic License Preamble The intent of this document is to state the conditions under which a Package may be copied, such that the Copyright Holder maintains some semblance of artistic control over the development of the package, while giving the users of the package the right to use and distribute the Package in a more-or-less customary fashion, plus the right to make reasonable modifications. Definitions: - "Package" refers to the collection of files distributed by the Copyright Holder, and derivatives of that collection of files created through textual modification. - "Standard Version" refers to such a Package if it has not been modified, or has been modified in accordance with the wishes of the Copyright Holder. - "Copyright Holder" is whoever is named in the copyright or copyrights for the package. - "You" is you, if you're thinking about copying or distributing this Package. - "Reasonable copying fee" is whatever you can justify on the basis of media cost, duplication charges, time of people involved, and so on. (You will not be required to justify it to the Copyright Holder, but only to the computing community at large as a market that must bear the fee.) - "Freely Available" means that no fee is charged for the item itself, though there may be fees involved in handling the item. It also means that recipients of the item may redistribute it under the same conditions they received it. 1. You may make and give away verbatim copies of the source form of the Standard Version of this Package without restriction, provided that you duplicate all of the original copyright notices and associated disclaimers. 2. You may apply bug fixes, portability fixes and other modifications derived from the Public Domain or from the Copyright Holder. A Package modified in such a way shall still be considered the Standard Version. 3. You may otherwise modify your copy of this Package in any way, provided that you insert a prominent notice in each changed file stating how and when you changed that file, and provided that you do at least ONE of the following: a) place your modifications in the Public Domain or otherwise make them Freely Available, such as by posting said modifications to Usenet or an equivalent medium, or placing the modifications on a major archive site such as ftp.uu.net, or by allowing the Copyright Holder to include your modifications in the Standard Version of the Package. b) use the modified Package only within your corporation or organization. c) rename any non-standard executables so the names do not conflict with standard executables, which must also be provided, and provide a separate manual page for each non-standard executable that clearly documents how it differs from the Standard Version. d) make other distribution arrangements with the Copyright Holder. 4. You may distribute the programs of this Package in object code or executable form, provided that you do at least ONE of the following: a) distribute a Standard Version of the executables and library files, together with instructions (in the manual page or equivalent) on where to get the Standard Version. b) accompany the distribution with the machine-readable source of the Package with your modifications. c) accompany any non-standard executables with their corresponding Standard Version executables, giving the non-standard executables non-standard names, and clearly documenting the differences in manual pages (or equivalent), together with instructions on where to get the Standard Version. d) make other distribution arrangements with the Copyright Holder. 5. You may charge a reasonable copying fee for any distribution of this Package. You may charge any fee you choose for support of this Package. You may not charge a fee for this Package itself. However, you may distribute this Package in aggregate with other (possibly commercial) programs as part of a larger (possibly commercial) software distribution provided that you do not advertise this Package as a product of your own. 6. The scripts and library files supplied as input to or produced as output from the programs of this Package do not automatically fall under the copyright of this Package, but belong to whomever generated them, and may be sold commercially, and may be aggregated with this Package. 7. C or perl subroutines supplied by you and linked into this Package shall not be considered part of this Package. 8. The name of the Copyright Holder may not be used to endorse or promote products derived from this software without specific prior written permission. 9. THIS PACKAGE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE. The End libwebservice-s3-tiny-perl-0.003/MANIFEST000066400000000000000000000177271452217337200177620ustar00rootroot00000000000000# This file was automatically generated by Dist::Zilla::Plugin::Manifest v6.010. Build.PL Changes LICENSE MANIFEST META.json META.yml Makefile.PL README docker-compose.yml lib/WebService/S3/Tiny.pm lib/WebService/S3/Tiny.pod run-xt t/aws.t t/aws/LICENSE t/aws/NOTICE t/aws/get-header-key-duplicate/get-header-key-duplicate.authz t/aws/get-header-key-duplicate/get-header-key-duplicate.creq t/aws/get-header-key-duplicate/get-header-key-duplicate.req t/aws/get-header-key-duplicate/get-header-key-duplicate.sreq t/aws/get-header-key-duplicate/get-header-key-duplicate.sts t/aws/get-header-value-multiline/get-header-value-multiline.authz t/aws/get-header-value-multiline/get-header-value-multiline.creq t/aws/get-header-value-multiline/get-header-value-multiline.req t/aws/get-header-value-multiline/get-header-value-multiline.sreq t/aws/get-header-value-multiline/get-header-value-multiline.sts t/aws/get-header-value-order/get-header-value-order.authz t/aws/get-header-value-order/get-header-value-order.creq t/aws/get-header-value-order/get-header-value-order.req t/aws/get-header-value-order/get-header-value-order.sreq t/aws/get-header-value-order/get-header-value-order.sts t/aws/get-header-value-trim/get-header-value-trim.authz t/aws/get-header-value-trim/get-header-value-trim.creq t/aws/get-header-value-trim/get-header-value-trim.req t/aws/get-header-value-trim/get-header-value-trim.sreq t/aws/get-header-value-trim/get-header-value-trim.sts t/aws/get-relative-relative/get-relative-relative.authz t/aws/get-relative-relative/get-relative-relative.creq t/aws/get-relative-relative/get-relative-relative.req t/aws/get-relative-relative/get-relative-relative.sreq t/aws/get-relative-relative/get-relative-relative.sts t/aws/get-relative/get-relative.authz t/aws/get-relative/get-relative.creq t/aws/get-relative/get-relative.req t/aws/get-relative/get-relative.sreq t/aws/get-relative/get-relative.sts t/aws/get-slash-dot-slash/get-slash-dot-slash.authz t/aws/get-slash-dot-slash/get-slash-dot-slash.creq t/aws/get-slash-dot-slash/get-slash-dot-slash.req t/aws/get-slash-dot-slash/get-slash-dot-slash.sreq t/aws/get-slash-dot-slash/get-slash-dot-slash.sts t/aws/get-slash-pointless-dot/get-slash-pointless-dot.authz t/aws/get-slash-pointless-dot/get-slash-pointless-dot.creq t/aws/get-slash-pointless-dot/get-slash-pointless-dot.req t/aws/get-slash-pointless-dot/get-slash-pointless-dot.sreq t/aws/get-slash-pointless-dot/get-slash-pointless-dot.sts t/aws/get-slash/get-slash.authz t/aws/get-slash/get-slash.creq t/aws/get-slash/get-slash.req t/aws/get-slash/get-slash.sreq t/aws/get-slash/get-slash.sts t/aws/get-slashes/get-slashes.authz t/aws/get-slashes/get-slashes.creq t/aws/get-slashes/get-slashes.req t/aws/get-slashes/get-slashes.sreq t/aws/get-slashes/get-slashes.sts t/aws/get-space/get-space.authz t/aws/get-space/get-space.creq t/aws/get-space/get-space.req t/aws/get-space/get-space.sreq t/aws/get-space/get-space.sts t/aws/get-unreserved/get-unreserved.authz t/aws/get-unreserved/get-unreserved.creq t/aws/get-unreserved/get-unreserved.req t/aws/get-unreserved/get-unreserved.sreq t/aws/get-unreserved/get-unreserved.sts t/aws/get-utf8/get-utf8.authz t/aws/get-utf8/get-utf8.creq t/aws/get-utf8/get-utf8.req t/aws/get-utf8/get-utf8.sreq t/aws/get-utf8/get-utf8.sts t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.authz t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.creq t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.req t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.sreq t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.sts t/aws/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.authz t/aws/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.creq t/aws/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.req t/aws/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.sreq t/aws/get-vanilla-query-order-key-case/get-vanilla-query-order-key-case.sts t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.authz t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.creq t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.req t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.sreq t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.sts t/aws/get-vanilla-query-order-value/get-vanilla-query-order-value.authz t/aws/get-vanilla-query-order-value/get-vanilla-query-order-value.creq t/aws/get-vanilla-query-order-value/get-vanilla-query-order-value.req t/aws/get-vanilla-query-order-value/get-vanilla-query-order-value.sreq t/aws/get-vanilla-query-order-value/get-vanilla-query-order-value.sts t/aws/get-vanilla-query-unreserved/get-vanilla-query-unreserved.authz t/aws/get-vanilla-query-unreserved/get-vanilla-query-unreserved.creq t/aws/get-vanilla-query-unreserved/get-vanilla-query-unreserved.req t/aws/get-vanilla-query-unreserved/get-vanilla-query-unreserved.sreq t/aws/get-vanilla-query-unreserved/get-vanilla-query-unreserved.sts t/aws/get-vanilla-query/get-vanilla-query.authz t/aws/get-vanilla-query/get-vanilla-query.creq t/aws/get-vanilla-query/get-vanilla-query.req t/aws/get-vanilla-query/get-vanilla-query.sreq t/aws/get-vanilla-query/get-vanilla-query.sts t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.authz t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.creq t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.req t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.sreq t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.sts t/aws/get-vanilla/get-vanilla.authz t/aws/get-vanilla/get-vanilla.creq t/aws/get-vanilla/get-vanilla.req t/aws/get-vanilla/get-vanilla.sreq t/aws/get-vanilla/get-vanilla.sts t/aws/post-header-key-case/post-header-key-case.authz t/aws/post-header-key-case/post-header-key-case.creq t/aws/post-header-key-case/post-header-key-case.req t/aws/post-header-key-case/post-header-key-case.sreq t/aws/post-header-key-case/post-header-key-case.sts t/aws/post-header-key-sort/post-header-key-sort.authz t/aws/post-header-key-sort/post-header-key-sort.creq t/aws/post-header-key-sort/post-header-key-sort.req t/aws/post-header-key-sort/post-header-key-sort.sreq t/aws/post-header-key-sort/post-header-key-sort.sts t/aws/post-header-value-case/post-header-value-case.authz t/aws/post-header-value-case/post-header-value-case.creq t/aws/post-header-value-case/post-header-value-case.req t/aws/post-header-value-case/post-header-value-case.sreq t/aws/post-header-value-case/post-header-value-case.sts t/aws/post-vanilla-empty-query-value/post-vanilla-empty-query-value.authz t/aws/post-vanilla-empty-query-value/post-vanilla-empty-query-value.creq t/aws/post-vanilla-empty-query-value/post-vanilla-empty-query-value.req t/aws/post-vanilla-empty-query-value/post-vanilla-empty-query-value.sreq t/aws/post-vanilla-empty-query-value/post-vanilla-empty-query-value.sts t/aws/post-vanilla-query/post-vanilla-query.authz t/aws/post-vanilla-query/post-vanilla-query.creq t/aws/post-vanilla-query/post-vanilla-query.req t/aws/post-vanilla-query/post-vanilla-query.sreq t/aws/post-vanilla-query/post-vanilla-query.sts t/aws/post-vanilla/post-vanilla.authz t/aws/post-vanilla/post-vanilla.creq t/aws/post-vanilla/post-vanilla.req t/aws/post-vanilla/post-vanilla.sreq t/aws/post-vanilla/post-vanilla.sts t/aws/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.authz t/aws/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.creq t/aws/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.req t/aws/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.sreq t/aws/post-x-www-form-urlencoded-parameters/post-x-www-form-urlencoded-parameters.sts t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.authz t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.creq t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.req t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.sreq t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.sts t/lowercase-headers.t t/methods.t t/signed_url.t xt/all.t libwebservice-s3-tiny-perl-0.003/META.json000066400000000000000000000027771452217337200202510ustar00rootroot00000000000000{ "abstract" : "Perl module for using S3 or compatible APIs", "author" : [ "James Raspass " ], "dynamic_config" : 0, "generated_by" : "Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010", "license" : [ "perl_5" ], "meta-spec" : { "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec", "version" : 2 }, "name" : "WebService-S3-Tiny", "prereqs" : { "configure" : { "requires" : { "Module::Build::Tiny" : "0.034" } }, "develop" : { "requires" : { "Socket" : "0", "Test::More" : "0" } }, "runtime" : { "requires" : { "HTTP::Tiny" : "0.014", "perl" : "5.014" } }, "test" : { "requires" : { "HTTP::Request" : "0", "perl" : "5.014" } } }, "provides" : { "WebService::S3::Tiny" : { "file" : "lib/WebService/S3/Tiny.pm", "version" : "0.003" } }, "release_status" : "stable", "resources" : { "bugtracker" : { "web" : "https://github.com/cv-library/WebService-S3-Tiny/issues" }, "repository" : { "type" : "git", "url" : "git://github.com/cv-library/WebService-S3-Tiny.git", "web" : "https://github.com/cv-library/WebService-S3-Tiny" } }, "version" : "0.003", "x_serialization_backend" : "Cpanel::JSON::XS version 3.0217" } libwebservice-s3-tiny-perl-0.003/META.yml000066400000000000000000000014441452217337200200670ustar00rootroot00000000000000--- abstract: 'Perl module for using S3 or compatible APIs' author: - 'James Raspass ' build_requires: HTTP::Request: '0' perl: '5.014' configure_requires: Module::Build::Tiny: '0.034' dynamic_config: 0 generated_by: 'Dist::Zilla version 6.010, CPAN::Meta::Converter version 2.150010' license: perl meta-spec: url: http://module-build.sourceforge.net/META-spec-v1.4.html version: '1.4' name: WebService-S3-Tiny provides: WebService::S3::Tiny: file: lib/WebService/S3/Tiny.pm version: '0.003' requires: HTTP::Tiny: '0.014' perl: '5.014' resources: bugtracker: https://github.com/cv-library/WebService-S3-Tiny/issues repository: git://github.com/cv-library/WebService-S3-Tiny.git version: '0.003' x_serialization_backend: 'YAML::Tiny version 1.70' libwebservice-s3-tiny-perl-0.003/Makefile.PL000066400000000000000000000002111452217337200205570ustar00rootroot00000000000000use ExtUtils::MakeMaker; WriteMakefile( NAME => 'WebService::S3::Tiny', VERSION_FROM => 'lib/WebService/S3/Tiny.pm', ); libwebservice-s3-tiny-perl-0.003/README000066400000000000000000000006041452217337200174730ustar00rootroot00000000000000 This archive contains the distribution WebService-S3-Tiny, version 0.003: Perl module for using S3 or compatible APIs This software is copyright (c) 2018 by CV-Library Ltd. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. This README file was generated by Dist::Zilla::Plugin::Readme v6.010. libwebservice-s3-tiny-perl-0.003/docker-compose.yml000066400000000000000000000007251452217337200222540ustar00rootroot00000000000000version: '2' services: minio: command: - server - /tmp environment: MINIO_ACCESS_KEY: access_key MINIO_SECRET_KEY: secret_key image: minio/minio logging: driver: none tmpfs: /tmp test: command: - prove - -lv - xt depends_on: - minio image: perl:5.26 volumes: - .:/root libwebservice-s3-tiny-perl-0.003/lib/000077500000000000000000000000001452217337200173615ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/lib/WebService/000077500000000000000000000000001452217337200214175ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/lib/WebService/S3/000077500000000000000000000000001452217337200217045ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/lib/WebService/S3/Tiny.pm000066400000000000000000000142011452217337200231630ustar00rootroot00000000000000package WebService::S3::Tiny 0.003; use strict; use warnings; use Carp; use Digest::SHA qw/hmac_sha256 hmac_sha256_hex sha256_hex/; use HTTP::Tiny 0.014; my %url_enc = map { chr, sprintf '%%%02X', $_ } 0..255; sub new { my ( $class, %args ) = @_; $args{access_key} // croak '"access_key" is required'; $args{host} // croak '"host" is required'; $args{region} //= 'us-east-1'; $args{secret_key} // croak '"secret_key" is requried'; $args{service} //= 's3'; $args{ua} //= HTTP::Tiny->new; bless \%args, $class; } sub delete_bucket { $_[0]->request( 'DELETE', $_[1], undef, undef, $_[2] ) } sub get_bucket { $_[0]->request( 'GET', $_[1], undef, undef, $_[2], $_[3] ) } sub head_bucket { $_[0]->request( 'HEAD', $_[1], undef, undef, $_[2] ) } sub put_bucket { $_[0]->request( 'PUT', $_[1], undef, undef, $_[2] ) } sub delete_object { $_[0]->request( 'DELETE', $_[1], $_[2], undef, $_[3] ) } sub get_object { $_[0]->request( 'GET', $_[1], $_[2], undef, $_[3], $_[4] ) } sub head_object { $_[0]->request( 'HEAD', $_[1], $_[2], undef, $_[3] ) } sub put_object { $_[0]->request( 'PUT', $_[1], $_[2], $_[3], $_[4] ) } sub request { my ( $self, $method, $bucket, $object, $content, $headers, $query ) = @_; $headers //= {}; # Lowercase header keys. %$headers = map { lc, $headers->{$_} } keys %$headers; $query = HTTP::Tiny->www_form_urlencode( $query // {} ); $headers->{host} = $self->{host} =~ s|^https?://||r; # Prefer user supplied checksums. my $sha = $headers->{'x-amz-content-sha256'} //= sha256_hex $content // ''; my ( $path, $time, $date, $cred_scope ) = $self->_common_prep( $bucket, $object ); $headers->{'x-amz-date'} = $time; my $signed_headers = join ';', sort keys %$headers; my $creq = $self->_make_canonical_request( $method, $path, $query, $headers, $signed_headers, $sha ); my $sig = $self->_sign_request( $creq, $time, $cred_scope ); $headers->{authorization} = join( ', ', "AWS4-HMAC-SHA256 Credential=$self->{access_key}/$cred_scope", "SignedHeaders=$signed_headers", "Signature=$sig", ); # HTTP::Tiny doesn't like us providing our own host header, but we have to # sign it, so let's hope HTTP::Tiny calculates the same value as us :-S delete $headers->{host}; $self->{ua}->request( $method => "$self->{host}$path?$query", { content => $content, headers => $headers }, ); } sub delete_bucket_url { $_[0]->signed_url( 'DELETE', $_[1], undef, $_[2], $_[3] ) } sub get_bucket_url { $_[0]->signed_url( 'GET', $_[1], undef, $_[2], $_[3], $_[4] ) } sub head_bucket_url { $_[0]->signed_url( 'HEAD', $_[1], undef, $_[2], $_[3] ) } sub put_bucket_url { $_[0]->signed_url( 'PUT', $_[1], undef, $_[2], $_[3] ) } sub delete_object_url { $_[0]->signed_url( 'DELETE', $_[1], $_[2], $_[3], $_[4] ) } sub get_object_url { $_[0]->signed_url( 'GET', $_[1], $_[2], $_[3], $_[4], $_[5] ) } sub head_object_url { $_[0]->signed_url( 'HEAD', $_[1], $_[2], $_[3], $_[4] ) } sub put_object_url { $_[0]->signed_url( 'PUT', $_[1], $_[2], $_[3], $_[4] ) } sub signed_url { my ( $self, $method, $bucket, $object, $expires, $headers, $query ) = @_; $expires //= 604800; # One week, maximum $headers //= {}; # Lowercase header keys. %$headers = map { lc, $headers->{$_} } keys %$headers; $headers->{host} = $self->{host} =~ s|^https?://||r; my ( $path, $time, $date, $cred_scope ) = $self->_common_prep( $bucket, $object ); my $signed_headers = join ';', sort keys %$headers; $query = { %{$query // {}}, 'X-Amz-Algorithm' => 'AWS4-HMAC-SHA256', 'X-Amz-Credential' => "$self->{access_key}/$cred_scope", 'X-Amz-Date' => $time, 'X-Amz-Expires' => $expires, 'X-Amz-SignedHeaders' => $signed_headers, }; $query = HTTP::Tiny->www_form_urlencode( $query ); my $creq = $self->_make_canonical_request( $method, $path, $query, $headers, $signed_headers, 'UNSIGNED-PAYLOAD' ); my $sig = $self->_sign_request( $creq, $time, $cred_scope ); $query .= '&X-Amz-Signature=' . $sig; return "$self->{host}$path?$query"; } sub _common_prep { my ( $self, $bucket, $object ) = @_; utf8::encode my $path = _normalize_path( join '/', '', $bucket, $object // () ); $path =~ s|([^A-Za-z0-9\-\._~/])|$url_enc{$1}|g; my ( $s, $m, $h, $d, $M, $y ) = gmtime; my $time = sprintf '%d%02d%02dT%02d%02d%02dZ', $y + 1900, $M + 1, $d, $h, $m, $s; my $date = substr $time, 0, 8; my $scope = "$date/$self->{region}/$self->{service}/aws4_request"; return ( $path, $time, $date, $scope ); } sub _make_canonical_request { my ( $self, $method, $path, $query_string, $headers, $signed_headers, $sha ) = @_; my $creq_headers = ''; for my $k ( sort keys %$headers ) { my $v = $headers->{$k}; $creq_headers .= "\n$k:"; $creq_headers .= join ',', map s/\s+/ /gr =~ s/^\s+|\s+$//gr, map split(/\n/), ref $v ? @$v : $v; } utf8::encode my $creq = "$method\n$path\n$query_string$creq_headers\n\n$signed_headers\n$sha"; return $creq; } sub _normalize_path { my @old_parts = split m(/), $_[0], -1; my @new_parts; for ( 0 .. $#old_parts ) { my $part = $old_parts[$_]; if ( $part eq '..' ) { pop @new_parts; } elsif ( $part ne '.' && ( length $part || $_ == $#old_parts ) ) { push @new_parts, $part; } } '/' . join '/', @new_parts; } sub _sign_request { my ( $self, $creq, $time, $scope ) = @_; my $date = substr $time, 0, 8; return hmac_sha256_hex( "AWS4-HMAC-SHA256\n$time\n$scope\n" . sha256_hex($creq), hmac_sha256( aws4_request => hmac_sha256( $self->{service} => hmac_sha256( $self->{region}, hmac_sha256( $date, "AWS4$self->{secret_key}" ), ), ), ), ); } 1; libwebservice-s3-tiny-perl-0.003/lib/WebService/S3/Tiny.pod000066400000000000000000000103521452217337200233340ustar00rootroot00000000000000=encoding UTF-8 =head1 NAME WebService::S3::Tiny - Perl module for using S3 or compatible APIs =for html =head1 SYNOPSIS use WebService::S3::Tiny; my $s3 = WebService::S3::Tiny->new( access_key => 'foo', host => 'http://localhost:1337', secret_key => 'bar', ); =head1 METHODS All the request methods of the form {get,put,delete,head}_{bucket,object} can also be called with the C<_url> suffix to generate a pre-signed URL for the corresponding call. These URL methods take almost the same arguments as their request counterparts, with the difference that they take an optional argument to indicate the lifetime of the URL in seconds. This argument always comes after the bucket and object, and before the header and parameter references. This value cannot be greater than 604800 (= one week). =head2 new WebService::S3::Tiny->new( access_key => ..., # required host => ..., # required region => ..., # optional, defaults to "us-east-1" secret_key => ..., # required service => ..., # optional, defaults to "s3" ua => ..., # optional, defaults to HTTP::Tiny->new ); =head2 delete_bucket $s3->delete_bucket($bucket); $s3->delete_bucket($bucket, \%headers); =head2 get_bucket $s3->get_bucket($bucket); $s3->get_bucket($bucket, \%headers); $s3->get_bucket($bucket, \%headers, \%parameters); =head2 head_bucket $s3->head_bucket($bucket); $s3->head_bucket($bucket, \%headers); =head2 put_bucket $s3->put_bucket($bucket); $s3->put_bucket($bucket, \%headers); =head2 delete_object $s3->delete_object($bucket, $object); $s3->delete_object($bucket, $object, \%headers); =head2 get_object $s3->get_object($bucket, $object); $s3->get_object($bucket, $object, \%headers); $s3->get_object($bucket, $object, \%headers, \%parameters); =head2 head_object $s3->head_object($bucket, $object); $s3->head_object($bucket, $object, \%headers); =head2 put_object $s3->put_object($bucket, $object, $content); $s3->put_object($bucket, $object, $content, \%headers); # Set foo/bar to "qux" $s3->put_object('foo', 'bar', 'qux'); # Copy foo/bar to foo/baz $3->put_object('foo', 'baz', undef, { 'x-amz-copy-source' => 'foo/bar' }); =head2 request $s3->request($method, $bucket, $object, $content, \%headers, \%parameters); =head2 delete_bucket_url $s3->delete_bucket_url($bucket, $expires); $s3->delete_bucket_url($bucket, $expires, \%headers); =head2 get_bucket_url $s3->get_bucket_url($bucket, $expires); $s3->get_bucket_url($bucket, $expires, \%headers); $s3->get_bucket_url($bucket, $expires, \%headers, \%parameters); =head2 head_bucket_url $s3->head_bucket_url($bucket, $expires); $s3->head_bucket_url($bucket, $expires, \%headers); =head2 put_bucket_url $s3->put_bucket_url($bucket, $expires); $s3->put_bucket_url($bucket, $expires, \%headers); =head2 delete_object_url $s3->delete_object_url($bucket, $object, $expires); $s3->delete_object_url($bucket, $object, $expires, \%headers); =head2 get_object_url $s3->get_object_url($bucket, $object, $expires); $s3->get_object_url($bucket, $object, $expires, \%headers); $s3->get_object_url($bucket, $object, $expires, \%headers, \%parameters); =head2 head_object_url $s3->head_object_url($bucket, $object, $expires); $s3->head_object_url($bucket, $object, $expires, \%headers); =head2 put_object_url $s3->put_object_url($bucket, $object, $expires); $s3->put_object_url($bucket, $object, $expires, \%headers); =head2 signed_url $s3->signed_url($method, $bucket, $object, $expires, \%headers, \%parameters ); =head1 COPYRIGHT AND LICENSE Copyright © 2018 CV-Library Ltd. This is free software; you can redistribute it and/or modify it under the same terms as Perl itself. libwebservice-s3-tiny-perl-0.003/run-xt000077500000000000000000000002611452217337200177750ustar00rootroot00000000000000#!/bin/sh docker-compose up --abort-on-container-exit --build --exit-code-from test -t0 ret=$? docker-compose kill &> /dev/null docker-compose rm -f &> /dev/null exit $ret libwebservice-s3-tiny-perl-0.003/t/000077500000000000000000000000001452217337200170565ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws.t000066400000000000000000000024031452217337200200340ustar00rootroot00000000000000use strict; use warnings; BEGIN { *CORE::GLOBAL::gmtime = sub(;$) { CORE::gmtime(1440938160) } } use HTTP::Request; use Test::More; use WebService::S3::Tiny; { no warnings 'redefine'; *HTTP::Tiny::request = sub { $_[3]{headers}{authorization} }; } sub slurp($) { local ( @ARGV, $/ ) = @_; scalar <> } my $s3 = WebService::S3::Tiny->new( access_key => 'AKIDEXAMPLE', host => 'example.amazonaws.com', region => 'us-east-1', secret_key => 'wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY', service => 'service', ); chdir 't/aws'; for (<{get,post}-*>) { utf8::decode my $foo = slurp "$_/$_.req"; my ( $method, $path, $headers ) = $foo =~ m(^(GET|POST) (.+) HTTP/1.1\n(.+))s; ( $path, my $query ) = split /\?/, $path; my %query; for ( split /&/, $query // '' ) { my ( $k, $v ) = split /=/; push @{ $query{$k} }, $v; } ( $headers, my $content ) = split /\n\n/, $headers; my $req = HTTP::Request->parse( slurp "$_/$_.req" ); my %headers = %{ $req->headers }; delete $headers{'::std_case'}; is +$s3->request( $req->method, $path, undef, $req->content, \%headers, \%query, ) => slurp "$_/$_.authz", $_; } done_testing; libwebservice-s3-tiny-perl-0.003/t/aws/000077500000000000000000000000001452217337200176505ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/LICENSE000066400000000000000000000261361452217337200206650ustar00rootroot00000000000000 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION 1. Definitions. "License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity. "You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License. "Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files. "Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types. "Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below). "Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof. "Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution." "Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work. 2. Grant of Copyright License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form. 3. Grant of Patent License. Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed. 4. Redistribution. You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions: (a) You must give any other recipients of the Work or Derivative Works a copy of this License; and (b) You must cause any modified files to carry prominent notices stating that You changed the files; and (c) You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and (d) If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License. 5. Submission of Contributions. Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions. 6. Trademarks. This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file. 7. Disclaimer of Warranty. Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License. 8. Limitation of Liability. In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages. 9. Accepting Warranty or Additional Liability. While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability. END OF TERMS AND CONDITIONS APPENDIX: How to apply the Apache License to your work. To apply the Apache License to your work, attach the following boilerplate notice, with the fields enclosed by brackets "[]" replaced with your own identifying information. (Don't include the brackets!) The text should be enclosed in the appropriate comment syntax for the file format. We also recommend that a file or class name and description of purpose be included on the same "printed page" as the copyright notice for easier identification within third-party archives. Copyright [yyyy] [name of copyright owner] Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. libwebservice-s3-tiny-perl-0.003/t/aws/NOTICE000066400000000000000000000001531452217337200205530ustar00rootroot00000000000000AWS Signature Version 4 Test Suite Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. libwebservice-s3-tiny-perl-0.003/t/aws/get-header-key-duplicate/000077500000000000000000000000001452217337200244135ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-header-key-duplicate/get-header-key-duplicate.authz000066400000000000000000000003321452217337200322310ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-content-sha256;x-amz-date, Signature=db18ec62f61f68fd1c6022d944bc0e2da22ef07ee7dcc40ba80d15388e3519e9libwebservice-s3-tiny-perl-0.003/t/aws/get-header-key-duplicate/get-header-key-duplicate.creq000066400000000000000000000002721452217337200320330ustar00rootroot00000000000000GET / host:example.amazonaws.com my-header1:value2,value2,value1 x-amz-date:20150830T123600Z host;my-header1;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-header-key-duplicate/get-header-key-duplicate.req000066400000000000000000000001731452217337200316700ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com My-Header1:value2 My-Header1:value2 My-Header1:value1 X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-header-key-duplicate/get-header-key-duplicate.sreq000066400000000000000000000005201452217337200320470ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com My-Header1:value2 My-Header1:value2 My-Header1:value1 X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c9d5ea9f3f72853aea855b47ea873832890dbdd183b4468f858259531a5138ealibwebservice-s3-tiny-perl-0.003/t/aws/get-header-key-duplicate/get-header-key-duplicate.sts000066400000000000000000000002121452217337200317040ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request dc7f04a3abfde8d472b0ab1a418b741b7c67174dad1551b4117b15527fbe966clibwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-multiline/000077500000000000000000000000001452217337200247675ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-multiline/get-header-value-multiline.authz000066400000000000000000000003321452217337200331610ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-content-sha256;x-amz-date, Signature=74abfc14ce1636b4c9443234472e5dc937eee483545cdf33b730e634714407b4libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-multiline/get-header-value-multiline.creq000066400000000000000000000002721452217337200327630ustar00rootroot00000000000000GET / host:example.amazonaws.com my-header1:value1,value2,value3 x-amz-date:20150830T123600Z host;my-header1;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-multiline/get-header-value-multiline.req000066400000000000000000000001541452217337200326170ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com My-Header1:value1 value2 value3 X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-multiline/get-header-value-multiline.sreq000066400000000000000000000005011452217337200327760ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com My-Header1:value1 value2 value3 X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=ba17b383a53190154eb5fa66a1b836cc297cc0a3d70a5d00705980573d8ff790libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-multiline/get-header-value-multiline.sts000066400000000000000000000002121452217337200326340ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request b7b6cbfd8a0430b78891e986784da2630c8a135a8595cec25b26ea94f926ee55libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-order/000077500000000000000000000000001452217337200241005ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-order/get-header-value-order.authz000066400000000000000000000003321452217337200314030ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-content-sha256;x-amz-date, Signature=18a6dda96339fbdf5ff81fe5a7825ec4224d1604da4a3ffed8719623374c9c2dlibwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-order/get-header-value-order.creq000066400000000000000000000003011452217337200311760ustar00rootroot00000000000000GET / host:example.amazonaws.com my-header1:value4,value1,value3,value2 x-amz-date:20150830T123600Z host;my-header1;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-order/get-header-value-order.req000066400000000000000000000002151452217337200310370ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com My-Header1:value4 My-Header1:value1 My-Header1:value3 My-Header1:value2 X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-order/get-header-value-order.sreq000066400000000000000000000005421452217337200312250ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com My-Header1:value4 My-Header1:value1 My-Header1:value3 My-Header1:value2 X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=08c7e5a9acfcfeb3ab6b2185e75ce8b1deb5e634ec47601a50643f830c755c01libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-order/get-header-value-order.sts000066400000000000000000000002121452217337200310560ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 31ce73cd3f3d9f66977ad3dd957dc47af14df92fcd8509f59b349e9137c58b86libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-trim/000077500000000000000000000000001452217337200237405ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-trim/get-header-value-trim.authz000066400000000000000000000003451452217337200311070ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;my-header2;x-amz-content-sha256;x-amz-date, Signature=095ca36c08b6d28690c278dfc0cd1998a603eead1c694ffba9ff6fed48555cddlibwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-trim/get-header-value-trim.creq000066400000000000000000000003121452217337200307000ustar00rootroot00000000000000GET / host:example.amazonaws.com my-header1:value1 my-header2:"a b c" x-amz-date:20150830T123600Z host;my-header1;my-header2;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-trim/get-header-value-trim.req000066400000000000000000000001601452217337200305360ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com My-Header1: value1 My-Header2: "a b c" X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-trim/get-header-value-trim.sreq000066400000000000000000000005201452217337200307210ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com My-Header1: value1 My-Header2: "a b c" X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;my-header2;x-amz-date, Signature=acc3ed3afb60bb290fc8d2dd0098b9911fcaa05412b367055dee359757a9c736libwebservice-s3-tiny-perl-0.003/t/aws/get-header-value-trim/get-header-value-trim.sts000066400000000000000000000002121452217337200305560ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request a726db9b0df21c14f559d0a978e563112acb1b9e05476f0a6a1c7d68f28605c7libwebservice-s3-tiny-perl-0.003/t/aws/get-relative-relative/000077500000000000000000000000001452217337200240515ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-relative-relative/get-relative-relative.authz000066400000000000000000000003171452217337200313300ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=726c5c4879a6b4ccbbd3b24edbd6b8826d34f87450fbbf4e85546fc7ba9c1642libwebservice-s3-tiny-perl-0.003/t/aws/get-relative-relative/get-relative-relative.creq000066400000000000000000000002171452217337200311260ustar00rootroot00000000000000GET / host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-relative-relative/get-relative-relative.req000066400000000000000000000001341452217337200307610ustar00rootroot00000000000000GET /example1/example2/../.. HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-relative-relative/get-relative-relative.sreq000066400000000000000000000004461452217337200311520ustar00rootroot00000000000000GET /example1/example2/../.. HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31libwebservice-s3-tiny-perl-0.003/t/aws/get-relative-relative/get-relative-relative.sts000066400000000000000000000002121452217337200310000ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63libwebservice-s3-tiny-perl-0.003/t/aws/get-relative/000077500000000000000000000000001452217337200222405ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-relative/get-relative.authz000066400000000000000000000003171452217337200257060ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=726c5c4879a6b4ccbbd3b24edbd6b8826d34f87450fbbf4e85546fc7ba9c1642libwebservice-s3-tiny-perl-0.003/t/aws/get-relative/get-relative.creq000066400000000000000000000002171452217337200255040ustar00rootroot00000000000000GET / host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-relative/get-relative.req000066400000000000000000000001171452217337200253400ustar00rootroot00000000000000GET /example/.. HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-relative/get-relative.sreq000066400000000000000000000004311452217337200255220ustar00rootroot00000000000000GET /example/.. HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31libwebservice-s3-tiny-perl-0.003/t/aws/get-relative/get-relative.sts000066400000000000000000000002121452217337200253560ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-dot-slash/000077500000000000000000000000001452217337200234335ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-dot-slash/get-slash-dot-slash.authz000066400000000000000000000003171452217337200302740ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=726c5c4879a6b4ccbbd3b24edbd6b8826d34f87450fbbf4e85546fc7ba9c1642libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-dot-slash/get-slash-dot-slash.creq000066400000000000000000000002171452217337200300720ustar00rootroot00000000000000GET / host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-dot-slash/get-slash-dot-slash.req000066400000000000000000000001071452217337200277250ustar00rootroot00000000000000GET /./ HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-slash-dot-slash/get-slash-dot-slash.sreq000066400000000000000000000004211452217337200301070ustar00rootroot00000000000000GET /./ HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-dot-slash/get-slash-dot-slash.sts000066400000000000000000000002121452217337200277440ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-pointless-dot/000077500000000000000000000000001452217337200243415ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-pointless-dot/get-slash-pointless-dot.authz000066400000000000000000000003171452217337200321100ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=af33ca6a23b5fd6a62cf5fe3e8daf45aa6b67e0d208143c7512502615e03cf16libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-pointless-dot/get-slash-pointless-dot.creq000066400000000000000000000002261452217337200317060ustar00rootroot00000000000000GET /example host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-pointless-dot/get-slash-pointless-dot.req000066400000000000000000000001161452217337200315410ustar00rootroot00000000000000GET /./example HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-slash-pointless-dot/get-slash-pointless-dot.sreq000066400000000000000000000004301452217337200317230ustar00rootroot00000000000000GET /./example HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=ef75d96142cf21edca26f06005da7988e4f8dc83a165a80865db7089db637ec5libwebservice-s3-tiny-perl-0.003/t/aws/get-slash-pointless-dot/get-slash-pointless-dot.sts000066400000000000000000000002121452217337200315600ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 214d50c111a8edc4819da6a636336472c916b5240f51e9a51b5c3305180cf702libwebservice-s3-tiny-perl-0.003/t/aws/get-slash/000077500000000000000000000000001452217337200215375ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-slash/get-slash.authz000066400000000000000000000003171452217337200245040ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=726c5c4879a6b4ccbbd3b24edbd6b8826d34f87450fbbf4e85546fc7ba9c1642libwebservice-s3-tiny-perl-0.003/t/aws/get-slash/get-slash.creq000066400000000000000000000002171452217337200243020ustar00rootroot00000000000000GET / host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-slash/get-slash.req000066400000000000000000000001061452217337200241340ustar00rootroot00000000000000GET // HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-slash/get-slash.sreq000066400000000000000000000004201452217337200243160ustar00rootroot00000000000000GET // HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31libwebservice-s3-tiny-perl-0.003/t/aws/get-slash/get-slash.sts000066400000000000000000000002121452217337200241540ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63libwebservice-s3-tiny-perl-0.003/t/aws/get-slashes/000077500000000000000000000000001452217337200220675ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-slashes/get-slashes.authz000066400000000000000000000003171452217337200253640ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=d498b01479d020f37c5fe17c61b07748c3d3f51e1a9bf4d43e1061b324daf1b2libwebservice-s3-tiny-perl-0.003/t/aws/get-slashes/get-slashes.creq000066400000000000000000000002271452217337200251630ustar00rootroot00000000000000GET /example/ host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-slashes/get-slashes.req000066400000000000000000000001171452217337200250160ustar00rootroot00000000000000GET //example// HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-slashes/get-slashes.sreq000066400000000000000000000004311452217337200252000ustar00rootroot00000000000000GET //example// HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9a624bd73a37c9a373b5312afbebe7a714a789de108f0bdfe846570885f57e84libwebservice-s3-tiny-perl-0.003/t/aws/get-slashes/get-slashes.sts000066400000000000000000000002121452217337200250340ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request cb96b4ac96d501f7c5c15bc6d67b3035061cfced4af6585ad927f7e6c985c015libwebservice-s3-tiny-perl-0.003/t/aws/get-space/000077500000000000000000000000001452217337200215205ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-space/get-space.authz000066400000000000000000000003171452217337200244460ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=47e913364135a92395885f08767c655105e0b8a61bd851c1e268cdad3e32e4aclibwebservice-s3-tiny-perl-0.003/t/aws/get-space/get-space.creq000066400000000000000000000002371452217337200242460ustar00rootroot00000000000000GET /example%20space/ host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-space/get-space.req000066400000000000000000000001241452217337200240760ustar00rootroot00000000000000GET /example space/ HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z libwebservice-s3-tiny-perl-0.003/t/aws/get-space/get-space.sreq000066400000000000000000000004351452217337200242660ustar00rootroot00000000000000GET /example space/ HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=652487583200325589f1fba4c7e578f72c47cb61beeca81406b39ddec1366741libwebservice-s3-tiny-perl-0.003/t/aws/get-space/get-space.sts000066400000000000000000000002121452217337200241160ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 63ee75631ed7234ae61b5f736dfc7754cdccfedbff4b5128a915706ee9390d86libwebservice-s3-tiny-perl-0.003/t/aws/get-unreserved/000077500000000000000000000000001452217337200226075ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-unreserved/get-unreserved.authz000066400000000000000000000003171452217337200266240ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=feae8f2b49f6807d4ca43941e2d6c7aacaca499df09935d14e97eed7647da5dclibwebservice-s3-tiny-perl-0.003/t/aws/get-unreserved/get-unreserved.creq000066400000000000000000000003211452217337200264160ustar00rootroot00000000000000GET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-unreserved/get-unreserved.req000066400000000000000000000002071452217337200262560ustar00rootroot00000000000000GET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-unreserved/get-unreserved.sreq000066400000000000000000000005211452217337200264400ustar00rootroot00000000000000GET /-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=07ef7494c76fa4850883e2b006601f940f8a34d404d0cfa977f52a65bbf5f24flibwebservice-s3-tiny-perl-0.003/t/aws/get-unreserved/get-unreserved.sts000066400000000000000000000002121452217337200262740ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 6a968768eefaa713e2a6b16b589a8ea192661f098f37349f4e2c0082757446f9libwebservice-s3-tiny-perl-0.003/t/aws/get-utf8/000077500000000000000000000000001452217337200213135ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-utf8/get-utf8.authz000066400000000000000000000003171452217337200240340ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=29d69532444b4f32a4c1b19af2afc116589685058ece54d8e43f0be05aeff6c0libwebservice-s3-tiny-perl-0.003/t/aws/get-utf8/get-utf8.creq000066400000000000000000000002301452217337200236250ustar00rootroot00000000000000GET /%E1%88%B4 host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-utf8/get-utf8.req000066400000000000000000000001101452217337200234570ustar00rootroot00000000000000GET /ሴ HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-utf8/get-utf8.sreq000066400000000000000000000004221452217337200236500ustar00rootroot00000000000000GET /ሴ HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=8318018e0b0f223aa2bbf98705b62bb787dc9c0e678f255a891fd03141be5d85libwebservice-s3-tiny-perl-0.003/t/aws/get-utf8/get-utf8.sts000066400000000000000000000002121452217337200235040ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 2a0a97d02205e45ce2e994789806b19270cfbbb0921b278ccf58f5249ac42102libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-empty-query-key/000077500000000000000000000000001452217337200251405ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.authz000066400000000000000000000003171452217337200335060ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=2287c0f96af21b7ccf3ee4a2905bcbb2d6f9a94c68d0849f3d1715ef003f2a05libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.creq000066400000000000000000000002341452217337200333030ustar00rootroot00000000000000GET / Param1=value1 host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.req000066400000000000000000000001231452217337200331350ustar00rootroot00000000000000GET /?Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.sreq000066400000000000000000000004351452217337200333260ustar00rootroot00000000000000GET /?Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=a67d582fa61cc504c4bae71f336f98b97f1ea3c7a6bfe1b6e45aec72011b9aeblibwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-empty-query-key/get-vanilla-empty-query-key.sts000066400000000000000000000002121452217337200331560ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 1e24db194ed7d0eec2de28d7369675a243488e08526e8c1c73571282f7c517ablibwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key-case/000077500000000000000000000000001452217337200260265ustar00rootroot00000000000000get-vanilla-query-order-key-case.authz000066400000000000000000000003171452217337200352030ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key-caseAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=311c7f58b10b06de8540bb5a27f441ee0609f1d5ad7b191e68d7ea87d90e3d6bget-vanilla-query-order-key-case.creq000066400000000000000000000002521452217337200350000ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key-caseGET / Param1=value1&Param2=value2 host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855get-vanilla-query-order-key-case.req000066400000000000000000000001411452217337200346320ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key-caseGET /?Param2=value2&Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zget-vanilla-query-order-key-case.sreq000066400000000000000000000004531452217337200350230ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key-caseGET /?Param2=value2&Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=b97d918cfa904a5beff61c982a1b6f458b799221646efd99d3219ec94cdf2500get-vanilla-query-order-key-case.sts000066400000000000000000000002121452217337200346530ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key-caseAWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 816cd5b414d056048ba4f7c5386d6e0533120fb1fcfa93762cf0fc39e2cf19e0libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key/000077500000000000000000000000001452217337200251155ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.authz000066400000000000000000000003171452217337200334400ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=b15f59bfe94d70d9256e59920a5654f457084f308b38f908271dde7e0e14eb65libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.creq000066400000000000000000000002521452217337200332350ustar00rootroot00000000000000GET / Param1=Value1&Param1=value2 host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.req000066400000000000000000000001411452217337200330670ustar00rootroot00000000000000GET /?Param1=value2&Param1=Value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.sreq000066400000000000000000000004531452217337200332600ustar00rootroot00000000000000GET /?Param1=value2&Param1=Value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=eedbc4e291e521cf13422ffca22be7d2eb8146eecf653089df300a15b2382bd1libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-key/get-vanilla-query-order-key.sts000066400000000000000000000002121452217337200331100ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 704b4cef673542d84cdff252633f065e8daeba5f168b77116f8b1bcaf3d38f89libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-value/000077500000000000000000000000001452217337200254415ustar00rootroot00000000000000get-vanilla-query-order-value.authz000066400000000000000000000003171452217337200342310ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-valueAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=c342e9d08837292557076158666203a250ff43dffcdd6a08655409db138a664cget-vanilla-query-order-value.creq000066400000000000000000000002521452217337200340260ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-valueGET / Param1=value1&Param1=value2 host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855get-vanilla-query-order-value.req000066400000000000000000000001411452217337200336600ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-valueGET /?Param1=value2&Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zget-vanilla-query-order-value.sreq000066400000000000000000000004531452217337200340510ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-valueGET /?Param1=value2&Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5772eed61e12b33fae39ee5e7012498b51d56abc0abb7c60486157bd471c4694get-vanilla-query-order-value.sts000066400000000000000000000002121452217337200337010ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-order-valueAWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request c968629d70850097a2d8781c9bf7edcb988b04cac14cca9be4acc3595f884606libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-unreserved/000077500000000000000000000000001452217337200253765ustar00rootroot00000000000000get-vanilla-query-unreserved.authz000066400000000000000000000003171452217337200341230ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-unreservedAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=e86fe49a4c0dda9163bed3b1b40d530d872eb612e2c366de300bfefdf356fd6aget-vanilla-query-unreserved.creq000066400000000000000000000004241452217337200337210ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-unreservedGET / -._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-unreserved/get-vanilla-query-unreserved.req000066400000000000000000000003131452217337200336320ustar00rootroot00000000000000GET /?-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zget-vanilla-query-unreserved.sreq000066400000000000000000000006251452217337200337440ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-unreservedGET /?-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz=-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9c3e54bfcdf0b19771a7f523ee5669cdf59bc7cc0884027167c21bb143a40197libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query-unreserved/get-vanilla-query-unreserved.sts000066400000000000000000000002121452217337200336520ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request c30d4703d9f799439be92736156d47ccfb2d879ddf56f5befa6d1d6aab979177libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query/000077500000000000000000000000001452217337200232165ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query/get-vanilla-query.authz000066400000000000000000000003171452217337200276420ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=726c5c4879a6b4ccbbd3b24edbd6b8826d34f87450fbbf4e85546fc7ba9c1642libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query/get-vanilla-query.creq000066400000000000000000000002171452217337200274400ustar00rootroot00000000000000GET / host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query/get-vanilla-query.req000066400000000000000000000001051452217337200272710ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query/get-vanilla-query.sreq000066400000000000000000000004171452217337200274620ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-query/get-vanilla-query.sts000066400000000000000000000002121452217337200273120ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-utf8-query/000077500000000000000000000000001452217337200241025ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.authz000066400000000000000000000003171452217337200314120ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=6753d65781ac8f6964cb6fb90445ee138d65d9663df21f28f478bd09add64fd8libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.creq000066400000000000000000000002341452217337200312070ustar00rootroot00000000000000GET / %E1%88%B4=bar host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.req000066400000000000000000000001151452217337200310420ustar00rootroot00000000000000GET /?ሴ=bar HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.sreq000066400000000000000000000004271452217337200312330ustar00rootroot00000000000000GET /?ሴ=bar HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=2cdec8eed098649ff3a119c94853b13c643bcf08f8b0a1d91e12c9027818dd04libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla-utf8-query/get-vanilla-utf8-query.sts000066400000000000000000000002121452217337200310620ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request eb30c5bed55734080471a834cc727ae56beb50e5f39d1bff6d0d38cb192a7073libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla/000077500000000000000000000000001452217337200220535ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla/get-vanilla.authz000066400000000000000000000003171452217337200253340ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=726c5c4879a6b4ccbbd3b24edbd6b8826d34f87450fbbf4e85546fc7ba9c1642libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla/get-vanilla.creq000066400000000000000000000002171452217337200251320ustar00rootroot00000000000000GET / host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla/get-vanilla.req000066400000000000000000000001051452217337200247630ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla/get-vanilla.sreq000066400000000000000000000004171452217337200251540ustar00rootroot00000000000000GET / HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31libwebservice-s3-tiny-perl-0.003/t/aws/get-vanilla/get-vanilla.sts000066400000000000000000000002121452217337200250040ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request bb579772317eb040ac9ed261061d46c1f17a8133879d6129b6e1c25292927e63libwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-case/000077500000000000000000000000001452217337200235625ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-case/post-header-key-case.authz000066400000000000000000000003171452217337200305520ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=3ad5e249949a59b862eedd9f1bf1ece4693c3042bf860ef5e3351b8925316f98libwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-case/post-header-key-case.creq000066400000000000000000000002201452217337200303420ustar00rootroot00000000000000POST / host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-case/post-header-key-case.req000066400000000000000000000001061452217337200302020ustar00rootroot00000000000000POST / HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-case/post-header-key-case.sreq000066400000000000000000000004201452217337200303640ustar00rootroot00000000000000POST / HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6blibwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-case/post-header-key-case.sts000066400000000000000000000002121452217337200302220ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87libwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-sort/000077500000000000000000000000001452217337200236365ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-sort/post-header-key-sort.authz000066400000000000000000000003321452217337200306770ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-content-sha256;x-amz-date, Signature=ce153a4d3cd49f14e231c0fd5c87b341f370d3843ffc58e3a92d8b7a55a668d1libwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-sort/post-header-key-sort.creq000066400000000000000000000002551452217337200305020ustar00rootroot00000000000000POST / host:example.amazonaws.com my-header1:value1 x-amz-date:20150830T123600Z host;my-header1;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-sort/post-header-key-sort.req000066400000000000000000000001301452217337200303270ustar00rootroot00000000000000POST / HTTP/1.1 Host:example.amazonaws.com My-Header1:value1 X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-sort/post-header-key-sort.sreq000066400000000000000000000004551452217337200305240ustar00rootroot00000000000000POST / HTTP/1.1 Host:example.amazonaws.com My-Header1:value1 X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c5410059b04c1ee005303aed430f6e6645f61f4dc9e1461ec8f8916fdf18852clibwebservice-s3-tiny-perl-0.003/t/aws/post-header-key-sort/post-header-key-sort.sts000066400000000000000000000002121452217337200303520ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 9368318c2967cf6de74404b30c65a91e8f6253e0a8659d6d5319f1a812f87d65libwebservice-s3-tiny-perl-0.003/t/aws/post-header-value-case/000077500000000000000000000000001452217337200241065ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-header-value-case/post-header-value-case.authz000066400000000000000000000003321452217337200314170ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-content-sha256;x-amz-date, Signature=46c373f5c98f99bcb3ac6de650712cb978f496df0b6cc8832b40ae40431e055elibwebservice-s3-tiny-perl-0.003/t/aws/post-header-value-case/post-header-value-case.creq000066400000000000000000000002551452217337200312220ustar00rootroot00000000000000POST / host:example.amazonaws.com my-header1:VALUE1 x-amz-date:20150830T123600Z host;my-header1;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/post-header-value-case/post-header-value-case.req000066400000000000000000000001301452217337200310470ustar00rootroot00000000000000POST / HTTP/1.1 Host:example.amazonaws.com My-Header1:VALUE1 X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/post-header-value-case/post-header-value-case.sreq000066400000000000000000000004551452217337200312440ustar00rootroot00000000000000POST / HTTP/1.1 Host:example.amazonaws.com My-Header1:VALUE1 X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=cdbc9802e29d2942e5e10b5bccfdd67c5f22c7c4e8ae67b53629efa58b974b7dlibwebservice-s3-tiny-perl-0.003/t/aws/post-header-value-case/post-header-value-case.sts000066400000000000000000000002121452217337200310720ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request d51ced243e649e3de6ef63afbbdcbca03131a21a7103a1583706a64618606a93libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-empty-query-value/000077500000000000000000000000001452217337200256725ustar00rootroot00000000000000post-vanilla-empty-query-value.authz000066400000000000000000000003171452217337200347130ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-empty-query-valueAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=d43fd95e1dfefe02247ce8858649e1a063f9dd10f25f170f7ebda6ee3e9b6fbcpost-vanilla-empty-query-value.creq000066400000000000000000000002351452217337200345110ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-empty-query-valuePOST / Param1=value1 host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855post-vanilla-empty-query-value.req000066400000000000000000000001241452217337200343430ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-empty-query-valuePOST /?Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zpost-vanilla-empty-query-value.sreq000066400000000000000000000004361452217337200345340ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-empty-query-valuePOST /?Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11post-vanilla-empty-query-value.sts000066400000000000000000000002121452217337200343630ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-empty-query-valueAWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 9d659678c1756bb3113e2ce898845a0a79dbbc57b740555917687f1b3340fbbdlibwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-query/000077500000000000000000000000001452217337200234245ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-query/post-vanilla-query.authz000066400000000000000000000003171452217337200302560ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=d43fd95e1dfefe02247ce8858649e1a063f9dd10f25f170f7ebda6ee3e9b6fbclibwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-query/post-vanilla-query.creq000066400000000000000000000002351452217337200300540ustar00rootroot00000000000000POST / Param1=value1 host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-query/post-vanilla-query.req000066400000000000000000000001241452217337200277060ustar00rootroot00000000000000POST /?Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-query/post-vanilla-query.sreq000066400000000000000000000004361452217337200300770ustar00rootroot00000000000000POST /?Param1=value1 HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla-query/post-vanilla-query.sts000066400000000000000000000002121452217337200277260ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 9d659678c1756bb3113e2ce898845a0a79dbbc57b740555917687f1b3340fbbdlibwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla/000077500000000000000000000000001452217337200222615ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla/post-vanilla.authz000066400000000000000000000003171452217337200257500ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-content-sha256;x-amz-date, Signature=3ad5e249949a59b862eedd9f1bf1ece4693c3042bf860ef5e3351b8925316f98libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla/post-vanilla.creq000066400000000000000000000002201452217337200255400ustar00rootroot00000000000000POST / host:example.amazonaws.com x-amz-date:20150830T123600Z host;x-amz-date e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855libwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla/post-vanilla.req000066400000000000000000000001061452217337200254000ustar00rootroot00000000000000POST / HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Zlibwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla/post-vanilla.sreq000066400000000000000000000004201452217337200255620ustar00rootroot00000000000000POST / HTTP/1.1 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6blibwebservice-s3-tiny-perl-0.003/t/aws/post-vanilla/post-vanilla.sts000066400000000000000000000002121452217337200254200ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 553f88c9e4d10fc9e109e2aeb65f030801b70c2f6468faca261d401ae622fc87libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded-parameters/000077500000000000000000000000001452217337200271505ustar00rootroot00000000000000post-x-www-form-urlencoded-parameters.authz000066400000000000000000000003341452217337200374460ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded-parametersAWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=20aab0d4849bc051a7446d70fe505b7c90a804af3ea247856091e85cc901314fpost-x-www-form-urlencoded-parameters.creq000066400000000000000000000003321452217337200372430ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded-parametersPOST / content-type:application/x-www-form-urlencoded; charset=utf8 host:example.amazonaws.com x-amz-date:20150830T123600Z content-type;host;x-amz-date 9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6epost-x-www-form-urlencoded-parameters.req000066400000000000000000000002221452217337200370760ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded-parametersPOST / HTTP/1.1 Content-Type:application/x-www-form-urlencoded; charset=utf8 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Param1=value1post-x-www-form-urlencoded-parameters.sreq000066400000000000000000000005511452217337200372660ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded-parametersPOST / HTTP/1.1 Content-Type:application/x-www-form-urlencoded; charset=utf8 Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1a72ec8f64bd914b0e42e42607c7fbce7fb2c7465f63e3092b3b0d39fa77a6fe Param1=value1post-x-www-form-urlencoded-parameters.sts000066400000000000000000000002121452217337200371170ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded-parametersAWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 2e1cf7ed91881a30569e46552437e4156c823447bf1781b921b5d486c568dd1clibwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded/000077500000000000000000000000001452217337200250075ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.authz000066400000000000000000000003341452217337200332230ustar00rootroot00000000000000AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-content-sha256;x-amz-date, Signature=3ae685fb42e386f9c46ad18dc31b73536a1fc7867dc5cdc8e34e4b1ee1fe5c50libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.creq000066400000000000000000000003141452217337200330200ustar00rootroot00000000000000POST / content-type:application/x-www-form-urlencoded host:example.amazonaws.com x-amz-date:20150830T123600Z content-type;host;x-amz-date 9095672bbd1f56dfc5b65f3e153adc8731a4a654192329106275f4c7b24d0b6elibwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.req000066400000000000000000000002041452217337200326530ustar00rootroot00000000000000POST / HTTP/1.1 Content-Type:application/x-www-form-urlencoded Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Param1=value1libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.sreq000066400000000000000000000005331452217337200330430ustar00rootroot00000000000000POST / HTTP/1.1 Content-Type:application/x-www-form-urlencoded Host:example.amazonaws.com X-Amz-Date:20150830T123600Z Authorization: AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ff11897932ad3f4e8b18135d722051e5ac45fc38421b1da7b9d196a0fe09473a Param1=value1libwebservice-s3-tiny-perl-0.003/t/aws/post-x-www-form-urlencoded/post-x-www-form-urlencoded.sts000066400000000000000000000002121452217337200326740ustar00rootroot00000000000000AWS4-HMAC-SHA256 20150830T123600Z 20150830/us-east-1/service/aws4_request 42a5e5bb34198acb3e84da4f085bb7927f2bc277ca766e6d19c73c2154021281libwebservice-s3-tiny-perl-0.003/t/lowercase-headers.t000066400000000000000000000005721452217337200226440ustar00rootroot00000000000000use strict; use warnings; use Test::More; use WebService::S3::Tiny; { no warnings 'redefine'; *HTTP::Tiny::request = sub { \@_ }; } my $s3 = WebService::S3::Tiny->new( access_key => 1, host => 1, secret_key => 1, ); my $req = $s3->put_object( foo => 'bar', 'baz', { 'Foo-Bar' => 'Baz' } ); is $req->[3]{headers}{'foo-bar'}, 'Baz'; done_testing; libwebservice-s3-tiny-perl-0.003/t/methods.t000066400000000000000000000053021452217337200207060ustar00rootroot00000000000000use strict; use warnings; use Test::More; use WebService::S3::Tiny; { no warnings 'redefine'; *WebService::S3::Tiny::request = sub { \@_ }; *WebService::S3::Tiny::signed_url = sub { \@_ }; } my $s3 = WebService::S3::Tiny->new(qw(access_key 1 host 1 secret_key 1)); is_deeply +$s3->delete_bucket('bucket', 'headers'), [ $s3, 'DELETE', 'bucket', undef, undef, 'headers' ], 'delete_bucket'; is_deeply +$s3->get_bucket('bucket', 'headers', 'parameters'), [ $s3, 'GET', 'bucket', undef, undef, 'headers', 'parameters' ], 'get_bucket'; is_deeply +$s3->head_bucket('bucket', 'headers'), [ $s3, 'HEAD', 'bucket', undef, undef, 'headers' ], 'head_bucket'; is_deeply +$s3->put_bucket('bucket', 'headers'), [ $s3, 'PUT', 'bucket', undef, undef, 'headers' ], 'put_bucket'; is_deeply +$s3->delete_object('bucket', 'object', 'headers'), [ $s3, 'DELETE', 'bucket', 'object', undef, 'headers' ], 'delete_object'; is_deeply +$s3->get_object('bucket', 'object', 'headers', 'parameters'), [ $s3, 'GET', 'bucket', 'object', undef, 'headers', 'parameters' ], 'get_object'; is_deeply +$s3->head_object('bucket', 'object', 'headers'), [ $s3, 'HEAD', 'bucket', 'object', undef, 'headers' ], 'head_object'; is_deeply +$s3->put_object('bucket', 'object', 'content', 'headers'), [ $s3, 'PUT', 'bucket', 'object', 'content', 'headers' ], 'put_object'; # Signed URL methods is_deeply +$s3->delete_bucket_url('bucket', 'expires', 'headers', ), [ $s3, 'DELETE', 'bucket', undef, 'expires', 'headers' ], 'delete_bucket_url'; is_deeply +$s3->get_bucket_url('bucket', 'expires', 'headers', 'parameters'), [ $s3, 'GET', 'bucket', undef, 'expires', 'headers', 'parameters' ], 'get_bucket_url'; is_deeply +$s3->head_bucket_url('bucket', 'expires', 'headers'), [ $s3, 'HEAD', 'bucket', undef, 'expires', 'headers' ], 'head_bucket_url'; is_deeply +$s3->put_bucket_url('bucket', 'expires', 'headers'), [ $s3, 'PUT', 'bucket', undef, 'expires', 'headers' ], 'put_bucket_url'; is_deeply +$s3->delete_object_url('bucket', 'object', 'expires', 'headers'), [ $s3, 'DELETE', 'bucket', 'object', 'expires', 'headers' ], 'delete_object_url'; is_deeply +$s3->get_object_url('bucket', 'object', 'expires', 'headers', 'parameters'), [ $s3, 'GET', 'bucket', 'object', 'expires', 'headers', 'parameters' ], 'get_object_url'; is_deeply +$s3->head_object_url('bucket', 'object', 'expires', 'headers'), [ $s3, 'HEAD', 'bucket', 'object', 'expires', 'headers' ], 'head_object_url'; is_deeply +$s3->put_object_url('bucket', 'object', 'expires', 'headers'), [ $s3, 'PUT', 'bucket', 'object', 'expires', 'headers' ], 'put_object_url'; done_testing; libwebservice-s3-tiny-perl-0.003/t/signed_url.t000066400000000000000000000012651452217337200214020ustar00rootroot00000000000000use strict; use warnings; BEGIN { *CORE::GLOBAL::gmtime = sub(;$) { CORE::gmtime(1440938160) } } use Test::More; use WebService::S3::Tiny; my $s3 = WebService::S3::Tiny->new( access_key => 'access', host => 'http://s3.host.com', secret_key => 'secret', ); is $s3->signed_url( GET => 'maibucket', 'path/to/my+file.jpg', 3600), 'http://s3.host.com/maibucket/path/to/my%2Bfile.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=access%2F20150830%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20150830T123600Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=10fcd77ceb592d5b8b7561949fd3f56829005976118799b8e2e06ddee23687ed', 'signed_url'; done_testing; libwebservice-s3-tiny-perl-0.003/xt/000077500000000000000000000000001452217337200172465ustar00rootroot00000000000000libwebservice-s3-tiny-perl-0.003/xt/all.t000066400000000000000000000032201452217337200202000ustar00rootroot00000000000000use strict; use warnings; use Socket; use Test::More; use WebService::S3::Tiny; # Block until minio is up. BEGIN { socket my $sock, PF_INET, SOCK_STREAM, 0 or die $!; my $addr = sockaddr_in 9000, inet_aton 'minio'; my $i; until ( connect $sock, $addr ) { select undef, undef, undef, .1; die 'Minio never came up' if ++$i > 50; } } my $s3 = WebService::S3::Tiny->new( access_key => 'access_key', host => 'http://minio:9000', secret_key => 'secret_key', ); is $s3->put_bucket('bucket')->{status}, 200, 'put_bucket("bucket")'; is $s3->put_bucket('bucket')->{status}, 409, 'put_bucket("bucket")'; is $s3->put_object( 'bucket', 'object', 'foo' )->{status}, 200, 'put_object("bucket", "object", "foo")'; is $s3->put_object( 'bucket', 'object', 'bar' )->{status}, 200, 'put_object("bucket", "object", "bar")'; is $s3->get_object( 'bucket', 'object' )->{content}, 'bar', 'get_object("bucket", "object")'; is $s3->get_object( 'bucket', 'object2' )->{status}, 404, 'get_object("bucket", "object2")'; like $s3->get_bucket('bucket')->{content}, qr(object), 'get_bucket("bucket")'; like $s3->get_bucket( 'bucket', {}, { 'list-type' => 2 } )->{content}, qr(object), 'get_bucket("bucket", {}, { "list-type" => 2 })'; is $s3->delete_object('bucket', 'object')->{status}, 204, 'delete_bucket("bucket", "object")'; is $s3->delete_object('bucket', 'object')->{status}, 204, 'delete_bucket("bucket", "object")'; is $s3->delete_bucket('bucket')->{status}, 204, 'delete_bucket("bucket")'; is $s3->delete_bucket('bucket')->{status}, 404, 'delete_bucket("bucket")'; done_testing;