Commit Graph

2551 Commits

Author SHA1 Message Date
Ka-Hing Cheung e0bafd4c10 list MPU parts with prefix listing instead of marker
we now use segment conventions that allow us to do more
efficient listing
2015-06-23 20:06:10 -07:00
Andrew Gaul 38fa41d056 JCLOUDS-941: Ignore metadata tests on Mac OS X
Also make testOverwriteBlobMetadata consistent with other tests.
2015-06-22 11:50:20 -07:00
Iván López 37a014ae00 JCLOUDS-941: Auto-detect filesystem Content-Type
When a filesystem blob does not have content metadata and when users
set jclouds.filesystem.auto-detect-content-type to tru, probe the file
type to return to clients.  This is useful when using jclouds to serve
an existing filesystem.
2015-06-21 22:55:57 -07:00
Ka-Hing Cheung b8b20c16f5 use segment names similar to those created by python-swiftclient
Currently swift creates blob-1, blob-2... blob-n for multipart
upload segments, which are very common names that can easily
collide with normal objects. This changes the naming convention
to that of python-swiftclient (the `swift' command line).

python-swiftclient also uses a different segment container by
default, that's not implemented by this patch
2015-06-19 17:34:40 -07:00
Andrew Gaul 1f7f8c8c86 Refine HTTP 416 into IllegalArgumentException
Providers yield different messages so remove parsing from test.  Also
narrow exception handling scope.TTP 416 into IllegalArgumentException

Providers yield different messages so remove parsing from test.  Also
narrow exception handling scope.
2015-06-16 21:47:30 -07:00
Andrew Gaul b0dfae1092 Use a configurable timeout for awaitConsistency
This allows setting to zero for strongly-consistency implementations
of s3 and swift stores.
2015-06-15 15:45:17 -07:00
Ka-Hing Cheung 320742c6b5 send HEAD instead of GET for blobMetadata 2015-06-11 17:33:51 -07:00
Ka-Hing Cheung 6ed95d8968 fix range get for manifest object
swift doesn't return the etag if the client is doing a range
get of a manifest (SLO or DLO), this fixes SwiftObject so
etag is optional
2015-06-10 13:38:55 -07:00
Zack Shoylev 25ec655d74 Adds support for the orchestration type. 2015-06-10 12:39:10 -05:00
Andrew Gaul 454a30a484 Set Atmos object size to content metadata size 2015-06-08 14:28:42 -07:00
Andrew Gaul 4f6af13329 JCLOUDS-894: Swift portable MPU improvements 2015-06-08 11:20:09 -07:00
Andrew Gaul 04c4d5c916 JCLOUDS-894: Odds and ends for other providers 2015-06-06 16:32:16 -07:00
Andrew Gaul 9a02157a7f JCLOUDS-894: Add portable multipart upload for Swift 2015-06-06 16:32:16 -07:00
Andrew Gaul ae157991ba JCLOUDS-894: Add portable multipart upload for S3 2015-06-06 16:32:16 -07:00
Andrew Gaul 00734ee755 JCLOUDS-894: Move MultipartUploadSlicingAlgorithm to core 2015-06-06 16:32:16 -07:00
Ignasi Barrera 97c160879e Propagate an AuthorizationException on OAuth client errors 2015-06-05 14:32:49 +02:00
Andrew Gaul 5095590d60 JCLOUDS-894: Do not add unnecessary ETag quotes
Previously
AWSS3BlobIntegrationLiveTest.testMultipartUploadMultipleParts failed.
2015-05-26 11:19:58 -07:00
Ignasi Barrera 7053a7870d JCLOUDS-897: Remove the Rocoto dependency 2015-05-21 00:26:57 +02:00
Zack Shoylev f397bebeb2 JCLOUDS-894 Multipart upload code fixes for swift 2015-05-12 19:13:15 -05:00
Karel Vervaeke 2c53ef38a5 JCLOUDS-901 Moved CloudStack javadocs around
During the rename from *Client to *Api the javadocs were shuffled
around. This commit moves them back to the correct methods.
2015-05-07 15:18:39 +02:00
Stuart Hendren 31749cba5d JCLOUDS-207: Key Pair and Security Groups created by jclouds are not removed when the node is destroyed
The names created do not match those searched for.

They are created in FormatSharedNamesAndAppendUniqueStringToThoseWhichRepeat.java
and have are of this form jclouds#I-0#e96.

But for example jclouds#I-0#us-east-1#* is used as the search term.
2015-05-07 10:50:14 +02:00
Jakub Bartecek be6ce141b6 Options use boolean primitive instead of object
The Boolean object makes passing null value possible, which would cause NPE.
2015-05-05 10:55:39 +02:00
Jakub Bartecek 867b7f52e4 Add option to remove a volume, when removing docker container 2015-05-05 10:55:38 +02:00
Andrea Turli 26d925c2de add ConnectionSpec.CLEARTEXT for DockerEngine running w/t TLS 2015-05-04 09:08:44 +02:00
Ignasi Barrera 4863bb83a9 Remove the deprecated methods in Chef 2015-05-03 22:22:44 +02:00
Andrew Gaul deeebe46f7 JCLOUDS-894: Expose Swift multipart operations 2015-05-01 13:32:36 -07:00
Andrew Gaul 9128ae515f JCLOUDS-894: Expose S3 multipart operations 2015-05-01 13:32:35 -07:00
Andrew Gaul ca543f3cdd Add S3 list multipart parts
TODO: pagination, etc.?
2015-05-01 13:32:35 -07:00
Andrew Gaul df3c91ef4a JCLOUDS-894: Expose legacy Swift multipart operations
Not yet implemented
2015-05-01 13:32:35 -07:00
Andrew Gaul 66516106a2 JCLOUDS-894: Expose Atmos multipart operations
Atmos does not support multipart uploads
2015-05-01 13:32:28 -07:00
Zack Shoylev 786e5d8e25 Adds windows ACL code for file permissions, fixes build. 2015-04-28 14:35:58 -05:00
Ignasi Barrera 2b855809a4 JCLOUDS-890: Prevent NPE when generating the Chef attributes file 2015-04-23 23:21:14 +02:00
Ignasi Barrera ba93170813 Amended OAuth API pom.xml 2015-04-15 11:03:26 +02:00
Ignasi Barrera 1c8b7764f6 Promote the OAuth v2 API 2015-04-15 10:56:55 +02:00
Andrew Gaul 21a422bc71 Fix testCopyIfModifiedSince for AWS S3 2015-04-10 23:11:21 -07:00
Andrea Turli e4477e579a DockerTemplateOptions: use the correct return type 2015-04-10 15:36:43 +02:00
Zack Shoylev a6ca5a363a Update cloudfiles poms 2015-04-09 14:20:28 -05:00
Andrew Gaul 0c6052f803 JCLOUDS-651: Swift copy object content metadata 2015-04-08 22:51:49 -07:00
Andrew Gaul a43dcece16 JCLOUDS-651: S3 copy object content metadata 2015-04-08 18:07:28 -07:00
Andrew Kennedy 1685758f0d Updates for new Docker port mapping option based on review comments
- Change to portBindings and Map intead of List
- Tidy up formatting for DockerTemplateOptions
- Remove superfluous checkNotNull calls
- Document the Map contents for portBindings option
- Remove unused import to fix Checkstyle
2015-04-08 21:38:00 +02:00
Andrew Kennedy 0cea1efd2f Add template option to specify direct (unmapped) ports 2015-04-08 21:38:00 +02:00
Zack Shoylev a3b7f3ab80 Merge remote-tracking branch 'promote-jclouds-labs-openstack-local/promote-rackspace-cloudfiles-moved' 2015-04-07 16:24:43 -05:00
Andrew Gaul d8f48c48b4 JCLOUDS-651: Copy Swift system metadata 2015-04-06 15:35:59 -07:00
Zack Shoylev 576005a335 Adds live test. 2015-04-06 15:35:59 -07:00
Zack Shoylev a1cbec1092 Allows copying an object and modifying metadata (user and object) 2015-04-06 15:35:58 -07:00
Andrew Gaul 67d731f054 JCLOUDS-651: Add Swift server-side copyBlob
This has some limitations as discussed in JCLOUDS-872.
2015-04-02 15:36:54 -07:00
Andrew Gaul b85068ca7f JCLOUDS-651: Add S3 server-side copyBlob 2015-04-02 15:36:53 -07:00
Andrew Gaul 6a7a52642a Convert Windows to Unix line endings
Converted with:

mvn checkstyle:checkstyle --quiet -Dcheckstyle.output.file=/dev/stdout -Dcheckstyle.output.format=plain | grep warn | cut -f1 -d: | uniq | xargs -n 1 dos2unix
2015-03-31 18:25:54 -07:00
Andrew Gaul fadbbad8ac JCLOUDS-732: Filesystem portable object ACLs 2015-03-31 15:33:34 -07:00
Andrew Gaul deff8d8413 JCLOUDS-660: Filesystem portable container ACLs 2015-03-31 15:33:33 -07:00
Andrew Gaul 4f566d3b6e Address and suppress FindBugs warnings 2015-03-30 20:40:10 -07:00
Andrew Gaul df8407a1e8 Fix error-prone StringEquality 2015-03-30 19:06:48 -07:00
Andrew Gaul db5acb8588 Fix error-prone DepAnn 2015-03-30 19:06:48 -07:00
Andrew Gaul 866ac3fabb Fix error-prone PreconditionsCheckNotNullPrimitive 2015-03-30 19:06:48 -07:00
Ignasi Barrera 2a12587bf2 Next development version 2.0.0-SNAPSHOT 2015-03-24 11:07:27 +01:00
Ignasi Barrera 225c45fd4f Apache jclouds 1.9.0 release 2015-03-24 11:06:18 +01:00
Ignasi Barrera 565a102c15 Next development version 2.0.0-SNAPSHOT 2015-03-24 11:02:39 +01:00
Ignasi Barrera ce3eeefd85 Apache jclouds 1.9.0 release 2015-03-24 10:59:36 +01:00
Ignasi Barrera 944f14c687 Next development version 2.0.0-SNAPSHOT 2015-03-24 10:56:30 +01:00
Ignasi Barrera 08fae12ef4 Apache jclouds 1.9.0 release 2015-03-24 10:54:19 +01:00
Ignasi Barrera f469cf8b51 Next development version 2.0.0-SNAPSHOT 2015-03-24 10:52:01 +01:00
Ignasi Barrera bb41ed4341 Apache jclouds 1.9.0 release 2015-03-24 10:35:42 +01:00
Ignasi Barrera 4db2b75add Fixes OpenStack extension namespace configuration
* Improves extension namespace configuration to use Guice multibindings
  so each provider can cleanly provide their own namespaces.
* Fixes the HPCloud Compute volume attachment namespace and adds the
  corresponding live tests.
* Fixes the Rackspace CloudServers UK volume attachment namespace.
2015-03-23 22:40:43 +01:00
Zack Shoylev 8217248571 Adds a rackspace-specific test and a fix for the volume-attach extension problem. 2015-03-20 11:41:24 -05:00
Everett Toews 3077a0cc7c Modernize the VolumeAttachmentApiLiveTest 2015-03-20 11:41:24 -05:00
Everett Toews fdb2cfe567 Deprecate Nova API for volumes in favour of Cinder API for volumes 2015-03-20 10:08:07 +01:00
Andrea Turli 0418acb6e7 AzureCompute: initial work to support ComputeServiceAdapter
improve DeploymentToNodeMetadata
enhance Deployment value object
add support for get/set NetworkConfiguration
added AzureComputeTemplateOptions to manage networkConfigurations
add support for create/checkAvailable/list storageAccounts
add support for inboundPorts
add more RoleSize
add support for SecurityGroupExtension by using NetworkSecurityGroup
fix destroy node
fix LocationToLocation
fix OsImageToImage
2015-02-27 12:30:50 +01:00
Matt Hurne bf00298f74 JCLOUDS-795: Retry with backoff upon receiving a 500 response from S3 with error code 'InternalError' 2015-02-25 18:30:30 -08:00
Andrew Gaul 85637ccee2 Fix ParseS3ErrorFromXmlContentTest
References JCLOUDS-794.
2015-02-25 18:29:17 -08:00
Andrew Gaul d7e25d9cc6 Use injected metadata instead of new instance
This addresses a regression from JCLOUDS-794.
2015-02-25 17:24:44 -08:00
Ka-Hing Cheung a2ee7341e3 fix non-recursive list of dir with empty prefix 2015-02-23 17:52:42 -08:00
Andrew Gaul a56fa3926a JCLOUDS-732: Swift portable object ACLs
Swift does not implement support for these:

https://blueprints.launchpad.net/swift/+spec/object-acls
2015-02-21 10:28:02 -08:00
Andrew Gaul 6c8be12703 JCLOUDS-732: S3 portable object ACLs 2015-02-21 10:28:02 -08:00
Andrew Gaul d8aea21f72 JCLOUDS-732: Local blobstore portable object ACLs
Intentionally unimplemented.
2015-02-21 10:28:02 -08:00
Andrew Gaul a49fb7941f JCLOUDS-732: Atmos portable object ACLs 2015-02-21 10:28:01 -08:00
Ka-Hing Cheung be7b9f4cc4 fix non-recursive list with empty prefix 2015-02-20 23:29:48 -08:00
Ignasi Barrera 7c9d6f7627 JCLOUDS-832: Don't expose the password credentials in the toString method 2015-02-20 12:31:57 +01:00
Zack Shoylev 07f1fb69a7 Fixes more tests with timing problems 2015-02-18 03:46:37 -06:00
Andrew Gaul 2553b09bb4 Build S3 multi-delete request with an XML library
This commit addresses test failures in
AWSS3BlobIntegrationLiveTest.deleteMultipleObjects.
2015-02-15 10:25:23 -08:00
Andrew Gaul c14141dec3 JCLOUDS-144: Swift multi-blob delete 2015-02-15 01:06:04 -08:00
Andrew Gaul ecc8548fbd JCLOUDS-144: S3 multi-blob delete 2015-02-15 01:06:03 -08:00
Zack Shoylev f6d43f6962 Fixes blob-related tests that fail occasionally 2015-02-13 17:25:15 -06:00
Andrew Gaul 4bb319a0cc JCLOUDS-820: Support multi-delete for generic S3
Tested against AWS and DreamObjects.  This commit only moves and
renames code.
2015-02-13 06:23:16 -08:00
Andrew Gaul ba2f8ac232 JCLOUDS-258: Support MPU for generic S3
Tested against AWS-S3 and DreamObjects.  This commit only moves and
renames code although some classes are duplicated for deprecation
purposes.
2015-02-12 17:59:33 -08:00
Andrew Gaul fcc991fa22 JCLOUDS-660: Swift portable container ACLs
Not implemented for legacy Swift.
2015-02-12 17:26:48 -08:00
Andrew Gaul ec3f035487 JCLOUDS-660: S3 portable container ACLs 2015-02-12 17:26:48 -08:00
Andrew Gaul 994f84e4f5 JCLOUDS-660: Local blobstore portable container ACLs
Intentionally unimplemented.
2015-02-12 17:26:47 -08:00
Andrew Gaul 261bb7eece JCLOUDS-660: Legacy Swift portable container ACLs
Intentionally unimplemented.
2015-02-12 17:26:47 -08:00
Andrew Gaul c1549e8ae2 JCLOUDS-660: Atmos portable container ACLs 2015-02-12 17:26:47 -08:00
Andrew Gaul eacfc8fdf1 Handle removal during iteration
Previously this threw UnsupportedOperationException due to
findGrantsForGrantee returning an immutable view.
2015-02-12 17:26:47 -08:00
lbortman 3e8413335d add availability zone to server 2015-02-12 13:47:00 -08:00
Zack Shoylev 8439c7238d Make cloudfiles live tests more stable by making them single threaded 2015-02-11 13:28:21 -06:00
Jeremy Daggett 59fc23249f Removed wildcard from getAttachInterfaceApi and fixed formatting 2015-02-11 09:42:22 -08:00
Evgeny Tarasenko a356ca9991 Implemented Nova compute attach interfaces extension. 2015-02-11 08:23:20 -08:00
Zack Shoylev a8982c48c6 Fixes swift - create container with metadata 2015-02-10 15:13:25 -06:00
Zack Shoylev ba4435040f Fixes a NPE in swift when maxResults is set to 0 2015-02-09 18:34:44 -06:00
Andrew Gaul 8a2c821e13 JCLOUDS-794: Use bogus URL for generic S3 endpoint
This prevents users from accidentally connecting to AWS.
2015-02-04 13:42:03 -08:00
Ignasi Barrera acd06b3024 JCLOUDS-462: Fix AWSEC2TemplateBuilderLiveTest 2015-02-04 11:04:18 +01:00
Ignasi Barrera 9a8a604bac Added C4 instance types 2015-02-04 11:04:18 +01:00
Andrew Gaul 10690f9293 Handle null return value from File.listFiles
This matches the behavior of other call sites.
Fixes andrewgaul/s3proxy#39.
2015-02-03 20:22:58 -08:00
Zack Shoylev 9fc2ca98a0 Adds a flavor filter for nova to make sure the Ubuntu image works well 2015-01-30 20:13:55 -06:00
Zack Shoylev c64470e0b1 Fixes flavor and template tests to be more robust. 2015-01-30 15:19:55 -06:00
Aled Sage bdfd1facb9 JCLOUDS-529: fix aws-ec2 cleanupIncidentalResources
- Some users get a DependencyVioloation, rather than InvalidGroup.InUse,
  when attempting to delete the security group. This caused
  cleanupIncidentalResources to propagate an exception.
- Fixes it by converting this to an IllegalStateException (in same
  way as is done for “InUse”)
- Adds tests (using MockWebServer) for happy-path and for failing
  to delete the security group with each of InUse and DependencyViolation
  responses.
- Adds Timeouts.cleanupIncidentalResources
- Use that timeout in EC2, when retrying the deletion of security group
  on VM deletion (previously hard-coded as 3 seconds).
- Configure that timeout in the tests, so deterministic number of retries
2015-01-30 11:07:25 +01:00
Zack Shoylev a8c5e28129 Windows fixes, mostly separator related. 2015-01-28 19:47:19 -06:00
Ignasi Barrera cc49f934d7 Fixed checkstyle violations 2015-01-27 10:45:08 +01:00
Taylor Jones 73600c8174 fix for JCLOUDS-655 2015-01-26 14:26:30 -06:00
Andrew Gaul 34733e991b Skip test which cannot run on openstack-swift 2015-01-24 15:12:38 -08:00
Andrew Gaul 7863df69a6 Skip tests which cannot run on Atmos 2015-01-24 14:08:08 -08:00
Andrew Gaul affad9fa3b JCLOUDS-96: JCLOUDS-351: Fix S3 copy if tests
Use correct options in testCopyIfUnmodifiedSince, use looser time
bounds, and ensure that tests throw HttpResponseException when
expected.
2015-01-24 10:56:21 -08:00
Chris Custine b3691fed7c Maven bundle plugin is not adding org.jclouds.* packages to import for some reason 2015-01-23 19:48:17 -07:00
Andrew Gaul c770ffbeb0 Use sorted set to order relative paths correctly 2015-01-22 11:37:46 -08:00
Jeremy Daggett c902fbf906 Add CDN service type for OpenStack Poppy 2015-01-21 11:20:37 -08:00
Everett Toews 7375ca4619 Normalize deprecation messages to make them easier to find 2015-01-21 11:00:43 -06:00
Ka-Hing Cheung 3cabb196ce fix usermetadata check on OS X
Java on OS X does not support extended attributes, which the
filesystem blobstore uses to implement user metadata. This disable
the relevant test on OS X
2015-01-20 17:33:22 -08:00
Jeremy Daggett ade72d44ef Add Rackspace CDN service type 2015-01-16 10:24:37 -08:00
Jeremy Daggett 09641ec2da Split Auto dependencies into auto-service and auto-value 2015-01-16 10:04:10 -08:00
Andrew Gaul e170f1e632 JCLOUDS-654: Add size to Swift StorageMetadata
This allows callers to read the content length during container
listing.  Follow-on to fae097e144.
2015-01-15 17:46:24 -08:00
Andrea Turli 6afc3c889d fix docker unit tests 2015-01-14 17:32:11 +01:00
Andrea Turli f1bf27bfaf support docker 1.4.1 (API v1.16) 2015-01-14 17:09:53 +01:00
Andrea Turli 14da3d680a support for docker 1.3.2
- update value objects (Container, Config)
- add new value object (Resource, StatusCode)
- add more options for ContainerApi
- add support for pause/unpause, restart, kill, copy and attach APIs + Mock and Live tests
- add *ParseTest
- refactor MockTests
- removed *Options.NONE
- cleanup low-value javadoc
- more coverage in LiveTests
- removed useless DockerProperties
- add comments for TLS issue
- use Date where needed
- fix listImages
- add package-private constructor to value classes
- remove KillOptions, RestartOptions, StopOptions in favour of @QueryParam
- use PEM instead of PKCS12 format
- update docker/pom.xml to use sshj dependencies
- explicit usage of OkHttp driver
- simplify DockerApiMetadata
- add bouncycastle driver explicitly
2015-01-14 16:48:24 +01:00
Ignasi Barrera 8f9acd1cad Custom Chef version in the Omnibus installer 2015-01-14 11:33:12 +01:00
Ka-Hing Cheung 5edd5de38c make xattr work in docker volume
when you bind a host volume into docker, java does not correctly
detect that and checks the xattr support on the root fs instead
of the host fs. The root fs often does not support xattr, so
the check would fail even if the target really does support xattr.

the fix is just try setting the xattrs anyway, and let them fail
if there really isn't xattrs support
2015-01-13 18:08:55 -08:00
Andrew Gaul 0fad16e07f Enable testListContainerMarker for Atmos
Confirmed that this passes against Atmos Online.
2015-01-12 19:42:35 -08:00
Andrew Gaul 58612bc473 Expand pagination test and enable for Atmos
Tested against atmos, aws-s3, azureblob, filesystem,
google-cloud-storage, rackspace-cloudfiles-us, and transient.
2015-01-12 17:43:42 -08:00
Ka-Hing Cheung 5cc3b243fc disable directory blob tests in OS X
On OS X, java doesn't support xattrs, which is required by
directory blobs. Disable those tests on OS X
2015-01-12 12:32:41 -08:00
Andrew Gaul fae097e144 JCLOUDS-654: Add object size to StorageMetadata
This allows callers to read the content length during container
listing.  Tested against: atmosonline, aws-s3, azureblob, filesystem,
and transient.  Intentionally not implemented for legacy swift
provider.
2015-01-09 22:34:56 -08:00
Andrew Gaul 2c32cfee3b Add test for UpdateContainerOptions.anybodyRead 2015-01-09 22:18:19 -08:00
Andrew Gaul 694558db0c Fix testListContainerWithZeroMaxResults on Swift 2015-01-09 22:12:49 -08:00
Andrew Gaul e8f925225c Bind Swift content metadata in multipart upload 2015-01-09 21:59:25 -08:00
Andrew Gaul 317089c77e Remove tests duplicated by testPut 2015-01-09 21:59:25 -08:00
Andrew Gaul 91c47bfd92 JCLOUDS-801: Add portable multipart upload tests
Exercise both repeatable and non-repeatable payloads.  Tested against
AWS-S3, Azure, and legacy Swift.  Skipped on all other providers.
2015-01-09 21:59:25 -08:00
Ka-Hing Cheung b7ab8b18a0 support directory blobs
make the filesystem blob store distinguish between a/ and a. a/
must be a directory blob with no content and only metadata

on listing, only directories with md5 attribute is considered a
blob and returned
2015-01-09 16:28:16 -08:00
Andrew Gaul 77eaa2c1f9 Add container creation date to local blobstores 2015-01-09 14:10:33 -08:00
Jeremy Daggett d3c1e2eab4 Use AutoService to generate service loader metadata 2015-01-09 11:22:12 -08:00
Ka-Hing Cheung 692691bcdc fix fs container validator test
previoisly it was testing blob key validator instead of container
name validator
2015-01-07 11:36:47 -08:00
Ignasi Barrera 6b350fb6b7 JCLOUDS-792: Configure chef-client security attributes
This commit also improves some internal behavior related to the
bootstrap configuration generation, and deprecated some methods that
will be removed in upcoming versions.

* Removes all methods that return the bootstrap DataBag or the raw
  configuration json to return the BootstrapConfig object instead.
* Deprecates all methods that provide support for old Chef versions.
* Formats the Enterprise Chef provider according to the jclouds
  formatting guidelines.
* Deprecates the ChefContext view. That view is not an abstraction and
  only provides access to the ChefService. It can be obtained from the
  ChefApi itself.
2015-01-05 14:15:54 +01:00
Andrew Gaul 38ae98e409 Always build filesystem provider 2014-12-31 15:07:35 -08:00
Andrew Gaul 3ed8db7873 Activate jre1.7 profile all JDK >= 7 2014-12-28 21:25:32 -08:00
Nikolay Sokolov 787ce446cd Fixed Version in FormSignerV4 2014-12-12 00:18:05 +01:00
William Chu 06653f1dd2 JCLOUDS-788 Added support for specifying a custom node name when generating the chef bootstrap node script 2014-12-04 23:47:20 +01:00
Jeremy Daggett 0b8b5e7c9c Use AutoService for creation of Service Loader Metadata 2014-12-03 09:50:08 -08:00
Adrian Cole c635b3006d JCLOUDS-523 fix typo in implementation. 2014-11-28 15:39:42 -08:00
Ignasi Barrera 902f1b4105 JCLOUDS-744: Upgrade to OkHttp 2.1.0 and use its native API 2014-11-27 18:44:08 +01:00
Ignasi Barrera 7775f1a6b0 JCLOUDS-747: Configured Animal Sniffer plugin to check runtime compatibility 2014-11-27 18:06:19 +01:00
Adrian Cole df4323b4c6 JCLOUDS-523 add tempAuthCredentials to openstack-swift 2014-11-26 17:19:38 -08:00
Adrian Cole a449b24e7d JCLOUDS-480 support version 4 signatures for aws-ec2. 2014-11-22 08:08:37 -08:00
Everett Toews dd743e58b1 Remove Rackspace Cloud Identity v1.1 2014-11-20 07:44:47 -08:00
Everett Toews 162226b8a9 JCLOUDS-716: Remove Rackspace First-Gen Cloud Servers 2014-11-18 12:56:04 -06:00
Adrian Cole 46a7351a8a * Refactor OAuth to be less complex.
* Remove oauth as a standalone api.
 * Rename redundant OAuthAuthenticationFilter to OAuthFilter.
 * Make AuthorizationApi more simple by using form semantics.
 * Simplified OAuth by only permitting RS256 and none algos.
2014-11-18 10:43:33 -08:00
Reynald Borer 60ba755219 JCLOUDS-621 add missing R3, t2.micro, t2.small and t2.medium instance types to EC2 2014-11-18 09:02:00 -08:00
akorompai 52445de74e JCLOUDS-776: Map chef cookbook attribute files with Resource instead of Attribute 2014-11-17 17:23:01 +01:00
Adrian Cole 6f974f34b5 JCLOUDS-780 Remove vcloud. 2014-11-17 08:18:39 -08:00
Adrian Cole 054189d009 JCLOUDS-774 ec2 api was ignoring the jclouds.region property, which made exceptions possible on all zone-scoped api calls. 2014-11-16 19:06:42 -08:00
Adrian Cole 6040f749bd Revert 428b2bd2ea as this hides inconsistency between regions and zones. 2014-11-16 13:39:02 -08:00
Adrian Cole 90a6bb19f4 Finished partial fix in 91f405c9fe. 2014-11-16 10:37:31 -08:00
Zack Shoylev 5aaba51618 Remove jclouds.version and replace it with project.version in all poms. 2014-11-14 12:17:51 -06:00
Adrian Cole a35d73c6d0 Dedupe code between google cloud products. 2014-11-13 11:02:44 -08:00
Adrian Cole 19e2cdd5d2 * Change OAuthScopes into an interface as opposed to boilerplating annotations.
* Fixed errors because of boilerplating annotations.
2014-11-12 20:29:16 -08:00
Adrian Cole 7a644f8b6e * Refactor OAuth so that it doesn't require private keys when we aren't signing anything.
* Rename constant serviceAccountCredentials to p12PrivateKeyCredentials as this better describes the credential value.
2014-11-11 16:20:58 -08:00
istolber 55be9b855e Adding tenantId/projectId and extended attributes to volume and snapshot 2014-11-11 13:50:39 -05:00
Chris Custine 639b480650 Fix support for bearer tokens 2014-11-07 17:44:24 -07:00
Andrea Turli 6219b77dbc JCLOUDS-737 update docker to support v1.3 2014-11-03 19:23:09 -08:00
Adrian Cole eb8b154869 JCLOUDS-750 Remove need for custom json type adapters on OAuth. 2014-11-02 08:28:42 -08:00
Adrian Cole b04fd71998 JCLOUDS-750 FieldNamingStrategy is no longer required. 2014-11-01 11:55:36 -07:00
Adrian Cole 35156560dc Decomplicate OAuth a little. 2014-10-31 08:50:50 -07:00
Adrian Cole 8b5fcf069b Decomplicate consuming the output of docker commands in tests. 2014-10-30 21:15:07 -07:00
Adrian Cole 42d881f78a Remove source of service loader typos with AutoService. 2014-10-30 21:14:42 -07:00
Adrian Cole cd8aeed16d Use AutoValue to reduce bulk of Google Storage value types. 2014-10-30 09:40:44 -07:00
Adrian Cole c77d59470b JCLOUDS-534 Avoid runtime incompatibility introduced by Guava's closeQuietly. 2014-10-29 18:40:47 -07:00
Adrian Cole 0012e6f950 JCLOUDS-534 Avoid runtime incompatibility introduced by Guava's closeQuietly. 2014-10-29 17:01:26 -07:00
Ignasi Barrera c6c1b1a657 JCLOUDS-766: Add AWS Frankfurt region 2014-10-29 21:26:29 +01:00
Adrian Cole ef59a121bf Remove tar creation responsibility from docker, avoiding filesystem bias. 2014-10-29 12:42:21 -07:00
Adrian Cole 7bdff3f9ca JCLOUDS-750 AutoValue all Docker value types. 2014-10-28 08:09:10 -07:00
Adrian Cole 07d7a5a749 JCLOUDS-750 At the cost of fiddling with type hierarchy adapters, remove lots of junk with google auto. 2014-10-27 09:27:54 -07:00
Ignasi Barrera c73ed64fd0 JCLOUDS-761: Delete disk if image operation fails in ElasticStack 2014-10-27 16:58:03 +01:00
Adrian Cole 2a1dff243d JCLOUDS-652 Pin filesystem api to Java 7+. 2014-10-25 10:29:33 -07:00
Adrian Cole 6121757377 Revert "JCLOUDS-653: Address Guava 18 deprecations"
This reverts commit b851f0ac3a6fd23720d67dbfad6954b2153bbc4b.

The above change made the floor guava version of jclouds latest guava. This is disasterous for compatibility.
2014-10-24 11:44:40 -07:00
Adrian Cole 691144caa9 Revert "JCLOUDS-653: Address Guava 18 deprecations"
This reverts commit 65e1def4bdc1d763f505a8316dd6eb78f26300a8.

Many conflicts due to many changes between above commit and now.
2014-10-24 11:27:49 -07:00
Adrian Cole f94d0caf3b Revert "JCLOUDS-653: Address Guava 18 deprecations"
This reverts commit e2e288ee86d537d249c7e58c782a66b0201f2134.

Many conflicts on account of lots of changes since the original commit.
2014-10-24 10:54:47 -07:00
Adrian Cole 3980cd791b Revert "JCLOUDS-653: Address Guava 18 deprecations"
This reverts commit 95cfc0d950.

Many conflicts due to duration between above commit and now
2014-10-24 10:45:58 -07:00
Andrew Phillips 6cb1558424 zone -> region in Cinder AvailabilityZoneApiLiveTest
Follow-up to 1205010c
2014-10-23 23:06:28 -07:00
istolber 1205010cfa cinder availability zones api + list call implemented 2014-10-23 22:47:40 -07:00
Andrew Bayer c85453503e JCLOUDS-756 - Adding tags/userMetadata to NodeMetadata transform 2014-10-22 10:09:09 -07:00
Andrew Bayer 43bb86f085 JCLOUDS-756. Add support for tags to CloudStack. 2014-10-21 14:18:12 -07:00
Andrew Phillips 3e99fba425 Fixing return type for Nova Floating IP Pool extension
Follow-up to 6b83679. Thanks to @jdaggett for spotting!
2014-10-13 21:17:03 -04:00
Andrew Gaul 489850d7db Fix GuiceAssistedInjectScoping error-prone warning 2014-10-12 15:47:30 -07:00
Andrew Gaul 8cd2b92a0e Ensure that deprecated methods are fully annotated
Found with Google error-prone.
2014-10-12 13:34:08 -07:00
istolber 6b83679ca4 Openstack nova list IP pools 2014-10-12 14:58:25 -04:00
Adrian Cole d735a9fa21 JCLOUDS-40 clear remaining references to Async. 2014-10-12 09:05:35 -07:00
Andrew Phillips 3e082c8945 Minor formatting cleanup
Follow-up to e5fb0b6
2014-10-11 21:44:22 -04:00
Andrew Kennedy 01f498c251 Added non-null Entrypoint data to test JSON file for parsing 2014-10-12 01:52:05 +01:00
Andrew Kennedy 3bb2ffdee5 Add environment config option for Docker containers 2014-10-11 18:18:11 +01:00
Ignasi Barrera e5fb0b607d Allow to configure CIDR exclusion blocks 2014-10-11 14:04:00 +02:00
Andrew Kennedy c967235ecd Document magic number in NodeMetadata for Docker 2014-10-10 21:19:57 +01:00
Andrew Kennedy 1af34c49b1 Handle missing login port 2014-10-10 19:06:21 +01:00
Andrew Kennedy 53b225c492 Set hostname in template options 2014-10-10 18:51:58 +01:00
Andrew Kennedy 0126d322fa Fix Container conversion when image ID not present 2014-10-10 18:51:58 +01:00
Andrew Kennedy 1c5a805a4d Entrypoint should be a JSON array 2014-10-10 18:51:58 +01:00
Ignasi Barrera 2caf6ea86e Removed obsolete TransientChefApi 2014-10-10 15:11:30 +02:00
Ignasi Barrera c9dfb07d02 Aligned pom.xml files for Chef 2014-10-10 15:11:27 +02:00
Ignasi Barrera aa17a4f9f9 Promoted jclouds-chef/core to apis/chef 2014-10-10 15:10:44 +02:00
Adrian Cole a12c168ad2 Swift is now out of labs. 2014-10-08 19:34:45 -04:00
Adrian Cole 34663f3c28 Import openstack-swift from labs. 2014-10-08 18:07:35 -04:00
istolber 8432c66b74 added zone to openstack Host 2014-10-08 08:17:30 -07:00
Jeremy Daggett 00b2de6205 JCLOUDS-281: Support Nova Block Device Mapping v2 Boot 2014-10-07 22:12:28 -07:00
Adrian Cole 03619accbd JCLOUDS-641 copy/paste error completely screwed blobstore tests. 2014-10-07 22:05:58 -07:00
istolber c9d5d2a200 bug fix keystone role api + bug fix host aggregates 2014-10-07 21:44:38 -07:00
Adrian Cole b9525a0877 JCLOUDS-40 unasync Fallback 2014-10-06 13:14:59 -07:00
Adrian Cole 0a236f59ad JCLOUDS-153 remove IO Executor and usage of it. 2014-10-06 07:56:31 -07:00
Adrian Cole 7bab2dd17b JCLOUDS-40 one last Async reference in Atmos. 2014-10-05 22:32:45 -07:00
Adrian Cole 100d43360a JCLOUDS-150 clear remaining async stuff from aws 2014-10-05 22:32:27 -07:00
Adrian Cole 360e8b8d6a JCLOUDS-49 clear remaining async stuff from openstack 2014-10-05 22:32:20 -07:00
Andrew Phillips efd09edf57 Revert "Fix poms so that modernizer doesn't fail on snapshot."
This reverts commit 889243a677ebba620cc9915f26304091b4dd53bb. The
snapshot repository has now been added to the jclouds-project POM.
See commit 79d4b48 to jclouds/jclouds.
2014-10-06 00:36:04 -04:00
Andrew Phillips e42cc80092 Fixing Checkstyle violations 2014-10-06 00:31:00 -04:00
Adrian Cole 3883ff5bb1 Fix drift due to unasyncing 2014-10-05 20:22:19 -07:00
Adrian Cole 044223efcb Rather than rely on or work around JRE behavior based, lock S3ClientMockTest using OkHttp. 2014-10-05 20:14:45 -07:00
Adrian Cole 99e217b720 Move off confusing test names. 2014-10-05 17:22:18 -07:00
Adrian Cole 1b2cee0700 JCLOUDS-40 Replaced incorrect use of @ConfiguresRestClient and deleted old rest client modules. 2014-10-05 16:21:16 -07:00
Adrian Cole 52ecdf5a1e Fix poms so that modernizer doesn't fail on snapshot. 2014-10-05 14:41:13 -07:00
Adrian Cole 52cf5555db Remove stale javadoc references to AsyncApi. 2014-10-05 13:22:35 -07:00
Adrian Cole cacc986dc4 JCLOUDS-40 Remove AsyncBlobStore references from s3 api 2014-10-05 13:18:12 -07:00
Adrian Cole a22a725293 JCLOUDS-40 Remove AsyncBlobStore references from filesystem api 2014-10-05 13:18:02 -07:00
Adrian Cole 56a2a8bf4a JCLOUDS-40 Remove internal usage of AsyncBlobStore. 2014-10-05 08:49:54 -07:00
Adrian Cole dfb583b67a JCLOUDS-40 remove all implementations of AsyncBlobStore except Submission in preparation for complete removal. 2014-10-05 08:49:38 -07:00
Adrian Cole e3ada5b726 JCLOUDS-296 unasync legacy cloudservers provider. 2014-10-03 23:14:21 -07:00
Adrian Cole 0ab1988a7f JCLOUDS-296 unasync legacy cloudfiles provider. 2014-10-03 23:14:12 -07:00
Adrian Cole bbad831c00 JCLOUDS-296 unasync legacy swift provider. 2014-10-03 23:14:03 -07:00
Adrian Cole dda43dfc32 JCLOUDS-296 unasync keystone used by swift derivatives and cloudfiles. 2014-10-03 23:13:54 -07:00
Adrian Cole 9b71a9dcb8 JCLOUDS-40 unasync atmos. 2014-10-03 22:06:12 -07:00
Adrian Cole b6497556f6 JCLOUDS-150 add SubmissionAsyncBlobStore; unasync s3 and aws-s3 2014-10-03 13:18:29 -07:00
Andrew Phillips d949137649 JCLOUDS-538: Avoiding a VM crash trying to run live tests for Swift
TestNG was throwing up as its reflection was unable to find certain test methods
2014-10-03 10:09:11 -05:00
Adrian Cole f7aea98742 JCLOUDS-692 Remove the CloudSigma v1 provider. 2014-10-02 09:28:53 -07:00
Evgeny Tarasenko cf95033b1a Support availability zone in NovaTemplateOptions. 2014-09-24 06:49:38 -07:00
Andrew Gaul 96446269d2 Prefer Charsets.UTF_8 over string literal
Found with modernizer-maven-plugin.
2014-09-21 09:28:10 -07:00
Andrew Gaul 200481300d Convert fake interfaces to utility classes 2014-09-20 18:48:40 -07:00
Andrew Gaul acba325333 Convert fake interfaces to utility classes 2014-09-20 18:47:07 -07:00
Andrew Gaul dc3011469b Prefer Charsets.UTF_8 over string literal
Found with modernizer-maven-plugin.
2014-09-20 18:31:24 -07:00
Jeremy Daggett 2db654fbe3 Removed deprecated methods from the VolumeApi and updated related tests 2014-09-19 16:38:59 -07:00
jasdeep-hundal 3f2b9376a1 JCLOUDS-514: Support attaching volumes at boot in Nova 2014-09-18 16:32:24 -07:00
Jeremy Daggett d2f181bc55 Remove unnecessary blobstore references 2014-09-16 12:50:25 -07:00
Jeremy Daggett d309e45725 JCLOUDS-686: Remove changesSince() query from base PaginationOptions 2014-09-11 09:27:55 -07:00
Jeremy Daggett d6eb54e2b4 JCLOUDS-296: Deprecate Rackspace First-Gen CloudServers 2014-09-09 17:05:42 -07:00
Jeremy Daggett a73340abb9 JCLOUDS-296: Deprecate Rackspace First-Gen CloudServers 2014-09-09 14:41:54 -07:00
Andrew Gaul 000a505360 Prefer Files.delete(Path) over File.delete
The former throws an exception including the cause if the operation
fails while the latter merely returns a boolean.
2014-09-08 18:41:27 -07:00
Andrew Gaul fc4b072a26 Ignore non-existent container in deleteContainer
All other blobstore providers allow this operation.  Further this
matches the behavior of TransientStorageStrategy.deleteContainer.
This commit prevents a spurious error message from
deleteContainerOrWarnIfUnable after test suite completion.
2014-09-08 18:37:19 -07:00
Andrew Gaul 7869d92b29 Skip test when filesystem does not have xattr
Addresses regression from a104944 seen on CloudBees.
2014-09-05 17:53:59 -07:00
Andrew Gaul 3c050e0e97 Address Checkstyle violations 2014-09-05 16:38:20 -07:00
Jeremy Daggett 15d8166701 JCLOUDS-699: Properly deprecate OpenStack Nova zonescoped package 2014-09-05 08:04:44 -07:00
Andrew Gaul 58438d7d1e Address Checkstyle violations 2014-09-04 17:24:27 -07:00
Andrew Gaul a1049449f4 Reset xattr on overwrite in filesystem provider 2014-09-04 17:22:26 -07:00
Andrew Gaul 0b89b1fd10 Ensure that Content-MD5 has 128 bits
Update many tests Content-MD5 headers and ETag responses.
2014-09-04 16:57:48 -07:00
Andrew Gaul 1b39589092 Ensure that deprecated methods are fully annotated
Found with Google error-prone.
2014-09-04 16:54:52 -07:00
Jeremy Daggett 398e8e30a4 Updated api-version and removed upper bounds wildcards for extension APIs 2014-09-04 09:33:58 -07:00
Andrew Gaul 46daeae1d9 Address masked fields FindBugs warning 2014-09-02 15:24:34 -07:00
Andrew Gaul 8f8b6dd7ce Further FindBugs fixes 2014-09-02 15:24:33 -07:00
Andrew Gaul 19f071915a Address FindBugs warnings 2014-09-01 01:06:41 -07:00
Andrew Gaul 8d9850d8da Correct Checkstyle violations 2014-08-31 20:04:03 -07:00
Andrew Gaul 34cfdbe266 Enforce Override annotation via Checkstyle
Also remove bogus inheritDoc on base and static methods.
2014-08-31 19:37:50 -07:00
Andrew Gaul 195998b3b6 Miscellaneous FindBugs fixes 2014-08-30 14:33:10 -07:00
Andrew Gaul 5399cb6877 Avoid unnecessary boxing
Found with FindBugs.
2014-08-30 14:30:47 -07:00
Andrew Gaul 63d43f236e Correct unusual equals implementations
Found with FindBugs.
2014-08-30 14:30:44 -07:00
Andrew Gaul df996f3231 Set Content-MD5 only if ETag has correct format
Previously this check was more lenient than it should have been.
2014-08-28 21:50:57 -07:00
Andrew Gaul 550018a68d Use randomByteSource to generate test data
This avoids buffering the entire bolus of data in-memory.
2014-08-27 15:59:36 -07:00
Andrew Gaul 37d65d3d81 Avoid primitive wrapper constructors 2014-08-26 17:51:11 -07:00
Andrew Gaul 1b824afbfc Remove redundant modifiers from interfaces 2014-08-26 17:34:13 -07:00
Andrew Gaul 480f0e883d Prevent instantiation of utility classes
Also prevent extension.
2014-08-26 12:23:36 -07:00
Andrew Gaul 74fb8f0183 Add whitespace after semicolons
Also correct some bad line-wrapping.
2014-08-26 11:06:00 -07:00
Ignasi Barrera cd4ce6b192 JCLOUDS-428: Use Maps with a consistent iteration order 2014-08-26 10:32:48 +02:00
Jeremy Daggett ddd00a20de Added assertion for versioned OpenStack extension APIs. Required for the Neutron v2 API. 2014-08-22 20:30:46 -07:00
Jeremy Daggett 66627e94b8 Swift API region cleanup
Conflicts:
	openstack-swift/src/test/java/org/jclouds/openstack/swift/v1/features/ObjectApiMockTest.java
2014-08-22 11:06:48 -07:00
Jeremy Daggett f04e2c2c2e Fix Maven parent.relativePath warnings 2014-08-21 11:25:34 -07:00
Andrew Gaul 80a4430035 JCLOUDS-679: Use HEAD for S3 bucketExists
This method costs 0.4 cents per 10,000 requests instead of 0.5 cents
per 1,000 requests:

http://aws.amazon.com/s3/pricing/

API reference:

http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketHEAD.html
2014-08-20 12:44:20 -07:00
Jeremy Daggett e711275fb1 Prefer isEmpty() for collections rather than size() 2014-08-20 11:07:48 -07:00
Jeremy Daggett 4030a4c4f0 Removed @Nullable annotations on region parameters 2014-08-13 16:04:05 -07:00
Jeremy Daggett 7d70362590 Removed @Nullable annotations on region parameters 2014-08-13 15:37:54 -07:00
Chris Custine d728e0343a JCLOUDS-633: Support passing bearer token directly for OAuth2 2014-08-13 16:11:44 -06:00
Chris Custine 00d9edc1e6 JCLOUDS-643: Fix Google and OAuth tests 2014-08-13 13:47:55 -06:00
Jeremy Daggett aa04ef007f Prefer Regions to Zones 2014-08-13 10:02:44 -07:00
Jeremy Daggett 744cd5d7eb Prefer Regions to Zones in OpenStack APIs 2014-08-13 09:58:53 -07:00
Andrew Gaul 9009bb5268 JCLOUDS-658: use xattr only on supported systems
Mac OS X HFS+ does not support UserDefinedFileAttributeView:

https://bugs.openjdk.java.net/browse/JDK-8030048
2014-08-12 12:30:06 -07:00
Ignasi Barrera 95b6064c3d JCLOUDS-496: Use the security groups options in the portable TemplateOptions 2014-08-12 13:34:29 -04:00
Andrew Gaul 204a6c7f3b JCLOUDS-658: xattr for filesystem blob metadata
This allows the filesystem blobstore to mimic real blobstores more
accurately.  This also doubles the speed of getBlob by storing the
Content-MD5 header instead of recalculating it.
2014-08-11 12:56:14 -07:00
Andrew Phillips 4ef699a35c Fixing compilation errors caused by Payload no longer being an InputSupplier
See 80a0256c in jclouds
2014-08-11 15:41:34 -04:00
Andrew Gaul db09fca8a9 Correct license headers 2014-08-09 22:47:40 -07:00
Andrew Gaul 5c1e36e5d1 JCLOUDS-653: Address Guava 18 deprecations
Mostly renaming Objects.toStringHelper to MoreObjects.toStringHelper.
2014-08-08 11:55:25 -07:00
Andrew Gaul 4073f7fdc4 JCLOUDS-653: Address Guava 18 deprecations
Mostly renaming Objects.toStringHelper to MoreObjects.toStringHelper.
2014-08-08 11:34:44 -07:00
Andrew Gaul a0a165eaa3 JCLOUDS-653: Address Guava 18 deprecations
Mostly renaming Objects.toStringHelper to MoreObjects.toStringHelper.
2014-08-08 11:14:10 -07:00
Andrew Gaul 95cfc0d950 JCLOUDS-653: Address Guava 18 deprecations
Mostly renaming Objects.toStringHelper to MoreObjects.toStringHelper.
2014-08-08 11:12:21 -07:00
Jeremy Daggett 23d5290526 OpenStack Cinder general cleanup. Prefer ByteSourcePayload. 2014-08-06 15:20:03 -07:00
Andrew Gaul 59462747e7 Reset StringBuilder instead of creating new ones
This avoids unneeded garbage, especially during XML parsing.  Replaced
with:

find -name \*.java | xargs sed -i 's/^\( *[^ ]*\) = new StringBuilder();$/\1.setLength(0);/'
2014-08-06 11:22:49 -07:00
Andrew Gaul 9e9acf1f3e Address Checkstyle violations 2014-08-05 17:13:29 -07:00
Jeremy Daggett 95a3c7ec2c JCLOUDS-646: Copied Cloud Identity v1.1 classes from openstack-common and fixed incorrect Keystone package names 2014-08-05 09:01:21 -07:00
Andrew Phillips 55e403d222 Updating project version to 2.0.0-SNAPSHOT
Follow-up to 82b23fc
2014-08-05 11:50:02 +02:00
Andrew Phillips a6ad6d463d Updating project and jclouds.version to 2.0.0-SNAPSHOT 2014-08-05 11:46:53 +02:00
Andrew Phillips 271d50fe07 Updating project versions to 2.0.0-SNAPSHOT
Follow-up to be8bc22
2014-08-05 11:36:07 +02:00
Andrew Phillips e20afb8e99 Updating subproject versions to 2.0.0-SNAPSHOT
Follow-up to eed3a06
2014-08-05 11:20:43 +02:00
Andrew Phillips f8b5f5216f Up to 2.0.0-SNAPSHOT after the 1.8.0 release 2014-08-05 10:35:49 +02:00
Andrew Phillips e3d9851216 Up to 2.0.0-SNAPSHOT after the 1.8.0 release 2014-08-05 09:10:24 +02:00
Ignasi Barrera 8cb2cb449b Revert "Move jclouds-chef to the main jclouds repo"
This change will be added again after the 1.8.0 release.

This reverts commit 867c7a407c.
2014-07-29 00:38:46 +02:00
Ignasi Barrera 867c7a407c Move jclouds-chef to the main jclouds repo 2014-07-28 21:08:54 +02:00
Andrew Phillips eba727fef7 'iso8601DateParseWithOptionalTZ' -> 'iso8601DateOrSecondsDateParse' in DateService
Follow-up to d57bbebe
2014-07-28 12:20:49 -04:00
Luciano P. Sabenca(luciano.sabenca@movile.com) 2e81343297 JCLOUDS-624 - Fixed bug in ListNodes
To fix this bug, I used the approach debated in the above issue: create
new methods to do the operation using an ExecutorService provided by the
user.The the old methods are still working, but now the operations in
those methods are not concurrent anymore.
2014-07-28 15:31:11 +02:00
Shri Javadekar d57bbebe7e Try iso8601SecondsDateParse if iso8601DateParse fails.
S3 compatible blobStores sometimes return date in the format:
"2014-07-23T20:53:17+0000" instead of the more common
"2014-07-23T18:09:39.944Z". This caused jclouds to barf with an
IllegalArgumentException.

This commit tries to parse both the formats for S3. The exception
is thrown if both fail.

Added unit tests for the same.
2014-07-26 22:19:54 -07:00
Andrew Gaul 9677ed18eb Remove loop to gather metrics
This loop dramatically increases integration test run-time for no
discernible benefit.
2014-07-26 11:08:16 -07:00
Andrew Gaul 1e1eb5a092 Add deleteContainerIfEmpty to BlobStore
This matches how most blobstores operate: delete container is a single
operation, not a compound operation which recursively deletes blobs.
Azure is the only provider which allows deleting a non-empty
container.
2014-07-25 23:02:39 -07:00
Andrew Gaul 5c850947da Correct typo 2014-07-24 23:41:13 -07:00
Andrew Gaul 10262df81c Add symbolic error codes for Atmos 2014-07-24 16:30:42 -07:00
Andrew Gaul 5c8bdcdfbb Remove ByteSources.asByteSource
This method breaks the contract of ByteSource which specifies that
openStream can produce multiple independent streams.
2014-07-24 13:02:13 -07:00
Andrew Gaul 011aed71ed Prefer ByteStreams2 over ByteSources.asByteSource
The latter breaks the contract of ByteSource which specifies that
openStream can produce multiple independent streams.
2014-07-22 16:56:00 -07:00
Andrew Phillips 365ac21f1e Addressing a Checkstyle violation 2014-07-22 13:35:43 -04:00
Andrew Gaul d1bd551edf Add support for filesystem last modified 2014-07-21 12:25:04 -07:00
Jeremy Daggett 0d77d8c2b1 JCLOUDS-554: Update Nova default API to v2 2014-07-21 10:50:46 -07:00
Andrew Gaul f17c876d8d Replace const.txt file input with synthetic inputs
This commit replaces file resource-based test inputs with in-memory
equivalents.  This is more consistent and efficient than the previous
approach.  Also resized some test inputs to be partSize + 1 instead of
2 * partSize.  Tested against aws-s3, blobstore, core, cloudfiles-us,
and filesystem.
2014-07-19 18:35:25 -07:00
Andrew Gaul 370194b2be Enable more filesystem integration tests
Other tests will require Java 7 xattr support.
2014-07-19 12:17:23 -07:00
Andrew Gaul dd3dc9790e Close streams in integration tests
Also remove bogus delete workaround.  Previously unclosed
FileInputStream caused test failures on Windows which cannot delete
open files.  Found with Kohsuke's file-leak-detector.
2014-07-19 05:25:20 -07:00
Aled Sage 1fb286809e JCLOUDS-549: Fix NPE in LoginCredentials.toString
- also deprecates LoginCredentails.get(Password|PrivateKey)
- use getOptionalPassword and getOptionalPrivateKey instead
2014-07-18 14:09:18 +01:00
Aled Sage 718e3ec81f Fix minor compilation warnings 2014-07-17 21:59:08 +01:00
Aled Sage 9536338f61 Fix use of deprecated Strings2.toString(InputSupplier) 2014-07-17 21:59:04 +01:00
Andrew Gaul fb60d76704 JCLOUDS-622: Remove most vestiges of InputSupplier
Guava 16 deprecated InputSupplier and a future release will remove it.
2014-07-16 16:07:59 -07:00
Jeremy Daggett 1a3ad75efd JCLOUDS-40: Unasync Rackspace Cloud Identity 2014-07-16 08:47:39 -07:00
Andrew Gaul 09cf57101d Reduce Swift integration test input size
Previously testMultipartChunkedFilenames uploaded 55 MB and now it
uploads 5 MB.
2014-07-15 18:21:42 -07:00
Andrew Gaul 86de7923a1 Improve use of ByteSource 2014-07-15 18:21:42 -07:00
Jeremy Daggett 801aecafea JCLOUDS-40: Unasync OpenStack Nova API 2014-07-15 14:29:09 -07:00
Andrew Gaul a8b106c2bb JCLOUDS-622: remove calls to InputSupplier methods
Guava 16 deprecated these methods and Guava 18 will remove them.
2014-07-15 03:09:58 -07:00
Andrew Gaul f4eca0422d Enforce correct MD5 for local blobstores
Matches behavior of real blobstores.
2014-07-10 22:19:42 -07:00
Christopher Dancy 3659a5f583 JCLOUDS-607: ComputeService.createNodesInGroup throws NPE on FloatingIPApi.create() 2014-07-07 19:46:54 -04:00
Andrea Turli 779551c40f [JCLOUDS-500] Initial commit for docker 2014-07-07 11:48:24 +02:00
Markus von Rüden a39eadce50 JCLOUDS-619: Introduce MultipartNamingStrategy to generate part names correctly. 2014-07-04 01:06:46 -07:00
Andrew Gaul 05c37c2c77 Consistently use Square's mockwebserver
Google mockwebserver merged into OkHttp as per:

https://code.google.com/p/mockwebserver/
2014-07-03 14:39:07 -04:00
Andrew Gaul 71043ac9a2 Provide descriptive bogus values for properties 2014-07-02 22:42:00 -07:00
Epimenidis Voutsakis b259af48c0 Added ConsolesApi extension for openstack-nova 2014-07-02 11:39:52 -07:00
Ignasi Barrera 18467a118f Remove unused imports to make checkstyle happy 2014-07-02 17:54:33 +02:00
Ignasi Barrera 73929940d9 JCLOUDS-617: Use the configured JCE provider in the Cipher payloads 2014-07-02 17:54:33 +02:00
Chris Custine ba894fe07b JCLOUDS-585: Add HP Cloud Block Storage Provider (OpenStack Cinder) 2014-07-01 12:43:30 -07:00
Andrew Gaul 7f8e6a03d7 Address Checkstyle violations 2014-07-01 09:33:46 -07:00
Ignasi Barrera eb884e7c09 JCLOUDS-618: Allow servers without boot device in ElasticStack 2014-06-27 19:19:42 +02:00
Chris Custine 4d5f57a303 JCLOUDS-594: ComputeService.suspendNodesMatching throwing UnsupportedOperationException but call still succeeds 2014-06-27 13:04:01 -04:00
Everett Toews 1db5d38a09 Fixed NPE when Server has no Image 2014-06-26 15:04:05 -05:00
Andrew Gaul 8fa209b15e Use more specific testng asserts where possible
These asserts yield more informative error messages.  Found with:

grep -rI 'assertTrue(.* =='
grep -rI 'assertTrue(.* !='
grep -rI 'assertTrue(.*\.equals('
2014-06-24 13:54:01 -07:00
Everett Toews b95898fc0a Fix for JSON parse error on createNodesInGroup (JCLOUDS-558) 2014-06-23 13:40:40 -05:00
Shri Javadekar c417ddef67 JCLOUDS-589: Reauthenticate on Keystone HTTP 401
This commit ports the Keystone 2.0 fix from JCLOUDS-178 to Keystone
1.1.
2014-06-21 18:58:40 -07:00
Andrew Bayer 5641f675da JCLOUDS-602. Added live tests for new EBS volume fields.
While they're implemented in apis/ec2, the tests are in
providers/aws-ec2, generally, to make sure ec2-alike clones won't barf
on them. We're exercising creation of volumes, images and instances
with the new options. I also had to do some sketchy wait-and-loop'ing
in AMIAPILiveTest.testCreateAndListEBSBackedImage() due to what seems
to be a delay on new AMIs showing up in filtered DescribeImages calls,
though they'll show up instantly when you specify the image ID. Go figure.
2014-06-20 12:27:17 -07:00
Andrew Bayer 6451098f72 JCLOUDS-602 - Add support for volumeType, iops and encrypted to EBS.
Adds CreateVolumeOptions for volume creation, adds support for the
above EBS configs in Image, Volume, BlockDeviceMapping, etc.
2014-06-20 12:27:17 -07:00
Jeremy Daggett da50cd6cbe JCLOUDS-455: Add get() method to KeyPairApi 2014-06-20 11:11:30 -07:00
Ignasi Barrera b0250cfb4f JCLOUDS-588: Register discovered images in the image cache
Images were cached in memory using a memoized supplier. To allow growing
this cache with the discovered images, the ImageCacheSupplier class has
been created. It provides an in-memory cache with all discovered images
and acts as a view over the image cache that also provides access to
them.

The in-memory cache for the discovered images expires with the session,
just as the image cache does.

The default memoized image supplier has been changed to the
ImageCacheSupplier, to make sure all providers get injected the right
instance, and the old supplier has been qualified with the 'imageCache'
name, in case a provider needs the basic image cache.
2014-06-20 12:35:18 +02:00
Jeremy Daggett 1982626cd6 Fix replaceAll regex to handle spaces correctly 2014-06-18 10:21:01 -07:00
Jeremy Daggett 235092e517 JCLOUDS-471: Adds pool field to FloatingIP and updated related tests. 2014-06-17 11:43:10 -07:00
Chris Custine 8c8fe83f3e JCLOUDS-582: Enhancements to availability zones api 2014-06-17 11:31:06 -07:00
Andrew Gaul e799a7409c JCLOUDS-597: HashCode methods for Content-MD5
This works more naturally with Guava Hashing methods and immutability
provides better safety guarantees.  Also deprecate existing byte[]
methods.
2014-06-12 15:29:17 -07:00
Jeremy Daggett a6c89d9150 Pretty formatted json test resources 2014-06-11 15:37:02 -04:00