9184 Commits

Author SHA1 Message Date
Ignasi Barrera
ec1f2375f8 Improved javadoc and parameter naming 2013-09-16 09:52:46 +02:00
Ignasi Barrera
174531ed13 Improved javadoc and parameter naming 2013-09-16 09:52:46 +02:00
Ignasi Barrera
ef7b7f7c52 Cleaned up ChefApi and ChefService interfaces
Cleaned up and renamed some methods to have a more consistent naming,
and improved the javadocs.
2013-09-13 17:55:02 +02:00
Ignasi Barrera
353651d31a Cleaned up ChefApi and ChefService interfaces
Cleaned up and renamed some methods to have a more consistent naming,
and improved the javadocs.
2013-09-13 17:55:02 +02:00
Ignasi Barrera
285b6530d7 JCLOUDS-253: Properly parse Chef Server version 2013-09-13 17:47:57 +02:00
Andrew Gaul
b2016703ad Add Atmos-specific MD5 checksum header
Tested against Atmos Online.
2013-09-11 18:05:47 -07:00
Andrew Gaul
6cc8e36f43 Add test for correct and incorrect contentMD5
Tested against atmos (skipped), aws-s3, azureblob, cloudfiles-us, and
filesystem (skipped).
2013-09-11 16:10:45 -07:00
Andrew Gaul
342ae65974 [JCLOUDS-279] Remove spurious executable bit 2013-09-11 15:54:48 -07:00
Ignasi Barrera
9cadf008f6 Cleanup tests
* Use TestNG assertions
* Formatted code in compute tests
* Removed unnecessary local variables in tests to avoid using them by
  mistake between independent tests.
2013-09-10 14:25:05 +02:00
Noorul Islam K M
2a8b1d3513 JCLOUDS-265: Add listEnvironmentNodes API in ChefService 2013-09-10 13:27:16 +02:00
Andrew Gaul
5b719900a0 [trivial] Remove unused variables 2013-09-09 22:38:41 -07:00
Andrew Gaul
8bdded3222 Delete containers after integration tests
Also return newly allocated containers to the pool.
2013-09-09 16:47:40 -07:00
Diwaker Gupta
0930b638e3 Revert "Disable timed temporary signed URLs for AWS-S3"
This reverts commit bc0abbaa073a9178f3aeb0d1541ea5fc50dded35 and
re-enables temp-signed URLs for S3.

Closes JCLOUDS-200
2013-09-09 15:28:31 -07:00
Andrew Gaul
3e5aa78521 Upgrade to Guava 15.0
Release notes:

https://code.google.com/p/guava-libraries/wiki/Release15
2013-09-09 10:54:43 -07:00
Noorul Islam K M
0853a45526 Use TestNG asserts 2013-09-09 16:22:28 +02:00
Noorul Islam K M
d4e2b339c3 Fix typo. 2013-09-09 16:22:24 +02:00
Andrew Gaul
65729acd6e Explain expected result in filesystem test 2013-09-06 09:26:43 -07:00
Andrew Gaul
4b52f1ff86 [trivial] Simplify use of Optional.or
Also correct checkArgument call.
2013-09-05 17:09:14 -07:00
Andrew Gaul
310a898bc3 Upgrade to Guava 15.0-rc1
Release notes:

https://code.google.com/p/guava-libraries/wiki/Release15
2013-09-04 19:56:00 -07:00
Andrew Gaul
0d6ef06076 Reduce testFileGetParallel input size to ~160 KB
Previously this test downloaded 45 MB in 30 seconds which failed on
slower connections, causing spurious test failures.  The larger input
size provides no benefit.
2013-09-04 19:49:46 -07:00
Andrew Gaul
d8490f872d Enable some Xlint warnings
Also address a handful of warnings.
2013-09-04 19:45:44 -07:00
Andrew Gaul
3ad6b275d4 Run some filesystem integration tests
Previously no integration tests ran, now we see:

Tests run: 43, Failures: 0, Errors: 0, Skipped: 8
2013-09-04 13:26:46 -07:00
Ignasi Barrera
063dcc4c9d Removed redundant binders 2013-09-04 10:44:32 +02:00
Ignasi Barrera
f5804867b3 Removed redundant binders 2013-09-04 10:44:32 +02:00
Noorul Islam K M
05e8d32d03 JCLOUDS-256: Add missing API to list environment nodes 2013-09-04 10:39:35 +02:00
Noorul Islam K M
c75c3b9e63 JCLOUDS-256: Add missing API to list environment recipes 2013-09-04 10:39:31 +02:00
Ignasi Barrera
5cc56f414a JCLOUDS-245/JCLOUDS-254: Fix live tests
Refactored the domain model to be immutable and addressed some
inconsistences with the Chef Server API model.

Removed all HEAD methods, as they have been removed from newer versions
of Chef. They were used to test the existance of a given resource, and
with newer versions the only way to do that is via a GET operation.

Now all live tests are passing for Community Chef 0.10.8, 11.0.6 and
Enterprise Chef.
2013-09-03 09:37:37 +02:00
Ignasi Barrera
72122753f4 JCLOUDS-245/JCLOUDS-254: Fix live tests
Refactored the domain model to be immutable and addressed some
inconsistences with the Chef Server API model.

Removed all HEAD methods, as they have been removed from newer versions
of Chef. They were used to test the existance of a given resource, and
with newer versions the only way to do that is via a GET operation.

Now all live tests are passing for Community Chef 0.10.8, 11.0.6 and
Enterprise Chef.
2013-09-03 09:37:37 +02:00
Andrew Gaul
e27ae6117c Reduce testPutFileParallel input size to ~160 KB
Previously this test uploaded ~10 MB in 30 seconds which failed on
slower connections, causing spurious test failures.  The larger input
size provides no benefit.
2013-09-02 19:33:15 -07:00
Andrew Gaul
b80bb48be3 Add trailing slash to Atmos listDirectories
This is more consistent with examples in the Atmos programmer's guide
and allows this operation to succeed when used with ViPR.
2013-08-30 09:07:12 -07:00
Andrew Bayer
de8ab57072 Cleanup of Client->Api getters for vcloud 2013-08-29 15:03:43 -07:00
Andrew Bayer
a61ad06cbf JCLOUDS-166, JCLOUDS-167 - Removing async from vcloud and Terremark APIs/providers 2013-08-29 11:29:14 -07:00
Andrew Gaul
5261f760b7 Support Integer.MAX_VALUE size PUTs
Previously jclouds enforced Integer.MAX_VALUE - 1 size.  Tested
against Atmos Online.
2013-08-28 13:52:06 -07:00
Ignasi Barrera
ac2a44ad6f JCLOUDS-246: Joined Hosted and Private Chef apis
Joined Hosted and Private Chef apis and renamed the provider
to Enterprise Chef.
2013-08-28 14:56:09 +02:00
Andrew Gaul
607b178c6b Simplify testPutFileParallel
Create only one temporary file and use explicit delete instead
finalization to remove it.
2013-08-27 23:06:18 -07:00
Andrew Gaul
4ca531aa98 Allocate new container name using prefix
Before we used the previous container name, which kept appending and
hit S3 limits during integration tests like:

Caused by: java.lang.IllegalArgumentException: Object 'gaul-blobstore27-4348532805015069992-1155797412711190448-1465016400636204031' doesn't match S3 bucket virtual host naming convention. Reason: Can't be null or empty. Length must be 3 to 63 symbols.. For more info, please refer to http://docs.amazonwebservices.com/AmazonS3/latest/index.html?BucketRestrictions.html
2013-08-27 23:02:55 -07:00
Andrew Gaul
15d9abead0 Skip testDirectory on S3
This test cannot succeed due to the way directories are implemented as
prefix pseudo-files in S3.
2013-08-27 23:01:04 -07:00
Diwaker Gupta
12f29fd8a9 JCLOUDS-217: Only decode strings that are actually encoded.
* Update HttpRequestTests to account for change in urlDecode.
* Related to JCLOUDS-200
2013-08-27 22:03:48 -04:00
Andrew Bayer
e6765cc5db JCLOUDS-150. De-async SQS. 2013-08-27 12:16:30 -07:00
Andrew Bayer
91d6736c22 JCLOUDS-150. De-async CloudWatch. 2013-08-27 12:16:30 -07:00
Zack Shoylev
100afba1d8 Skips tests for time signed URLs 2013-08-26 20:35:16 -05:00
Andrew Gaul
d387a25113 Enforce a non-negative content length 2013-08-26 20:20:49 -04:00
Andrew Gaul
1a003ee731 Handle large putBlob with filesystem blobstore
Previously large putBlob caused an OutOfMemoryError even with
repeatable Payloads.  Fixes JCLOUDS-248.
2013-08-26 20:17:46 -04:00
Francis Devereux
d60d2681d1 JCLOUDS-251: Swift: Delete chunks when deleting a multipart blob
Also:
- Make SwiftBlobIntegrationLiveTest.testMultipartChunkedFileStream more realistic by uploading a file large enough to be split into parts.
- JavaDoc fixes for SwiftBlobStore: don't reference nonexistent methods.
2013-08-25 10:20:22 -05:00
Francis Devereux
d05e77b8b6 Fix JCLOUDS-250 for the common case where blob names do not contain / 2013-08-25 10:17:14 -05:00
Francis Devereux
c11614400f Handle quoted ETags for OpenStack objects to fix JCLOUDS-247
This avoids a 'java.io.IOException: Unrecognized character: "' when a quoted ETag is encountered (which happens when getting a multipart blob from Rackspace Cloud).
2013-08-24 21:03:47 -05:00
Diwaker Gupta
622aec5566 Modify Strings2.urlDecode to input a string.
This is consistent with urlEncode.  Also consistently use urlDecoder in
DecodingMultimap for values.
2013-08-22 20:43:32 -04:00
Andrew Bayer
eabdfe2d92 JCLOUDS-242. Fixing AWSEC2SecurityGroupExtension based on JCLOUDS-242 fix. 2013-08-18 13:53:15 -04:00
Andrew Phillips
5c63ec4451 JCLOUDS-244: Aligning jclouds-chef project structure with main
* JClouds Chef -> Apache jclouds Chef in names
* chef-parent -> chef-project to match jclouds-project
2013-08-17 17:40:46 -04:00
Andrew Bayer
f7dd08a2a5 JCLOUDS-242. Fix security group creation on aws-ec2
Contributed by Richard Downer.
2013-08-14 11:07:59 -07:00