8 years agoJCLOUDS-457: BlobStore MultiPartUpload strategy
Roman Coedo [Fri, 18 Jul 2014 23:47:14 +0000 (01:47 +0200)] 
JCLOUDS-457: BlobStore MultiPartUpload strategy

The code related to the MultiPartUpload strategy has been added.
MultiPart uploads use an upload strategy (e.g. sequential vs parallel)
and also a slicing strategy to split the payload in different parts.

8 years agoJCLOUDS-457: Fix complete MPU archive size
Roman Coedo [Sun, 13 Jul 2014 10:32:23 +0000 (12:32 +0200)] 
JCLOUDS-457: Fix complete MPU archive size

The completeMultipartUpload operation is taking the archive size
parameter in MB but it should be bytes.

8 years agoJCLOUDS-457: BlobStore Skeleton
Roman Coedo [Sun, 13 Jul 2014 10:22:50 +0000 (12:22 +0200)] 
JCLOUDS-457: BlobStore Skeleton

The Amazon Glacier BlobStore skeleton has been added.

8 years agoJCLOUDS-457: Add JobStatus enum
Roman Coedo [Tue, 15 Jul 2014 21:08:35 +0000 (23:08 +0200)] 
JCLOUDS-457: Add JobStatus enum

Now the job status is stored as an enum instead of
a String. This is useful when comparing the status to
check if a job is completed, failed or still in progress.

8 years agoJCLOUDS-457: Test groups and improvements
Roman Coedo [Sat, 12 Jul 2014 10:28:23 +0000 (12:28 +0200)] 
JCLOUDS-457: Test groups and improvements

Test groups have been added. Also, the live tests were
refactored to reduce the number of RPCs.

8 years agoJCLOUDS-457: uploadPart return type fix
Roman C. Coedo [Thu, 3 Jul 2014 22:25:28 +0000 (00:25 +0200)] 
JCLOUDS-457: uploadPart return type fix

The uploadPart method now returns HashCode instead
of String.

8 years agoUse assertj extraction feature to shorten test
Roman C. Coedo [Thu, 3 Jul 2014 21:50:20 +0000 (23:50 +0200)] 
Use assertj extraction feature to shorten test

8 years agoUsing assertj assertions
Roman C. Coedo [Thu, 3 Jul 2014 14:15:21 +0000 (16:15 +0200)] 
Using assertj assertions

testng assertions have been replaced with assertj

8 years agoDefault value for aws identity/credential property
Roman C. Coedo [Wed, 2 Jul 2014 09:35:41 +0000 (11:35 +0200)] 
Default value for aws identity/credential property

Every project was using undefined properties in their pom.xml.
A default value for test.aws.identity and test.aws.credential was

8 years agoExclude the CONTRIBUTING file from the rat check
Ignasi Barrera [Wed, 2 Jul 2014 15:38:47 +0000 (17:38 +0200)] 
Exclude the CONTRIBUTING file from the rat check

8 years agoAdded the CONTRIBUTING file
Ignasi Barrera [Wed, 2 Jul 2014 15:08:32 +0000 (17:08 +0200)] 
Added the CONTRIBUTING file

8 years agoImprove use of assertj
Andrew Gaul [Wed, 2 Jul 2014 05:00:14 +0000 (22:00 -0700)] 
Improve use of assertj

8 years agoUse assertj fluent assertions where appropriate
Andrew Gaul [Sun, 29 Jun 2014 19:33:40 +0000 (12:33 -0700)] 
Use assertj fluent assertions where appropriate

This commit demonstrates a few instances where assertj yields more
informative error messages than testng assertEquals and assertTrue.
Note that we could replace all testng asserts with assertj.

8 years agoJCLOUDS-457: Added the retrieve output operations
Roman C. Coedo [Wed, 25 Jun 2014 20:20:44 +0000 (22:20 +0200)] 
JCLOUDS-457: Added the retrieve output operations

Now the Glacier client can retrieve data.

8 years agoJCLOUDS-457: Added listJobs operation
Roman C. Coedo [Wed, 25 Jun 2014 20:13:28 +0000 (22:13 +0200)] 
JCLOUDS-457: Added listJobs operation

Now the Glacier client supports the listJobs operation.

8 years agoJCLOUDS-457: Added describeJob operation
Roman C. Coedo [Wed, 25 Jun 2014 20:04:36 +0000 (22:04 +0200)] 
JCLOUDS-457: Added describeJob operation

Now Glacier client supports the describeJob operation.

8 years agoJCLOUDS-457: Multiple fixes
Roman C. Coedo [Fri, 27 Jun 2014 07:28:36 +0000 (09:28 +0200)] 
JCLOUDS-457: Multiple fixes

This commit addresses some problems found in the code:

- Now VaultMetadata returns a copy of the creation date instead
of their own instance.

- Added a checkNotNull for PaginatedVaultCollection iterable.

- Added a test for listVaults with an empty list of vaults.

8 years agoJCLOUDS-457: Cleanup for binder classes
Roman C. Coedo [Fri, 27 Jun 2014 07:35:03 +0000 (09:35 +0200)] 
JCLOUDS-457: Cleanup for binder classes

The binder classes were making unnecessary checks. They have
been cleaned up.

8 years agoJCLOUDS-457: Added initiateJob
Roman C. Coedo [Wed, 25 Jun 2014 19:26:12 +0000 (21:26 +0200)] 
JCLOUDS-457: Added initiateJob

Now the Glacier client supports the initiateJob operation.

8 years agoJCLOUDS-457: limit body size for specific test
Roman C. Coedo [Thu, 26 Jun 2014 20:40:56 +0000 (22:40 +0200)] 
JCLOUDS-457: limit body size for specific test

For each test, we were forcing the server to discard the content of
the request body on @BeforeMethod. We need to do this on tests with a
huge body, but it may interfere with other tests which actually use
the body data.  To fix this problem, we moved the body limit
restriction to the tests that require it.

8 years agoBug fix for ContentRange equals
Roman C. Coedo [Wed, 25 Jun 2014 00:21:50 +0000 (02:21 +0200)] 
Bug fix for ContentRange equals

8 years agoJCLOUDS-457: Added list Multipart operations
Roman C. Coedo [Sun, 1 Jun 2014 21:03:29 +0000 (23:03 +0200)] 
JCLOUDS-457: Added list Multipart operations

Added listParts and listMultipartUploads operations to the Glacier

8 years agoJCLOUDS-457: Call BeforeMethod and AfterMethod
Andrew Gaul [Sun, 22 Jun 2014 21:26:02 +0000 (14:26 -0700)] 
JCLOUDS-457: Call BeforeMethod and AfterMethod

Use these annotations to initialize before every test.  BeforeTest and
AfterTest initialize once before a single test in this suite.

8 years agoJCLOUDS-457: Added completeMultipartUpload and abortMultipartUplod.
Roman C. Coedo [Sun, 1 Jun 2014 19:19:25 +0000 (21:19 +0200)] 
JCLOUDS-457: Added completeMultipartUpload and abortMultipartUplod.

Now the Glacier client supports completeMultipartUpload and i
abortMultipartUpload operations.

8 years agoJCLOUDS-457: Clean up for the validators and the TreeHash class.
Roman C. Coedo [Thu, 19 Jun 2014 23:26:48 +0000 (01:26 +0200)] 
JCLOUDS-457: Clean up for the validators and the TreeHash class.

Now the validators use checkArgument instead of throwing an
exception by calling an static method.

There were some missing validators on the Async client, these
were fixed too.

Lastly, TreeHash inner class was removed. Now the factory methods
are in the TreeHash class.

8 years agoJCLOUDS-457: Added initiateMultipartUpload and uploadPart operations.
Roman C. Coedo [Sat, 31 May 2014 14:37:17 +0000 (16:37 +0200)] 
JCLOUDS-457: Added initiateMultipartUpload and uploadPart operations.

Now the Glacier client supports initiateMultipartUpload and
uploadPart operations.

8 years agoUse Square's mockwebserver
Roman C. Coedo [Thu, 19 Jun 2014 01:50:23 +0000 (03:50 +0200)] 
Use Square's mockwebserver

8 years agoJCLOUDS-457: Clean up for GlacierClientMockTest.
Roman C. Coedo [Wed, 18 Jun 2014 23:27:24 +0000 (01:27 +0200)] 
JCLOUDS-457: Clean up for GlacierClientMockTest.

GlacierClientMockTest was growing uncontrollably. This commit
is an attempt to fix this problem.

The first measure taken moves the duplicated strings to constants
and the JSON response bodies to resource files. In addition, some
repeated code was moved to static classes, where they can be reused.

We also use @BeforeTest and @AfterTest to make instances of the
MockWebServer and shut them down for each test.

8 years agoStore hashes as HashCode for type-safety
Andrew Gaul [Mon, 16 Jun 2014 23:46:56 +0000 (16:46 -0700)] 
Store hashes as HashCode for type-safety

8 years agoJCLOUDS-457: Part of the code has been cleaned up
Roman C. Coedo [Tue, 17 Jun 2014 22:36:27 +0000 (00:36 +0200)] 
JCLOUDS-457: Part of the code has been cleaned up

On the last commit we added TestUtils class. On this commit
the VaultNameValidator and the ThreeHashTest tests make use
of it.

GlacierClientMockTest was not using GlacierHeaders references.
This commit fixes this problem too.

In addition, the AWSRequestSignerV4, the TreeHash and the
VaultNameValidator classes are now final.

8 years agoJCLOUDS-457: Added deleteArchive and uploadArchive operations.
Roman C. Coedo [Tue, 17 Jun 2014 22:19:31 +0000 (00:19 +0200)] 
JCLOUDS-457: Added deleteArchive and uploadArchive operations.

Now the Glacier client supports upload and delete archive

An static TestUtils class has been made for the archive operations
tests. This class allows us to build payloads and build ByteSources.

8 years agoJCLOUDS-457: Changed the ArrayLists in TreeHash util to ImmutableLists.
Roman C. Coedo [Tue, 17 Jun 2014 08:23:34 +0000 (10:23 +0200)] 
JCLOUDS-457: Changed the ArrayLists in TreeHash util to ImmutableLists.

8 years agoAvoid buffering entire input when hashing
Andrew Gaul [Fri, 13 Jun 2014 20:50:42 +0000 (13:50 -0700)] 
Avoid buffering entire input when hashing

Also ensure that we close the InputStream.

8 years agoJCLOUDS-457: Added TreeHash util class and its test.
Roman C. Coedo [Fri, 13 Jun 2014 12:11:30 +0000 (14:11 +0200)] 
JCLOUDS-457: Added TreeHash util class and its test.

The TreeHash class stores two HashCodes, the linear and the
tree HashCode. The TreeHash class also has an static inner class
named Hasher, which allows us to calculate the hashes.

Both Hashes (tree and linear) are needed for the upload archive
and the multipart upload operations. When completing a multipart
upload operation we also need to calculate the tree hash of the
individual part's hashes.

8 years agoJCLOUDS-457: Use random vault names in live tests
Roman C. Coedo [Fri, 13 Jun 2014 12:00:06 +0000 (14:00 +0200)] 
JCLOUDS-457: Use random vault names in live tests

Now the live tests are not conditioned by the current state of the
account used.

8 years agoRenamed FalseIfVaultNotEmpty to be more generic. deleteVault should return false...
Roman C. Coedo [Sat, 31 May 2014 09:58:19 +0000 (11:58 +0200)] 
Renamed FalseIfVaultNotEmpty to be more generic. deleteVault should return false on any IllegalArgumentException.

8 years agoJCLOUDS-546: Remove Javadoc @author annotations
Andrew Gaul [Sun, 8 Jun 2014 04:11:47 +0000 (21:11 -0700)] 
JCLOUDS-546: Remove Javadoc @author annotations

Annotations removed with:

find -name \*.java | xargs sed -i /@author/d

Empty Javadoc removed with multiple iterations of:

find -name \*.java | xargs sed -i -z 's/ \*\n \*\// \*\//'
find -name \*.java | xargs sed -i -z 's/ \* \n \*\// \*\//'
find -name \*.java | xargs sed -i -z 's/\/\*\*\n \*\/\n//'

8 years agoRemoved some unused constructors from GlacierResponseException
Roman C. Coedo [Fri, 30 May 2014 20:54:20 +0000 (22:54 +0200)] 
Removed some unused constructors from GlacierResponseException

8 years agoAdded some fixes to the live test and a few things on the rest of the code for clarity.
Roman C. Coedo [Fri, 30 May 2014 20:04:51 +0000 (22:04 +0200)] 
Added some fixes to the live test and a few things on the rest of the code for clarity.

8 years agoJCLOUDS-457: Added Glacier vault operations
Roman C. Coedo [Tue, 13 May 2014 10:08:49 +0000 (12:08 +0200)] 
JCLOUDS-457: Added Glacier vault operations

The Glacier client can create, delete, read, and list vaults.

8 years agoJCLOUDS-457: Created the skeleton of the Glacier API.
Roman C. Coedo [Tue, 22 Apr 2014 10:15:03 +0000 (12:15 +0200)] 
JCLOUDS-457: Created the skeleton of the Glacier API.

8 years agoAddress Checkstyle violations
Andrew Gaul [Tue, 13 May 2014 07:38:53 +0000 (00:38 -0700)] 
Address Checkstyle violations

8 years agoRemove incubator references
Andrew Gaul [Mon, 12 May 2014 15:54:33 +0000 (08:54 -0700)] 
Remove incubator references

8 years agoUpdating to 1.8.0-SNAPSHOT
Andrew Bayer [Tue, 17 Dec 2013 19:50:23 +0000 (11:50 -0800)] 
Updating to 1.8.0-SNAPSHOT

9 years agoCleaning up lurking copyright issues/NOTICE txt
Andrew Bayer [Mon, 17 Jun 2013 02:43:32 +0000 (19:43 -0700)] 
Cleaning up lurking copyright issues/NOTICE txt

9 years agoAdd license headers to src/test/resources where possible, more fine-grained RAT exclu...
Andrew Bayer [Tue, 11 Jun 2013 16:36:41 +0000 (09:36 -0700)] 
Add license headers to src/test/resources where possible, more fine-grained RAT exclusions

9 years agoRemoving header.txt that causes license/notice not to show up in tarball
Andrew Bayer [Fri, 31 May 2013 21:47:39 +0000 (14:47 -0700)] 
Removing header.txt that causes license/notice not to show up in tarball

9 years agoJCLOUDS-66. Update Maven project metadata for ASF.
Andrew Bayer [Thu, 23 May 2013 20:07:24 +0000 (13:07 -0700)] 
JCLOUDS-66. Update Maven project metadata for ASF.

9 years agoJCLOUDS-80. Inherit apache-rat plugin config.
Andrew Bayer [Wed, 22 May 2013 14:26:51 +0000 (10:26 -0400)] 
JCLOUDS-80. Inherit apache-rat plugin config.

9 years agoJCLOUDS-63. exclude gc.log so that cloudbees builds don't break
adriancole [Fri, 17 May 2013 16:55:30 +0000 (09:55 -0700)] 
JCLOUDS-63. exclude gc.log so that cloudbees builds don't break

9 years agoJCLOUDS-63. exclude .repository so that cloudbees builds don't break
adriancole [Fri, 17 May 2013 13:51:54 +0000 (06:51 -0700)] 
JCLOUDS-63. exclude .repository so that cloudbees builds don't break

9 years agoJCLOUDS-63. updated to ASF headers via mvn com.mycila.maven-license-plugin:maven...
adriancole [Fri, 17 May 2013 05:40:50 +0000 (22:40 -0700)] 
JCLOUDS-63. updated to ASF headers via mvn com.mycila.maven-license-plugin:maven-license-plugin:format

9 years agoJCLOUDS-63. removed unnecessary headers
adriancole [Fri, 17 May 2013 05:36:21 +0000 (22:36 -0700)] 
JCLOUDS-63. removed unnecessary headers

9 years agoJCLOUDS-63. adjust license plugin and header file to ASF license scheme; change java...
adriancole [Fri, 17 May 2013 05:23:44 +0000 (22:23 -0700)] 
JCLOUDS-63. adjust license plugin and header file to ASF license scheme; change java to comment style; include maven pom.xml

9 years agoJCLOUDS-63. remove copyright notice from README
adriancole [Fri, 17 May 2013 05:20:21 +0000 (22:20 -0700)] 
JCLOUDS-63. remove copyright notice from README

9 years agoJCLOUDS-46: Added DISCLAIMER file
Ignasi Barrera [Wed, 15 May 2013 07:36:18 +0000 (09:36 +0200)] 

9 years agoJCLOUDS-30. Switch to 2 space indents for POM files.
Andrew Bayer [Mon, 13 May 2013 17:41:41 +0000 (10:41 -0700)] 
JCLOUDS-30. Switch to 2 space indents for POM files.

9 years agoJCLOUDS-28. Add rat check to POM.
Andrew Bayer [Fri, 10 May 2013 23:27:17 +0000 (16:27 -0700)] 
JCLOUDS-28. Add rat check to POM.

9 years agoJCLOUDS-22. Switch groupId to org.apache.jclouds, change parent POM, remove old distr...
Andrew Bayer [Fri, 10 May 2013 23:29:01 +0000 (16:29 -0700)] 
JCLOUDS-22. Switch groupId to org.apache.jclouds, change parent POM, remove old distributionManagement content, add ASF repos.

9 years agoreworked pom for top-level
adriancole [Mon, 29 Apr 2013 05:41:44 +0000 (22:41 -0700)] 
reworked pom for top-level

9 years agoorganized aws code into its own subdir
adriancole [Mon, 29 Apr 2013 04:50:42 +0000 (21:50 -0700)] 
organized aws code into its own subdir