Commit Graph

10509 Commits

Author SHA1 Message Date
Joe Meiring 22ce5484a4 Removed unneeded check for prefix in clearContainer 2018-11-02 12:19:01 -07:00
filecatalyst bbb41b4590 JCLOUDS-1464: Update Google Cloud Storage regions
Added missing regions.  For reference:
https://cloud.google.com/storage/docs/bucket-locations
2018-10-30 11:18:08 -07:00
Timur Alperovich 539a9854c1 JCLOUDS-1450: Use S3-style ETags for MPUs.
S3 uses a different ETag for multipart uploads (MPUs) than regular
objects. The ETag consists of the md5 hash of the concatenated ETags of
individual parts followed by the number of parts (separated by "-").

The patch changes the LocalBlobStore's implementation of
CompleteMultipartUpload to set the S3-style ETag before calling
putBlob() and return that ETag to the caller.

To simplify testing, a new protected method with a default NOOP
implementation is added to the BaseBlobIntegrationTest. It allows
providers to further verify MPUs (i.e. ensuring the correct ETag has
been stored alongside the object).
2018-10-24 13:25:00 -07:00
Trent Schmidt 219e2958d7 JCLOUDS-1460: Adding instances to AWS 2018-10-24 14:42:46 -04:00
Ignasi Barrera 9dd50b39c9 JCLOUDS-1463: Do not return MachineTypes from zones that are not available for deploy 2018-10-24 09:20:22 +02:00
Ignasi Barrera 767240f360 JCLOUDS-1462: Upgrade Apache Http driver to 4.3.6
In response to https://nvd.nist.gov/vuln/detail/CVE-2015-5262
2018-10-18 16:50:18 -04:00
Oliver Gondža 8b17dfea87 Make NovaErrorHandler logging of sensitive information configurable 2018-10-18 11:32:04 +02:00
Mahmoud Ismail f7b83f4563 Mark sourceImage as Nullable 2018-10-18 11:27:58 +02:00
Andrew Gaul cc65957997 Error-prone 2.3.2 fixes 2018-10-12 23:28:00 -07:00
smedavaram75 17cf6fec9e JCLOUDS-1419: Add missing REGIONAL storage class 2018-09-13 13:28:19 -07:00
David Currie 7ebf12bf38 JCLOUDS-1447: URL encode x-amz-copy-source
The x-amz-copy-source header on S3 CopyObject should be URL encoded (as
a path). This is not universally true of all headers though (for example
the = in x-amz-copy-source-range) therefore introducing a new parameter
on @Headers to indicate whether URL encoding should take place.
2018-09-12 08:01:43 -07:00
David Currie 5803de0f8e Correct failing testUseBucketWithUpperCaseName
As of March 1 2018, bucket names must be DNS compliant in all regions
therefore removing failing test of legacy names in US regions.
2018-09-12 08:01:43 -07:00
Dani Estevez a07ab5a982 JCLOUDS-1441: Enables support for ARM regions in China
Adds new china regions

Fixes pattern matching for China provider oauth string

Modifies test for oauth string

overrides jclouds.oauth.resource property for tests

Graph and Vault API Endpoints need to be configurable

jclouds.oauth.resource is not mandatory

Adapted Endpoints for APIs GraphRBAC and Vault

Adds unit test for china oauth endpoint check

Minor fix to regular expression
2018-09-06 10:42:47 -04:00
Markus Alexander Kuppe 88f44a6d8e JCLOUDS-1339: Support launching an x1 EC2 instance
https://issues.apache.org/jira/browse/JCLOUDS-1339
2018-08-23 20:25:05 +02:00
Mathieu Tortuyaux bcc6a26488 JCLOUDS-1443: fix(rest/processor): check if `/` is ending a default endpoint 2018-08-23 20:24:38 +02:00
Vikas Rangarajan cf67233765 JCLOUDS-1436: Add support for aws ec2 m5 instance types
fix: remove duplicate imports
2018-08-01 17:28:09 -04:00
Vikas Rangarajan 982c6bea02 JCLOUDS-1387: Add support for c5 instance types in AWS ec2 2018-08-01 16:53:06 -04:00
Dani Estevez 92076d6b79 Adds method checkIpAvailability to VirtualNetworkApi
Addresses @nacx comments

Fixed formatter maximum line width. Removed redundantTest
2018-07-13 07:10:28 -07:00
Dani Estevez e45c262ff2 Adds missing virtualMachine field to NetworkInterfaceCardProperties 2018-07-12 09:24:00 -07:00
Dani Estevez 566ac23392 Adds listAll to PublicIPAddressAPI
Adds listAll to NetworkInterfaceCardApi

Addresses comments on tests

Sets resourcegroup pathparam as nullable for NetworkInterfaceCardApi and PublicIPAddressApi
2018-07-12 09:23:27 -07:00
Ignasi Barrera 4958f1f29a Adds ConcurrentModificationException to the list of propagatable types 2018-07-11 09:43:04 -07:00
Ignasi Barrera 3839432757
Configure Java 7 language level 2018-07-11 09:42:18 -07:00
Jesse Glick 019ccb7431
Pinning down JCLOUDS-1401 fix behavior with a unit test which is able to distinguish URI.query from URI.rawQuery. 2018-07-11 09:35:34 -07:00
Jesse Glick 9a65be789e
Live test demonstrating effectiveness of JCLOUDS-1401 fix. 2018-07-11 09:35:34 -07:00
Jesse Glick 34d272ac80
Allow S3ClientLiveTest (and AWSS3ClientLiveTest) to use a session token. 2018-07-11 09:35:34 -07:00
Jesse Glick f770455ff9
[JCLOUDS-1401] Properly URL-encode the CanonicalQueryString when it contains funny characters. 2018-07-11 09:35:34 -07:00
Jesse Glick c34935dcd3 [JCLOUDS-1433] $ and \ in tokenValues passed to Strings2.replaceTokens(String, Multimap) could result in IllegalArgumentException. 2018-07-10 15:00:56 -07:00
Dani Estevez 1bd3b8f9df Implements VirtualMachineAPI deallocate operation
https://docs.microsoft.com/en-us/rest/api/compute/virtualmachines/deallocate

Adds missing mock test
Fixes returning codes from API methods to 202
2018-07-09 10:29:33 -07:00
Ignasi Barrera 975aca5346 Added Virtual Network Gateway Connection API 2018-07-06 10:05:43 +02:00
Ignasi Barrera f572304acc Fix GCE live tests 2018-07-04 15:56:19 +02:00
Ignasi Barrera ea5b899def Added Virtual Network Gateway API 2018-07-03 12:51:15 +02:00
Dani Estevez 39d770ffc3 Adds minor improvements to readability 2018-06-26 09:05:43 +02:00
Dani Estevez 3171e4c79b Checks network availability before working with recently created networks 2018-06-26 09:05:39 +02:00
Dani Estevez 23e783e0cf Adds new Generally Available azure locations for Australia and France 2018-06-26 09:01:20 +02:00
Lucia Monte 6b4be0d686 JCLOUDS-1427: Fix Elastic IP deserialization when IP has tags 2018-06-20 15:31:13 +02:00
Dani Estevez e4f1823fd5 Fixes/adds fields primary for NetworkInterfaceCardProperties and misplaced in IpConfiguration 2018-06-15 08:56:27 +02:00
Ignasi Barrera ff93565b1d Added Local Network Gateway API 2018-06-11 15:25:25 +02:00
Jesse Glick 36353d6157 [JCLOUDS-1422] Ensure that LocalBlobStore.list honors !recursive even when a prefix is defined. 2018-06-06 22:47:56 -07:00
Jesse Glick 11fac4f020 Include the delimiter field in ListContainerOptions.toString. 2018-06-06 22:47:56 -07:00
Dani Estevez 9d88f6df5e Adds test for Azure name validator 2018-05-25 09:39:21 +02:00
Dani Estevez 5ee3ae552d Adds new more relaxed validator for Azure entities 2018-05-25 09:39:21 +02:00
Ignasi Barrera b76a594e81 JCLOUDS-1421: Add default credentials to images created by the ImageExtension
By default, when listing images the ComputeServiceAdapter adds the
default credentials for each image. This is not done when images are
created by the image extension, and NPEs can appear in code that assumes
the default credentials are there, as the field is not nullable.

This change tries to populate the known node credentials for images
created form nodes, and falls back to the default strategy to add the
default credentials to an image if there are not known credentials.
2018-05-22 16:30:26 +02:00
Mat Mannion 29655f3149 JCLOUDS-1263: Add live integration test for manipulating objects through the Swift ObjectApi with unicode characters in their path 2018-05-21 22:19:25 -07:00
Mat Mannion 14621c08d7 JCLOUDS-1263: URL encode object names from list object response before creating URIs with them
This fix calls urlEncode on the path before appending them to the existing path, as the core UriBuilder
class expects them to be URL-encoded.
2018-05-21 22:19:25 -07:00
Jesse Glick 65a5ec8164 [JCLOUDS-1200] Mark nonserializable fields in HttpResponseException and subtypes as transient. 2018-05-21 22:13:04 -07:00
Andrew Gaul 1f6ec343c0 Upgrade to SpotBugs 3.1.3
This replaces FindBugs.  Also address a few violations.
2018-05-21 22:06:27 -07:00
Dani Estevez a918550e57 Fixes assert for IpPermissions collection 2018-05-17 09:13:25 +02:00
Dani Estevez bdb9a3af8b Uses default password with conflictive characters 2018-05-17 09:12:02 +02:00
Ignasi Barrera 050f8e73d3 JCLOUDS-1418: Add missing PowerState values 2018-05-15 15:19:49 +02:00
Dani Estevez a08de5b2f1 Sets session interval from 60 seconds to a higher value to avoid problems with cache 2018-05-12 00:42:44 +02:00