8255 Commits

Author SHA1 Message Date
Andrea Turli
43f2f0ba3b JCLOUDS-375: Fix VirtualGuestToNodeMetadata when server returns SoftLayer_Exception_Order_Item_Duplicate
* Wrap getOrderTemplate in VirtualGuestToNodeMetadata.getImage with try/catch
* Address comments from @nacx and @demobox:
  - remove the fields of the custom SoftLayerOrderItemDuplicateException and propagate the HttpResponseException
  - use of order = null instead of return null
  - extend RuntimeException instead IllegalStateException in SoftLayerOrderItemDuplicateException

Conflicts solved:
	providers/softlayer/src/main/java/org/jclouds/softlayer/compute/functions/VirtualGuestToNodeMetadata.java
2013-11-13 14:12:24 +01:00
Ignasi Barrera
cccdb756d1 JCLOUDS-365: ChefSolo should not depend on InstallChefGems 2013-11-12 09:11:38 +01:00
Andrew Phillips
4500dbe2ef JCLOUDS-352: Drops support for "-incubating" release versions 2013-11-06 22:31:54 -05:00
Andrew Phillips
29d574ffb2 Fixing typos in test name 2013-11-06 22:31:31 -05:00
Martin Harris
ca8289b692 JCLOUDS-331: Changed return type of TemplateBuilder.imageChooser
TemplateBuilderImpl -> TemplateBuilder
2013-11-06 21:25:59 -05:00
jolly
6e7c2c7e88 add g2.2xlarge EC2 instance size (JCLOUDS-364) 2013-11-06 12:24:06 -08:00
Andrew Gaul
c215d123c4 Address error-prone self-equals warning 2013-11-05 16:24:50 -08:00
Andrew Gaul
6c5effcdb1 Address error-prone empty statement warnings 2013-11-05 16:22:44 -08:00
Andrew Bayer
cf597121b2 Cleaning up CloudStack SecurityGroupExtension work 2013-11-01 17:06:54 -07:00
Andrew Phillips
e2f67a7567 Removing debugging System.err calls mistakenly included in ecc918b4 2013-11-01 16:33:36 -04:00
Andrew Gaul
17ce72794c Enable RedundantModifier for Checkstyle 2013-10-31 10:23:30 -07:00
Zack Shoylev
cb9a6b9413 Reduces parallelism to make test work better with slower connections Adjusts test timing to work properly and reliably 2013-10-30 10:33:15 -05:00
Everett Toews
1013986585 Refactored OpenStack pagination. Removed Rackspace pagination. Prefer PaginationOptions. 2013-10-24 16:52:25 -05:00
Andrew Gaul
ac5559ca9e Address Checkstyle violations 2013-10-22 16:45:16 -07:00
istolber
fb11c1fc1a JCLOUDS-350 rebuild server for Openstack NOVA added more options: password, name, ipv6 and ipv4 addresses. 2013-10-22 18:04:17 -05:00
istolber
1c9d1676cd JCLOUDS-348
list quotas for cinder + expected and live tests
2013-10-21 09:12:53 -05:00
istolber
725b7c5c2c JCLOUDS-353 openstack list availability zones for NOVA 2013-10-21 09:08:07 -05:00
Andrew Phillips
f196ee3b6b Move Expect: 100 stripping after asserts against the request
Follow-up to e30f86521
2013-10-19 20:05:42 -07:00
istolber
a42d62cb88 JCLOUDS-349
createServerByZone squashed commit
create server in a selected availability zone + live and expect tests
2013-10-18 09:50:27 -05:00
Diwaker Gupta
13f38d628d Return false if container already exists in AWS-S3
AWS-S3 returns the incorrect creation status when a container already
exists in the us-standard (or default) region.  Fixes JCLOUDS-334.
2013-10-17 13:58:43 -07:00
Andrew Gaul
e30f865215 Work around CloudFiles test failures
Java helpfully interprets Expect: 100-continue instead of returning
the response code.  This commit reverts
100afba1d8b2d1a440168fed271a7b39ab0152e7.
2013-10-17 13:08:02 -07:00
Zack Shoylev
578a77d631 Reauthenticate on Keystone HTTP 401 (JCLOUDS-178)
The number of retries here is not the same as for 500 errors; expected
behavior is a quick fail while retaining some robustness.  This fix
should not reintroduce JCLOUDS-231.
2013-10-16 10:34:27 -07:00
Everett Toews
952d8444d4 Added Marconi (Queues) to accessRackspace. 2013-10-15 13:42:58 -05:00
Everett Toews
622d019f44 Fixed imports and formatting. 2013-10-15 11:23:05 -05:00
Everett Toews
cf9ef9ce5f Renamed variable and method more appropriately. 2013-10-15 11:22:53 -05:00
Niraj Tolia
53146fb7bb [JCLOUD 301]: Make increased use of Invokable params cache
This patch moves the Invokable Parameter cache to Reflection2 and adds
a convenience method for it to allow it to be shared by multiple
callers. The subsequent ability of S3Utils to use this cache results
in a ~40% improvement in performance for generating signed GETs and
PUTs for S3. This commit also converts a few others calls to
Invokable.getParameters() but the observed benefit from those was
small in microbenchmarks.
2013-10-14 17:44:03 -07:00
Andrew Gaul
0722ce71af Skip testCreateBlobWithExpiry for Swift
jclouds does not implement this functionality.  Now all tests pass for
cloudfiles-us.
2013-10-13 20:01:44 -07:00
Andrew Gaul
8bf534cc3a Do not set hash to null unnecessarily
This avoids test failures seen in
CommonSwiftClientLiveTest.testObjectOperations.
2013-10-13 19:24:40 -07:00
Andrew Gaul
4aeaf5f5bd Get container name before creating with metadata 2013-10-12 14:10:17 -07:00
Andrew Gaul
f468a951b2 Do not call createContainer(getContainerName)
BaseBlobStoreIntegrationTest.getContainerName implicitly calls
createContainer.
2013-10-12 12:39:18 -07:00
Everett Toews
3aabd50790 New base class for all OpenStack mock tests. 2013-10-11 17:17:00 -05:00
Everett Toews
3172e0bc11 ServiceType for Marconi/Cloud Queues. 2013-10-11 13:47:55 -05:00
Everett Toews
747fde69e9 Support HKG region for Rackspace providers. 2013-10-10 20:58:33 -05:00
Andrew Gaul
04c9c6afd2 JCLOUDS-339. Handle zero-length objects in Atmos
Atmos does not return a location header when writing zero-length
objects, which normally throws an HttpResponseException: no uri in
headers or content.
2013-10-08 22:14:37 -07:00
Andrew Gaul
0183e5c725 .mailmap updates 2013-10-08 22:14:07 -07:00
Zack Shoylev
7593935380 JCLOUDS-332 Skips tests broken on windows 2013-10-08 15:07:35 -05:00
Andrew Gaul
7d20658b02 JCLOUDS-334. Return URI only if container created
This allows us to honor the BlobStore.createContainerInLocation
interface and gives consistency with other providers.
2013-10-08 13:03:55 -07:00
Andrew Gaul
103dd7315b Skip failing testCreateBlobWithExpiry on Atmos 2013-10-08 11:45:25 -07:00
Shri Javadekar
af245d67fe JCLOUDS-334. Return correct status while creating containers in Swift.
BlobStore.createContainerInLocation is supposed to return True if the
container was newly created and False if the container already
existed. This commit makes that happen for Swift blobstores.
2013-10-07 21:48:57 -07:00
Andrew Bayer
46b8fd0eee Fix OpenStack Nova SecurityGroupExtension based on live tests
So there were a few problems, but the core ugly one is that what you
pass in for creating a rule allowing groups' access is not the same
thing you get back from a group with such a rule, which makes mapping
between the arguments and the output insanely painful. So now, well,
we do some insanely painful stuff.
2013-10-07 17:50:53 -07:00
Niraj Tolia
e017b8904c Trivial: Remove unnecessary for loop in Atmos signing 2013-10-07 15:00:51 -07:00
Alex Heneveld
8207c53cf2 JCLOUDS-331 - support specifying an imageChooser function in TemplateBuilder 2013-10-04 18:38:53 +02:00
Andrew Bayer
aa8fab16f9 JCLOUDS-287. Add SecurityGroupExtension support to CloudStack. 2013-10-03 14:54:57 -07:00
Andrew Bayer
d6830bd5ff Fix assertEquals arg ordering in BaseSecurityGroupExtensionLiveTest 2013-10-01 14:36:48 -07:00
Adrian Cole
6eda031e27 JCLOUDS-311. work around mixed versions in hpcloud-objectstorage regions 2013-09-30 15:33:23 -07:00
Andrew Gaul
f1fc63ab76 Add whitespace around keywords and braces 2013-09-30 09:39:29 -07:00
Andrew Bayer
0aa19a0cee Fix aws-ec2 live tests
Involves some non-trivial reworking of EC2 security group
translation/binding, but it was necessary.

Still problems with a number of tests:
- org.jclouds.aws.ec2.compute.AWSEC2TemplateBuilderLiveTest#testTemplateBuilderWithLessRegions
- org.jclouds.ec2.compute.EC2TemplateBuilderLiveTest#testTemplateBuilderCanUseImageIdWithoutFetchingAllImages

Those seem to be failing because there's caching going on that they're
not expecting, but I could be wrong.

Also failing:
- org.jclouds.aws.ec2.features.PlacementGroupApiLiveTest in general
- org.jclouds.aws.ec2.features.SpotInstanceApiLiveTest - a couple tests
2013-09-30 09:33:57 -07:00
Andrew Bayer
962f98969f Fix EC2 live tests
This removes
org.jclouds.ec2.compute.functions.PasswordCredentialsFromWindowsInstanceLiveTest
due to there not being an easily detectable valid AMI for it to run,
and low interest in actually running it in the first place.
2013-09-30 09:33:56 -07:00
Adrian Cole
ddfefd7ec7 JCLOUDS-304. Remove broken terremark providers 2013-09-30 09:00:24 -07:00
Andrew Gaul
06b8cd7ac5 JCLOUDS-305. Disable S3 virtual host buckets for generic S3
Not all S3-compatible providers support virtual host buckets and thus
we should disable this feature by default.  Continue to enable virtual
host buckets for AWS-S3 which supports this although this feature
suffers from DNS settling issues.  Ran ran integration tests against
AWS-S3 and Scality using its S3 API.
2013-09-27 16:22:42 -07:00