Commit Graph

9969 Commits

Author SHA1 Message Date
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
Aled Sage df5427f778 Fix logging in nova: don’t assume logback 2017-05-04 17:21:39 +02:00
Ignasi Barrera 05f64b20a8 Fix default executor rejection policies 2017-04-24 08:16:45 +02:00
Ignasi Barrera 6100b7c366 Fix BaseComputeServiceLiveTest configuration 2017-04-21 20:19:49 +02:00
Ignasi Barrera 8c2e7435da Fix the Jetty start statement used in compute live tests 2017-04-20 10:01:51 +02:00
John McDonnell 499e61b80d [JCLOUDS-1128] Added page and pagesize fields to ListProjectOptions.
Cloudstack's listProjects request supports additional fields for page
and pagesize.  These were missing but have been added in as part of this
commit.
2017-04-18 16:02:25 +02:00
John McDonnell 743bac2ed4 [JCLOUDS-1130] Cloudstack fixed projectid parameter in listUsageRecords.
Cloudstack's listUsageRecords response doesn't use camelcase so the projectid
parameter was incorrect.  Updated from projectId to projectid.
2017-04-18 16:02:25 +02:00