Commit Graph

8164 Commits

Author SHA1 Message Date
Andrew Gaul 8cbd2bb7fb 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 14:10:02 -07:00
Andrew Gaul 0143a56fb5 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:36:18 -07:00
Andrew Gaul e2489f3942 Simplify testPutFileParallel
Create only one temporary file and use explicit delete instead
finalization to remove it.
2013-09-02 19:36:15 -07:00
Andrew Gaul 8e16ecb3ec 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:08:13 -07:00
Andrew Bayer 6add9da5aa Deprecate vcloud/Terremark async interfaces and *Client classes 2013-08-29 11:28:42 -07:00
Andrew Gaul f3e43b34f6 Support Integer.MAX_VALUE size PUTs
Previously jclouds enforced Integer.MAX_VALUE - 1 size.  Tested
against Atmos Online.
2013-08-28 13:52:34 -07:00
Francis Devereux aee3c10a93 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-28 13:00:47 -07:00
Andrew Gaul 0d0d5a0a03 Handle large putBlob with filesystem blobstore
Previously large putBlob caused an OutOfMemoryError even with
repeatable Payloads.  Fixes JCLOUDS-248.
2013-08-27 23:05:21 -07:00
Andrew Gaul 12860851b1 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:03:14 -07:00
Andrew Gaul f899e39777 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:47 -07:00
Andrew Phillips 6f4c796f73 [maven-release-plugin] prepare for next development iteration 2013-08-27 11:43:49 -04:00
Andrew Phillips cd34259487 [maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc2 2013-08-17 12:07:33 -04:00
Andrew Bayer ffff38561a JCLOUDS-242. Fix security group creation on aws-ec2.
Contributed by Richard Downer.
2013-08-15 12:24:23 -04:00
Andrew Phillips 66e19a6bce Revert "[maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc1"
This reverts commit 96fae29fde.
2013-08-14 17:15:36 -07:00
Andrew Phillips 96fae29fde [maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc1 2013-08-07 14:17:23 -04:00
Everett Toews ece92aea4d Support IAD region for Rackspace providers. 2013-08-06 22:23:05 -05:00
Andrew Gaul cbcfc90239 Disable timed temporary signed URLs for AWS-S3
This functionality uncovered subtleties in URL parameter encoding
which result in random failures integration tests.  References
JCLOUDS-200.
2013-08-06 14:19:47 -07:00
Andrew Gaul 2addcbf9d2 Add live test for JCLOUDS-233 2013-08-06 11:55:32 -07:00
Tom Manville 8dfb894007 Handle multiple of MAX_BLOCK_SIZE for Azure MPU
Currently files are not properly uploaded if they are a multiple of
MAX_BLOCK_SIZE.  Fixes JCLOUDS-233.
2013-08-06 11:55:25 -07:00
Diwaker Gupta faecd45a01 Enable time-bound signed URL tests for HPCS.
HP does, in fact, support configurable temporary signed URLs:
http://docs.hpcloud.com/api/object-storage#temp_url

References JCLOUDS-231
2013-08-05 21:38:06 -07:00
Andrew Gaul c0a438b671 Revert "A 401 error should result in re-authenticating for a new token"
This reverts commit 7b0cd9be43.

References JCLOUDS-231
2013-08-05 21:37:51 -07:00
Andrew Phillips 78e5832fd2 Revert "[maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc0"
This reverts commit 61baf2ada2.
2013-08-05 20:38:51 -04:00
Andrew Phillips 0554c6f824 Revert "[maven-release-plugin] prepare for next development iteration"
This reverts commit df6844474c.
2013-08-05 20:38:20 -04:00
Andrew Phillips df6844474c [maven-release-plugin] prepare for next development iteration 2013-08-02 11:59:22 -04:00
Andrew Phillips 61baf2ada2 [maven-release-plugin] prepare release jclouds-1.6.2-incubating-rc0 2013-08-02 11:59:16 -04:00
Zack Shoylev 8688d8e0c3 When creating a server, allow attaching server to custom network
https://issues.apache.org/jira/browse/JCLOUDS-202
2013-08-01 21:58:10 -05:00
Andrew Bayer 24466fdaab Deprecating async/client classes for a number of apis/providers
Also added dummy *Api classes for classes that'll be renamed from
*Client->*Api in 1.7.0.
2013-08-01 17:58:26 -07:00
Andrew Bayer 0cbcc7d642 JCLOUDS-221. Add availabilityZone to spot price history. 2013-08-01 17:53:23 -07:00
Andrew Bayer e25a0843d4 JCLOUDS-220. Adding projectId to a bunch of CloudStack API options 2013-08-01 17:16:15 -07:00
Andrew Phillips d009a5ae5d JCLOUDS-155: Making header handling in OpenStack case-insensitive
Submitted by Rodney Beede
2013-08-01 19:11:33 -04:00
Everett Toews d9e5ba15bf Support Disk Configuration Extension in NovaTemplateOptions 2013-08-01 16:50:43 -05:00
Everett Toews 01f118b4ef Support Disk Configuration Extension 2013-08-01 16:50:43 -05:00
Andrew Gaul a83564af79 Update URL for commons-logging-1.1.1-bin.tar.gz
This allows testCopyUrl to succeed against blobstore integration
tests.
2013-08-01 10:36:24 -07:00
Diwaker Gupta 89af1466a8 URL encode string to sign.
As recommended at
http://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html:

"You can also send a signature as a URL-encoded query-string parameter
in the URL for the request."

Also deals with some of the craziness of URL encoding/decoding in
jclouds.

References JCLOUDS-200
2013-07-31 16:33:18 -07:00
Andrew Phillips e11cc87cfa JCLOUDS-200: Consolidate all feature-specific in the AWS provider
Follow-up to b7d75f79
2013-07-26 15:26:06 -04:00
Diwaker Gupta 4b5b89ae75 Preserve blob metadata for AWS-S3 MPU
Specifically preserve content-type and content-disposition for
multi-part uploads.

Fixes JCLOUDS-204
2013-07-25 09:50:55 -07:00
Diwaker Gupta b7d75f7949 AWS-S3 configurable temporary signed URL support
Introduces AWSS3BlobRequestSigner, which reuses the
RequestAuthorizeSignature filter for most of the heavy lifting.
Other implementation details based on [1].

Tested with AWSS3BlobSignerLiveTest, in particular,
testSign(Get|Put)UrlWithTime.

Closes JCLOUDS-200

[1] http://s3.amazonaws.com/doc/s3-developer-guide/RESTAuthentication.html
2013-07-24 15:23:40 -07:00
Ignasi Barrera a06aa07888 JCLOUDS-149: Reuse checkstyle configuration 2013-07-22 22:55:20 +02:00
Andrew Bayer bbe80c1e0b JCLOUDS-199. CloudStack live tests against ACS 4.2 simulator cleanup.
- ACS 4.x doesn't like taking SSH pub keys from the filesystem, so
    generate them on the fly.
- vm.getDisplayName() can be null now.
- Add new possible resource limit types.
- Default to looking template=osFamily=CENTOS, since that's the only
    template guaranteed to be there in the simulator.
- Use adminJobComplete instead of jobComplete in admin tests
- Accept capacity/usage/etc of 0.
- Premium configuration category not present in ACS.
- Sleep a bit between deleting a domain and verifying it's not there
    any more. Also expect an IllegalStateException.
- Given that there are issues deleting zones at the moment (through
    the UI, too), use a different zone for pod and zone tests.

Still failing tests:
- pretty much everything that creates a VM and expects to log into it,
    but that's simulator-specific.
- Zone deletion, due to a bug in ACS, apparently.
- Registering and creating templates
- creating volumes from snapshots, and attaching volumes
2013-07-22 13:15:50 -07:00
Andrew Bayer 4ffff04651 JCLOUDS-195. Add egress firewall rules for CloudStack in 1.6.x 2013-07-21 13:37:20 -07:00
Andrew Bayer b72f440a62 Allow skipping duplicate-finder-plugin by setting skipDuplicateFinder property to true 2013-07-17 12:44:16 -07:00
Andrew Phillips 2ebde8c556 Follow-up to Azureblob cleanup
See discussion at https://github.com/jclouds/jclouds/pull/66
2013-07-17 10:35:24 -07:00
John Kew a6f6f04d75 Cleanup of Azureblob code; as per pull request review. Additional items
not covered here are assigned specific bug ids.
2013-07-17 10:35:18 -07:00
John Kew 3a734b897c JCLOUDS-161: large blob support for Azure
Large blob support for AzureClient; the next step of this is to
support PutOptions.multipart and digest a blob into 4M parts. This
just implements the Azure interaction.
2013-07-17 10:35:13 -07:00
Andrew Gaul 6c8679af66 Expect exception from FilePayload.getInput
Previously the constructor threw this.  Fixes regression from ac58a70.
2013-07-16 08:29:02 -07:00
Andrew Gaul 859eaca9fd Do not eagerly check for existence in FilePayload
This is a TOCTOU violation and FilePayload.getInput already propagates
this.  This commit allows external callers like jclouds-cli to
introspect on the exception type, returning a more friendly error
message in some situations.
2013-07-15 23:34:33 -07:00
Diwaker Gupta 76e5e80e5b Introduce StripExpectHeader filter and a property to control it.
Some providers (specifically HP Cloud and Google Cloud Storage) do not
properly support Expect: 100-continue headers. JDK7 is stricter in its
handling of the Expect header than JDK6 -- in particular, it expects
servers to properly respond to an expect header and times out only if a
prior timeout did not exist on the underlying HTTP connection. As a
result, JDK7 tests against these providers hang and fail.

This commit introduces a new filter -- appropriate called
StripExpectHeader -- that is controlled by the property
jclouds.strip-expect-header. The property defaults to false to preserve
existing behavior but allows applications to tweak Expect header
handling.

Tested by running HPCS live tests with JDK7 -- previously most of these
tests would fail with timeouts.

Closes JCLOUDS-181
2013-07-11 15:13:11 -07:00
zack-shoylev 5b9419a499 Upgrade to gson 2.2.4
https://issues.apache.org/jira/browse/JCLOUDS-117
2013-07-11 13:54:52 -07:00
Andrew Gaul b31bda2005 Set provider id in AtmosClientLiveTest
This allows Atmos live tests to run.
2013-07-10 22:14:42 -07:00
Andrew Gaul ced5abdd77 Add Swift-specific MD5 checksum header
Tested against cloudfiles-us, hpcloud-objectstorage, and
swift-keystone.  Reference for ETag:

https://answers.launchpad.net/swift/+question/157064
2013-07-09 21:56:11 -07:00