Commit Graph

9975 Commits

Author SHA1 Message Date
Ignasi Barrera 4329c8971a JCLOUDS-1373: Add eu-west-3 (Paris) AWS region 2018-01-16 15:21:56 +01:00
Ignasi Barrera ec20f05b68 JCLOUDS-1372: Add support for R4 instance types 2018-01-16 12:57:33 +01:00
Andrew Gaul 382c9201e3 JCLOUDS-1368: Correct use of slicing algorithm
MultipartUploadSlicingAlgorithm creates multiple equal-sized parts and
a remaining amount.  BaseBlobStore.putMultipartBlob used this
interface incorrectly, which could create more parts than intended
since the remaining size could be larger than the part size.  This
manifested with Google Cloud Storage which only allows 32 parts.
2018-01-09 12:58:18 -08:00
Ignasi Barrera 2220996605 JCLOUDS-1362: Better password generation utility 2018-01-08 08:42:12 +01:00
Ignasi Barrera f1126a1131 Fix DigitalOcean DropletApiLiveTest 2017-11-30 09:21:22 +01:00
Ignasi Barrera b0fa8abbfb Fix GCE live tests 2017-11-30 09:18:51 +01:00
Ignasi Barrera 3bdc25c373 OAuth filter customization per request 2017-11-30 09:14:02 +01:00
Ignasi Barrera a03e047da6 Define the JDK version in a Maven property 2017-11-30 09:13:39 +01:00
Ignasi Barrera 4327e658ba Next development version 2.0.4-SNAPSHOT 2017-11-25 22:33:58 +01:00
Ignasi Barrera 0f889d8159 Apache jclouds 2.0.3-rc1 release 2017-11-25 22:28:20 +01:00
Andrew Gaul 6d1b385bb0 Include trailing slash in prefix test 2017-11-24 21:42:49 -08:00
Andrew Gaul b7b67a0f6a JCLOUDS-1358: Handle 0-byte input with v4 signature
Previously this failed due to use of mark and reset on the
InputStream.
2017-11-24 20:15:25 -08:00
Andrew Gaul 9a302453e0 JCLOUDS-1358: Fix zero byte InputStream test input
Do not use ByteSource.empty() since it is backed by a
ByteArrayInputStream which supports reset.
2017-11-24 20:15:25 -08:00
Andrew Gaul 63e64505b2 Address Checkstyle violation 2017-11-24 19:25:35 -08:00
Andrew Gaul c61e8bc28b Implement partial prefix support for Atmos
Atmos only supports listing by directories while other blobstores
allow listing via arbitrary prefixes.  Allow requests which list
directories via both prefix and delimiter = "/" to succeed instead of
failing all requests.  Also change a test which specified recursive to
instead be delimiter = "/".  Fixes gaul/s3proxy#244.
2017-11-24 19:25:35 -08:00
Andrew Gaul b95809046a Add mtime support to Atmos directory listing 2017-11-24 19:25:35 -08:00
Andrew Gaul 28a70b7fb4 Enable passing Atmos tests
Also clarify why we skip certain tests with SkipException.
2017-11-24 19:25:35 -08:00
Andrew Gaul 48a8400c3f Add parent to system metadata
Previously this caused spurious test failures.
2017-11-24 19:25:35 -08:00
Andrew Gaul 17c8e31546 Handle empty prefix on Atmos 2017-11-24 19:25:34 -08:00
Andrew Gaul 57dceaf56f Allow empty delimiters with openstack-swift 2017-11-24 19:25:34 -08:00
Andrew Gaul 4765590bc9 Remove duplicate Nullable import 2017-11-24 19:25:34 -08:00
Andrew Gaul d31dc94149 Allow lastModified to be null
Follow on to ec932321bd
2017-11-24 18:41:49 -08:00
khopade f4ecb785d1 Utilizing MD5 hash present in payload metadata, instead of generating it again from payload 2017-11-10 10:13:40 +01:00
Richard Downer 4b4374025f Recognise CentOS images on AWS Marketplace
CentOS’ officially-supported AMIs are hosted on the AWS Marketplace.
This adds support for those images, recognising the AMI naming
convention and ensuring the OS metadata is parsed correctly and the
correct SSH login name is used.

There is no change to the default jclouds configuration and the
official CentOS images will not be detected by default. To use these
images, you must alter the ami-query properties to include searching
the “AWS Marketplace”, which has an owner ID of 679593333241. You must
also manually log on to the AWS Marketplace, select your chosen CentOS
image, and “subscribe” to it (you can do this by proceeding as if to
launch an image, but stopping after you have agreed to the subscription
and before launching).
2017-11-03 12:35:42 +01:00
Richard Downer 4dbba815ca JCLOUDS-1351: improve OS Family parsing
Modifies OsFamily to have two tiers of known OSes, so that generic OS
names such as “Linux” cannot end up taking priority over more specific
OS names. This fixes the case where “CentOS Linux” was detected as LINUX
and not CENTOS.
2017-11-03 12:35:39 +01:00
Ignasi Barrera 79aa09dd14 Add Jenkins profile to use Maven toolchains 2017-10-23 12:00:08 +02:00
Ignasi Barrera cfdbc810b3 JCLOUDS-1258: Allow China endpoints in FormSignerV4 2017-09-08 08:13:31 +02:00
Andrea Turli 7785379d81 [JCLOUDS-1332] destroyNode and destroyNodesMatchingPredicate different semantic
- modify BaseComputeService to make the 2 operations more similar
- remove overridden destroyNode and destroyNodesMatching from GoogleComputeEngineService
2017-09-05 22:22:01 +02:00
Zack Shoylev c2a4b8afde Updates the default template so live tests pass again. 2017-08-29 17:32:04 +02:00
Chaithanya Ganta 5e9743a226 JCLOUDS-1327: Add tests for zero-length blobs 2017-08-06 13:51:51 -07:00
Timur Alperovich 8ab58f075f Handle empty delimiter/prefix in FS store.
When delimiter/prefix is an empty string, jclouds filesystem blobstore
should treat them as not being set.
2017-08-03 14:38:08 -07:00
William L. Thomson Jr 78881d2f53 core/src/main/java/org/jclouds/rest/internal/TransformerForRequest.java:
Fix for Java 1.8 and Guice 4.1. Not sure if this is correct, but does
compile. Committing to see if it passes tests to confirm fix or not.

Modified per @nacx on jclouds PR1036
https://github.com/jclouds/jclouds/pull/1036#issuecomment-319904820
2017-08-03 19:22:50 +02:00
Svetoslav Neykov 5b57b73cf7 Makes sure Jetty doesn't terminate on ssh disconnect
Fixes BaseComputeServiceAdapterLiveTest.testCreateAndRunAService for CentOS 7. disown in jetty.sh is not enough to detach the process from the current session so it's terminated when jclouds closes the connection.
2017-07-20 16:50:00 +03:00
Ignasi Barrera 3b5fe0b02f Next development version 2.0.3-SNAPSHOT 2017-06-29 12:24:45 +02:00
Ignasi Barrera 574c7fc3c1 Apache jclouds 2.0.2-rc1 release 2017-06-29 12:21:59 +02:00
Svetoslav Neykov a2863b2a3c
JCLOUDS-1307: Invalidate SG on removal even if already externally deleted 2017-06-27 13:33:30 +03:00
Svetoslav Neykov 502d749680
JCLOUDS-1307: Invalidate SG on removal even if already externally deleted 2017-06-27 13:29:41 +03:00
El del tallat 64805315e6 Added Alpine Linux OS Family 2017-06-12 08:31:05 +02:00
Svetoslav Neykov 04ff09e6fe [JCLOUDS-1306] Fix SG cache invalidation when deleting 2017-06-09 12:05:19 +02:00
Ignasi Barrera db4f191b5f
JCLOUDS-1295: Support deprecated date formats in the Expires header 2017-05-29 17:04:13 +03:00
Geoff Macartney 81f8818e32 Temporarily use a custom annotation instead of @SinceApiVersion.
The intention is to use @SinceApiVersion for this purpose, but that
would affect a number of APIs, and we would want to have good test
coverage before merging that change (in
FormSignerUtils#getAnnotatedApiVersion). However, there is some issue
wth certain tests at resent that means we cannot successfully test
all APIs that make use of @SinceApiVersion in order to assure
ourselves that FormSignerUtils will not introduce some problem.

See https://github.com/jclouds/jclouds/pull/1102#issuecomment-302682049
for details.

This annotation is introduced as a temporary measure in order to
decouple the functionality of FormSignerUtils#getAnnotatedApiVersion
from @SinceApiVersion and the tests in question. It can be removed and
replaced by @SinceApiVersion when those tests are fixed.

Designates that a method overrides the {@link ApiVersion} on the class
with a specific value.
2017-05-29 10:32:51 +02:00
Geoff Macartney c0f3eb6071 Add ModifySubnetAttribute 2017-05-29 10:32:48 +02:00
Geoff Macartney f7390443db Add RouteTable API.
Limitations:
Does not contain support for VgwRoutePropagation.
2017-05-29 10:31:44 +02:00
Andrew Gaul acb84bc5e1 JCLOUDS-1299: Handle % in names during Swift list
uriBuilder.appendPath assumes an encoded path.
2017-05-17 10:38:10 -07:00
ui4j f7cad22d93 JCLOUDS-1297: Fix uploadId format for non-English locale
Add Locale.ENGLISH parameter to String.format(...) to generate same uploadId for different locales.
2017-05-15 11:12:00 -07:00
Geoff Macartney a911e5eef1 Add an InternetGatewayApi to AWSEC2Api.
This is a follow-up to https://github.com/jclouds/jclouds/pull/1091
and particularly the comment at
https://github.com/jclouds/jclouds/pull/1091#issuecomment-299202429:

I have been trying this out and I think we will need to extend it for
practical purposes; if you want to create a VPC and subnet and then
deploy a machine on to it, you also need to jump through a few other
hoops apart from creating the subnet:

 - modify the subnet attributes to permit auto-assign public
   IP ("ModifySubnetAttribute")
 - create an Internet Gateway on the VPC ("CreateInternetGateway")
 - get and then modify the routing table of the subnet to add a public
   (0.0.0.0/0) route through the newly added gateway ("CreateRoute" and
   friends)

There are three AWS APIs needed for the above, an `InternetGatewayApi`,
a `RouteTableApi` and a method in the subnet API, I guess, for modifying
attributes on subnets. This PR contains the `InternetGatewayApi`.
2017-05-11 00:31:59 +02:00
Stephen Tomkinson 36b3dadf8c Add logic from JCLOUDS-1261 to the other 2 types of Aws4 signer. 2017-05-10 10:52:22 -07:00
Tomas Tulka 9bf7c5da5a fix for deleting an invalid file
If the file for delete is invalid (typically a wrong filename) an IOException will be thrown.
2017-05-10 01:02:48 -07:00
Stephen Tomkinson 1a23a16343 Resolves JCLOUDS-1261 by ensuring non-standard port numbers are in the host header that's used for the AWSv4 auth calculations. 2017-05-10 00:00:51 -07:00
Andrea Turli a9cc10c490 JCLOUDS-1269; JCLOUDS-1120: ec2 subnet/securityGroups fixes 2017-05-04 17:42:26 +02:00