Jeremy Daggett
801aecafea
JCLOUDS-40: Unasync OpenStack Nova API
2014-07-15 14:29:09 -07:00
Andrew Gaul
086fb9c728
JCLOUDS-629: SshjSshClient Payload without length
...
sshj treats -1 as an unknown length and uses a less efficient copying
mechanism.
2014-07-15 13:11:37 -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
75928795f3
Address Checkstyle violations
2014-07-15 03:07:29 -07:00
Andrew Gaul
bdb5cbcbe7
Improve use of ByteSource with test resources
...
This commit ensures proper resource cleanup, simplifies
initialization, and paves the way for purely synthetic inputs in a
subsequent commit.
2014-07-11 09:10:51 -07:00
Andrew Gaul
de68449cde
JCLOUDS-622: Deprecate Strings2.toString
...
Guava 16 deprecated InputSupplier.
2014-07-10 23:32:41 -07:00
Andrew Gaul
cf830af4d2
Remove unneeded InputSupplier helper
...
Also convert byte[] to HashCode.
2014-07-10 22:36:32 -07:00
Andrew Gaul
f4eca0422d
Enforce correct MD5 for local blobstores
...
Matches behavior of real blobstores.
2014-07-10 22:19:42 -07:00
Andrew Gaul
1d218b1705
JCLOUDS-417: Test closing a stream w/o reading it
2014-07-10 20:59:10 -07:00
Tom Manville
afc0ca557d
JCLOUDS-417: Remove ConsumeOnCloseInputStream
...
ConsumeOnCloseInputStream can potentially perform a copy in finalize()
if the stream was not closed properly.
2014-07-10 20:59:09 -07:00
Andrew Gaul
66dab8d96e
JCLOUDS-410: Remove InputStreamSupplierPayload
...
ByteSourcePayload replaces this. jclouds 1.7 deprecated
InputStreamSupplierPayload and Guava 16 deprecated InputSupplier
itself.
2014-07-10 20:43:08 -07:00
Andrew Gaul
b432acd834
Upgrade to logback 1.1.2
...
Changelog:
http://logback.qos.ch/news.html
2014-07-10 10:14:27 -07:00
Andrew Gaul
66307d9816
Use consistent stage for the two-stage injection
2014-07-07 23:36:53 -07:00
Andrew Gaul
3fdb6d2e91
Avoid extra copy with Splitter result
2014-07-07 23:36:22 -07:00
Christopher Dancy
3659a5f583
JCLOUDS-607: ComputeService.createNodesInGroup throws NPE on FloatingIPApi.create()
2014-07-07 19:46:54 -04:00
Andrea Turli
4cf6efe39a
refactor BaseComputeServiceLiveTest to simplify the extension of this base test
2014-07-07 10:53:13 +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
Andrew Gaul
f5244884a5
Avoid impossible UnsupportedEncodingException
2014-07-02 17:30:09 -07:00
Roman C. Coedo
3932e8a3bd
Default values for aws credential properties
...
Every project was using undefined properties in their pom.xml.
A default value for test.aws.identity and test.aws.credential was
added.
2014-07-02 15:33:10 -07:00
Andrew Gaul
d43c3ea3e0
Handle short reads in BasePayloadSlicer
...
InputStream.read(byte[]) can return fewer bytes than requested.
Specifically ByteSource.concat(ByteSource...).openStream() will only
return as many bytes as the current ByteSource contains. Thus
ByteSources.repeatingArrayByteSource(byte[]).openStream() will return
short reads despite the byte[] input from its single logical
InputStream.
2014-07-02 15:13:20 -07:00
Epimenidis Voutsakis
b259af48c0
Added ConsolesApi extension for openstack-nova
2014-07-02 11:39:52 -07:00
Ignasi Barrera
e19c5e9fb6
Exclude the CONTRIBUTING file from the rat check
2014-07-02 17:36:26 +02:00
Ignasi Barrera
da3509056c
Added the CONTRIBUTING file
2014-07-02 16:48:14 +02:00
Ignasi Barrera
b9029ea7a6
JCLOUDS-617: Use the configured JCE provider in the Cipher payloads
2014-07-02 00:27:08 +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
Andrew Gaul
5118e16660
Upgrade to testng 6.8.8
...
Partial changelog:
https://github.com/cbeust/testng/blob/master/CHANGES.txt
2014-06-30 19:04:44 -07:00
Andrew Gaul
77eff6fffb
Close InputStream after use
...
Found with Kohsuke's file-leak-detector.
2014-06-30 18:26:55 -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
a68eb38901
JCLOUDS-612: Securely create temporary directories
...
This commit addresses a potential security issue where an attacker
could hijack the ScriptBuilder payload by predicting the temporary
directory name.
2014-06-25 23:23:06 +02:00
Christopher Dancy
8598ee858a
JCLOUDS-610: Return the affected nodes from resumeNodesMatching, suspendNodesMatching and rebootNodesMatching
...
Methods have been refactored to match the functionality provided by destroyNodesMatching.
2014-06-24 22:58:34 +02: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
Andrew Gaul
5b5e713cba
Avoid unnecessary object creation
...
Prefer StringBuffer.append(string, index1, index2) over
StringBuffer.append(String.substring(index1, index2).
2014-06-24 13:15:18 -07:00
Chris Custine
309c053c77
JCLOUDS-584: HP Cloud Object Storage Fixes for 13.5
2014-06-24 12:01:51 -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
Andrew Gaul
ad56db2a4d
Upgrade to OkHttp 1.6.0
...
This upgrades both drivers/okhttp and mockwebserver. Changelog:
https://github.com/square/okhttp/blob/master/CHANGELOG.md
2014-06-18 19:49:50 -07: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
Christopher Dancy
ea68554244
NodePredicates gained static predicate SUSPENDED
...
Replaced hard-coded Strings in toString methods of static predicates with their enum.toString counterparts
Added test 'testNodeRunningFailsOnSuspended'
Revert "Added test 'testNodeRunningFailsOnSuspended'"
This reverts commit 2a543bfe20540bb4f10ef4f86e845a63bdbe90e3.
Removed test 'testNodeRunningFailsOnSuspended'. Added test 'testNodeSuspendedReturnsTrueWhenSuspended'.
Renamed '
Revert "Renamed '"
This reverts commit 061e9292a812066562ab47ba5eea15337fc13c3d.
Renamed 'AtomicNodeSuspended.nodeRunning' to 'AtomicNodeSuspended.nodeSuspended'.\nWhere applicable combined all calls to 'replay(Object...)' instead of the old 'replay(node);replay(computeService);'
2014-06-16 16:58:35 -05: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