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
446671a2a7
Improve readability of expect test output
2014-06-11 15:35:45 -05:00
Jeremy Daggett
a6c89d9150
Pretty formatted json test resources
2014-06-11 15:37:02 -04:00
Chris Custine
c857ccc479
JCLOUDS-583: Updates HP Cloud compute provider to work with 13.5 release
2014-06-10 09:41:46 +02:00
Andrew Phillips
9b50754c24
Cleaning up Checkstyle violations from b1c1636
and 39f77ad
2014-06-09 23:17:37 -04:00
Andrew Phillips
b1c163636d
Adding a test to check for JCLOUDS-278
...
Contributed by Bill Branan.
2014-06-09 15:15:17 -04:00
Andrew Gaul
bb3c9d2657
Upgrade to findbugs-maven-plugin 2.5.4
...
This also upgrades FindBugs to 2.0.3. Notably this improves
compatibility with Guava constructs. Changelogs:
https://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11701&version=19833
http://findbugs.sourceforge.net/Changes.html
2014-06-08 23:09:53 -07:00
Andrew Gaul
4c74b49754
JCLOUDS-546: Enforce no Javadoc @author annotation
2014-06-07 21:44:58 -07:00
Andrew Gaul
9cdd53b0b7
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//'
2014-06-07 21:44:54 -07:00
Ignasi Barrera
39f77ad3f8
JCLOUDS-570: Fallback to the GetImageStrategy
...
If the TemplateBuilderImpl is given an imageId but the image can not be
found in the image cache, fallback to the GetImageStrategy to perform a
call to the provider to try to get it.
We've seen that in some cases images are not returned in the image list
but they actually exist in the provider. This fix won't make them
available when filtering by other properties such as the operating system,
etc, but at least will make them available if their id is known.
2014-06-06 12:40:27 +02:00
Ignasi Barrera
a7e342422c
JCLOUDS-517: New ElasticHosts images and regions
...
Added the new ElasticHosts regions.
Updated the ElasticStack api to get the list of standard
drives using an API call. All providers except ServerLove
support the new API call, so the old logic in the ElasticStack
api has been moved to that provider. The rest of providers will now
extract all the OperatingSystem information by parsing the name of the
StandardDrive.
A unit test has been added to the ElasticStack api with all the images
that were hardcoded, to make sure all names are still parsed as expected
and all information in the existing providers is kept.
Modified the default template for all ElasticHosts providers to
match newer Ubuntu images and updated the Template*Live tests
accordingly.
Also refactored the WellKnownImage map to a supplier to lazy load it
when needed and avoid unexpected errors when building the Guice injector
if there are authentication errors or similar.
2014-06-02 16:57:44 +02:00
Andrew Gaul
da8517f295
Increase timeouts for signed URL tests
...
Clock skew between the client and blobstore can cause these tests to
spuriously fail. This commit allows 5 seconds skew in either
direction.
2014-05-30 14:58:40 -07:00
Andrew Gaul
2342abd3c5
Address Checkstyle violations
2014-05-30 11:10:14 -07:00
Andrew Gaul
186f052022
Remove BlobBuilder and Payloads.calculateMD5
...
Callers should instead explicitly set contentMD5, usually with the
results from Guava Hashing.md5(). This narrows the API and removes a
strange IOException from callers. Further it removes a dangerous
rebuffering of arbitrarily-large non-repeatable Payloads.
2014-05-28 12:54:18 -07:00
Andrew Gaul
c6d4e6645c
JCLOUDS-402: Allow Guava MediaType Content-Type
...
This promotes type-safety. Keep the String interface for unknown
content types.
2014-05-28 11:45:00 -07:00
Andrew Gaul
e868675da4
Upgrade to Surefire 2.17
2014-05-27 18:02:54 -07:00
Andrew Gaul
0d2c7ed6ff
Use HashingInputStream to avoid buffering Payload
2014-05-27 15:53:06 -07:00
Ioannis Canellos
2e942072d7
[JCLOUDS-392] Remove dependency from Maps2. Make jclouds-core packages optionally imported from jclouds-scriptbuilder.
2014-05-27 10:20:52 +02:00
Andrew Gaul
bae4377dca
Prefer File.delete over File.deleteOnExit
...
The former has deterministic behavior and avoids resource leaks.
2014-05-23 16:17:10 -07:00
Andrew Gaul
26b53e52b7
Use ByteSource methods to create test input
...
Also avoids excessive system calls due to unbuffered writes. Finally
migrate repeatingArrayByteSource to ByteSources.
2014-05-22 10:43:57 -07:00
Andrew Gaul
4c265d3168
Prefer Guava Hashing over MessageDigest
2014-05-22 09:40:06 -07:00
Andrew Gaul
644fbf2052
Prefer ByteStreams over ByteArrayOutputStream
2014-05-22 00:40:21 -07:00
Ignasi Barrera
22a6028336
JCLOUDS-573: Make sure to destroy all nodes created in the tests
2014-05-21 09:21:31 +02:00
Andrew Gaul
11b778bbb9
Add missing @Override annotations
2014-05-20 21:23:30 -07:00
Andrew Gaul
1f1f4f0a49
Override hashCode when equals overridden
...
Java 8 added a warning for this:
https://bugs.openjdk.java.net/browse/JDK-6563143
2014-05-20 21:22:43 -07:00
Ignasi Barrera
4943ff9341
Fixed format and removed the trailing spaces
2014-05-18 23:59:39 +02:00
Chris Custine
a623e68d08
JCLOUDS-571 - Fix build to suppress maven parent.relativePath warnings at start of build
2014-05-18 23:24:01 +02:00
Andrew Phillips
5239e0fea1
Updating EC2 test mocks to match changes in 79c289d
2014-05-18 14:18:35 -04:00
Andrew Gaul
79c289da9d
Replace deprecated calls to LoadingCache.apply
2014-05-17 17:39:42 -07:00
Andrew Gaul
62a6842748
Address CheckStyle violations
2014-05-17 00:49:40 -07:00
Andrew Gaul
baddf8fe80
Replace InputSupplierMap with Map<K, ByteSource>
...
A future version of Guava will remove InputSupplier.
2014-05-16 18:10:52 -07:00
Andrew Gaul
d9d8d421cb
Migrate InputSupplier callers to ByteSource
...
A future version of Guava will remove InputSupplier.
2014-05-16 18:08:19 -07:00
Andrew Gaul
70cf3e1f7c
Make constants final classes instead of interfaces
...
This commit prohibits implementation of the empty interface and
instantiation of the class. Refer to _Effective Java_ item 19 for
more background.
2014-05-16 09:45:52 -07:00
Jeremy Daggett
94459ba6e3
Update openstack-keystone RetryOnRenew to handle 408 errors with a BackoffLimitedRetryHandler
2014-05-15 08:43:34 -07:00
Andrew Gaul
8d51ad6f87
Prefer Guava HttpHeaders over JAX-RS
...
jclouds code contains more instances of the former and Guava has
additional constants like CONTENT_MD5.
2014-05-15 01:55:51 -07:00
Zack Shoylev
44aea81972
Fixes an issue where the number of retries was always set to 1.
2014-05-14 19:11:52 -05:00
Jeremy Daggett
a53438159a
Fix Accept header and removed Content-Type from common headers
2014-05-14 11:58:37 -07:00
Andrew Gaul
338966f3b9
Upgrade to Checkstyle 2.12.1
...
Checkstyle 2.12 changelog:
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11127&version=19723
Checkstyle 2.12.1 changelog:
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11127&version=20236
Checkstyle 5.7 changelog:
http://checkstyle.sourceforge.net/releasenotes.html
2014-05-14 00:09:11 -07:00
Andrew Gaul
4315d031d5
Upgrade to maven-findbugs-plugin 2.5.3
...
Changelog:
http://jira.codehaus.org/secure/ReleaseNote.jspa?projectId=11701&version=17239
2014-05-13 22:30:16 -07:00
Andrew Gaul
84440e5dc1
Update pre-ASF copyright notices
2014-05-12 13:30:28 -07:00
Andrew Bayer
d15144cf45
JCLOUDS-564. Add ephemeral disks for m3.xlarge and m3.2xlarge sizes
2014-05-12 09:20:01 -07:00
Ignasi Barrera
2bbbe1d5fd
JCLOUDS-563: Upgrade parent pom to version 14
2014-05-12 17:51:05 +02:00
Andrew Gaul
7f28dcef07
Remove deprecation from getConsistencyModel
...
This method informs callers of the expected blobstore behavior,
avoiding unnecessary work for providers which support strict
consistency (Azure, mock blobstores).
2014-05-09 13:20:42 -07:00
Jeremy Daggett
64ecd497c1
Updated ServiceType refs in Cloud Databases
2014-05-09 12:35:41 -07:00
Andrew Gaul
67c2b5f6b9
Enable whitespace around Checkstyle rule
2014-05-08 18:31:47 -07:00
Andrew Gaul
2d88f5164e
Enforce that all commas have trailing whitespace
2014-05-08 18:28:08 -07:00
Ignasi Barrera
aef9fc8d83
JCLOUDS-561: Properly populate the ssh agent connection in the builder methods
2014-05-08 08:52:58 +02:00
Andrew Gaul
24a7c4d195
Address Checkstyle violations
2014-05-07 16:30:19 -07:00
Andrew Gaul
a45124c51a
JCLOUDS-505: Remove unused ObjectMD5
...
The only users of this seem to be
org.jclouds.atmos.blobstore.strategy.FindMD5InUserMetadata and
org.jclouds.azureblob.blobstore.strategy.FindMD5InBlobProperties which
are themselves unused.
2014-05-07 10:16:18 +02:00
Andrew Gaul
3f22f6738d
JCLOUDS-534: Upgrade to Guava 17.0
...
Release notes:
https://code.google.com/p/guava-libraries/wiki/Release17
2014-05-06 17:23:37 -07:00