Commit Graph

956 Commits

Author SHA1 Message Date
Adrian Cole 2cd11f6b18 silently parse mildly incorrect dates 2012-03-22 21:34:59 -07:00
Adrian Cole 2a4bcf83b0 Merge pull request #510 from andrewgaul/close-streams
Close streams on error paths
2012-03-22 13:07:44 -07:00
Andrew Gaul cc590fbffd Propagate InterruptedException & TimeoutException
Previously we passed these exceptions to handler, which wrapped them
in a RuntimeException.  Instead propagate the actual cause so callers
can handle these properly.
2012-03-22 11:51:50 -07:00
Andrew Gaul 1040a5c779 Close streams on error paths 2012-03-21 18:17:01 -07:00
Adrian Cole 2dc66ee5e1 Issue 141: add serviceloader lookup for LoggingModule 2012-03-21 13:05:02 -07:00
Adrian Cole 71f4e5c0d9 Issue 879:keystone v2 hpcloud-objectstorage provider 2012-03-21 00:51:49 -07:00
Adrian Cole c9b5b1db87 openstack implicit security group integration with compute service; ensured hpcloud doesn't pickup kernel or ramdisk images 2012-03-21 00:20:29 -07:00
Mike Arnold 6e6f9e9ce5 Merge branch 'feature/hpcloud-objectstorage-keystonev2' 2012-03-20 15:27:05 -05:00
Mike Arnold 1e60ab4d1f initial create of hpcloud-objectstorage to labs project 2012-03-20 11:38:33 -05:00
Andrew Gaul f32b40b174 Simplify JavaUrlHttpCommandExecutorService.invoke 2012-03-20 09:15:55 -07:00
Adrian Cole ec8b428220 Merge pull request #481 from andrewgaul/use-gmt-for-rfc822-date
Use GMT for RFC 822 dates
2012-03-20 00:41:32 -07:00
Adrian Cole dc5545ef18 Merge pull request #480 from andrewgaul/prefer-entryset
Prefer entrySet() over keySet() followed by get()
2012-03-20 00:37:37 -07:00
Andrew Gaul 8ad10fabaf Prefer entrySet and entries over keySet and keys
Also use type inference for ImmutableMultimap.Builder.
2012-03-20 00:03:10 -07:00
Andrew Gaul 796fbff2a7 Use GMT for RFC 822 dates
This fixes AWS S3 support, which previously complained about a missing
or improper Date header.
2012-03-19 23:36:58 -07:00
Andrew Gaul e2417605a2 Prefer Guava.nullToEmpty and HttpUtils.nullToEmpty
Make HttpUtils.valueOrEmpty static and change method name to
nullToEmpty to mimic Guava.
2012-03-19 20:48:52 -07:00
Adrian Cole 8f4307843d Merge pull request #475 from andrewgaul/awaitcompletion-concurrentmap
Collect errors in a thread-safe Map
2012-03-19 15:45:45 -07:00
Andrew Gaul 1652752ee6 Collect errors in a thread-safe Map
Needed since multiple threads can mutate this map.  Also always return
a mutable map for consistency.
2012-03-19 15:03:45 -07:00
Andrew Phillips c16a581e1f Now supporting 'x.y.z-alpha.n' type versions 2012-03-19 15:10:04 -04:00
Adrian Cole 9946ee9fd4 changes to facilitate services that do not have regions 2012-03-19 01:03:24 -07:00
Adrian Cole 3d0d0c6094 Issue 870: added more context to optionalconverter 2012-03-16 02:30:19 -07:00
Andrei Savu a760e409a4 Added test to check that the key is decoded as expected 2012-03-15 15:54:46 +02:00
Andrei Savu 89aefec026 Decode both the key and the value when parsing the request URI 2012-03-15 15:54:37 +02:00
Adrian Cole bc95b6fe25 @Delegate can now return Optional<Client> 2012-03-14 18:24:57 -07:00
Adrian Cole fb41002ca5 utility for determining if a method has an optional returntype 2012-03-14 18:24:40 -07:00
Aled Sage 1ea877354b Issue 445: retry EC2ComputeService.cleanUpIncidentalResources due to failure if done too soon after last VM terminates! 2012-03-13 12:45:37 +00:00
Adrian Cole 30bb94a885 Issue 864:create hpcloud-compute provider 2012-03-09 19:56:23 -08:00
Adam Lowe 15bcec0163 Adjusting XMLUnit code to ignore whitespace between elements 2012-03-06 16:32:23 +00:00
Adam Lowe dff3b6af37 Adjusting XMLUnit code to ignore whitespace between elements, making sure it still verifies that the amount of space in a leaf (<a> </a>) is still checked correctly 2012-03-06 16:32:23 +00:00
Adrian Cole 076627d2bb setting of zero isn't possible to pass 2012-03-05 16:15:43 -08:00
Adrian Cole 07ce0a444e Issue 852:add elb api and aws-elb provider 2012-03-03 12:00:58 -08:00
Adam Lowe e63aac83d1 Using XMLUnit to verify XML payloads in ExpectTest if, and only if, BaseRestClientExpectTest.compareHttpRequestAsType is overridden (otherwise it still uses Java equals()) 2012-03-01 23:02:01 +00:00
Adrian Cole 39c79f6ffa Issue 845: opsource-servers skeleton 2012-02-24 13:55:55 +02:00
Chris Strand 870a937f14 Issue 848. Increased log level to error when BackoffLimitedRetryHandler cannot retry any more. 2012-02-23 15:20:29 +00:00
Adrian Cole fa7f81c4e7 Issue 847:version updates 2012-02-23 15:11:05 +02:00
Andrew Donald Kennedy 34459605fc Large squashed commit with various changes:
- Setup new test properties for catalog names and various ids as injectable
- Make retryable TaskSuccess predicate injectable
- Mark test classes as "user"
- Various tidyup and code fixes as and when required
2012-02-21 16:07:31 +00:00
Adrian Cole c123c4a2df added toString() 2012-02-19 16:19:59 +02:00
Adrian Cole d916bb25ac tidied syntax to get eventBus 2012-02-19 09:39:20 +02:00
Adrian Cole 636c3bb6e5 Issue 357:Init script should check for errors + herefile fixes + script events 2012-02-19 01:53:19 +02:00
Ioannis Canellos 5490b3068c [842] Added required import packages to cloudfiles api bundle. Improved import packages in all bundles. 2012-02-17 00:49:39 +02:00
Andrew Donald Kennedy 7ca842f44c Make JAXB XML marshaller pretty-print 2012-02-10 14:57:54 +00:00
Andrew Donald Kennedy b2cc1f6b38 Updating ISO8601 time zone parsing and tests 2012-02-10 14:46:00 +00:00
Andrew Donald Kennedy c771b2ac87 Remove unused annotations 2012-02-10 13:47:58 +00:00
Andrew Donald Kennedy 3623918de5 Java SimpleDateFormat cannot handle valid ISO8601 time zone strings, fixed 2012-02-10 13:47:57 +00:00
Adrian Cole ad724de243 Merge pull request #359 from andreisavu/keypairs-and-passwords
Fix registerSSHKeyPair and implement getPasswordForVirtualMachine
2012-02-09 07:47:04 -08:00
Andrei Savu 5856f466e4 Fixed double query parameter & URL encoding / decoding bugs 2012-02-09 16:04:45 +02:00
Andrei Savu ebfecc672a Added a few more tests and update ReEncodeQueryWithDefaultURLEncoderTest so that it fails 2012-02-09 14:25:04 +02:00
Adrian Cole aaaced142f updated to rocoto 6.1 for osgi fix 2012-02-07 20:51:06 +01:00
Adrian Cole 1905615c49 Issue 830: initial vCloud 1.5 with session functionality complete 2012-02-05 21:55:39 -08:00
Adrian Cole edbd09b984 allow @Provides to return suppliers w/o qualifiers 2012-02-05 21:54:40 -08:00
Adrian Cole fe4d148528 updated current version to 1.5.0-SNAPSHOT 2012-02-04 11:06:07 -08:00
Richard Downer 3a53a4e5fa Add support for getting ciphers through the Crypto interface 2012-02-04 19:46:52 +02:00
Adrian Cole ae1effd748 made openstack multi-region, and now select correct endpoint via apiversion property 2012-02-04 00:51:44 -08:00
Adrian Cole c388fc41b4 Issue 826: removed eager supplier of @Provider endpoint 2012-02-03 13:51:26 -08:00
Adrian Cole bdd739ad04 Issue 826:support api-generated location metadata across service types, note this ensures authenticationexceptions propagate even after context creation 2012-02-03 00:27:29 -08:00
Adrian Cole e6c06e0cd0 removed cycle in cloudstack binding 2012-02-01 09:52:14 -08:00
Adrian Cole 5e23d34f91 cruft removal 2012-01-31 19:44:39 -08:00
Adrian Cole b3254b31e6 Merge branch 'retrieve-keys' of https://github.com/andreisavu/jclouds
* 'retrieve-keys' of https://github.com/andreisavu/jclouds:
  Include the JSESSIONID as part of the LoginResponse
  Added a set of changes as requested by Adrian
  Implemented login / logout APIs
2012-01-31 15:49:37 -08:00
Adrian Cole 6f8c633ff2 set default credential type to apiAccessKeyCredentials and a property to use passwordCredentials 2012-01-31 13:01:18 -08:00
Andrei Savu 2b8e2a4c01 Added a set of changes as requested by Adrian 2012-01-31 15:06:29 +02:00
Adrian Cole 52fc2c2be1 make payloads repeatable 2012-01-30 23:30:48 -08:00
Adrian Cole 32d4dbac8a Issue 821:retry on close_notify SSLException 2012-01-30 16:10:01 -08:00
Adrian Cole 55975af60d Issue 820:Move off PropertiesBuilder for rocoto 2012-01-29 23:11:37 +08:00
Adrian Cole bf4b6e8c95 Issue 823:migrate rackspace services to authenticationservice 1.1 2012-01-29 23:11:23 +08:00
Adrian Cole f93c495c43 refactored to use consistent setup*Properties methods like expect tt tests 2012-01-29 20:36:24 +08:00
Andrew Gaul d4dc61a7fe Fix user threads typo
No functional changes.
2012-01-26 14:11:07 -08:00
Adrian Cole 4816bb8a08 update javadoc and suggest areas for improvement 2012-01-22 12:12:19 +08:00
Adrian Cole 1e19db93fd Issue 815: initial keystone auth 2012-01-18 20:52:04 -08:00
Andrew Phillips a55081bcc6 Fixing test regression from c473da3 by allowing a different resource classloader to be supplied in testing 2012-01-16 22:34:33 -05:00
Andrew Phillips d9b04c3cc4 Declaring private instance variables after all public ones 2012-01-16 22:20:59 -05:00
Ioannis Canellos c473da3611 JCloudsVersion now uses the classloader that loaded the class instead of the TCCL 2012-01-17 00:35:24 +02:00
Adrian Cole 3df052565f updated current version to 1.4.0-SNAPSHOT 2012-01-16 13:08:32 -08:00
Andrew Phillips 6b1e8cee34 Dropped support for non-semver compliant 'x.y.z-rc-n' RC versions 2012-01-16 13:26:33 -05:00
Adrian Cole 22fc14fc09 Issue 145:Add custom user agent 2012-01-15 15:41:17 -08:00
Adrian Cole 63320f15b6 Issue 731: unravel dependency cycle to only use interfaces 2012-01-15 11:30:22 -08:00
Adrian Cole 82673e0dd5 Issue 710: update existing vcloud providers 2012-01-15 02:14:58 -08:00
Adrian Cole 9791a51039 better exception message
remoced unused import

removed hokey test
2012-01-15 02:08:14 -08:00
Adrian Cole b3d6ad2ae8 Issue 812:add options to place xml source text to exception 2012-01-14 21:02:52 -08:00
Adrian Cole 72c1583ffd allow validator to be used outside class hierarchy 2012-01-14 20:54:35 -08:00
Adrian Cole 403aaa94b0 cleaned up and added test for TransformingSetSupplier 2012-01-14 20:52:13 -08:00
Adrian Cole ef7e0a46e2 refactored expect tests to throw a 'server error' when there's no state expectation configured 2012-01-12 18:04:19 -08:00
Adrian Cole 5039708d34 now with guice in production mode, we get exceptions wrapped in CreationException and need to unwrap these accordingly 2012-01-12 18:02:34 -08:00
Adrian Cole 21b8aadbfb Issue 809:update to latest jersey and move off old repo 2012-01-11 14:39:13 -08:00
Adrian Cole ce5244f8d5 Issue 781:update to guava 11.0.1 2012-01-11 13:37:15 -08:00
Adrian Cole c151e5bdd7 Issue 730: last deprecated methods scheduled for removal in 1.3 2012-01-10 18:10:55 -08:00
Aled Sage da0b870295 Issue 731: added BaseRestClientExpectTest.orderedRequestsSendResponses, for expecting same request and giving different responses each time 2012-01-10 17:41:37 -08:00
Adrian Cole 018771d3a4 refactored error on current transaction 2012-01-10 16:44:06 -08:00
Adrian Cole ea9488db11 grammar 2012-01-10 12:34:32 -08:00
Adrian Cole 5000270090 grammar 2012-01-10 12:33:45 -08:00
Adrian Cole 64fb9f89cf added javadoc and helper methods to supply multiple request/response expectations 2012-01-10 12:21:26 -08:00
Adrian Cole deff082a48 allowed http request subclasses to match equals/hashCode when they render the same data; useful in testing 2012-01-10 12:21:26 -08:00
Adrian Cole f3f56463b4 centralized RestContext<S,A> binding 2012-01-10 12:21:25 -08:00
Adrian Cole e46ee9fbc4 Issue 807:update license headers 2012-01-09 10:54:57 -08:00
Aled Sage 557c5db706 Issue 764: added Suppliers2.memoizeWithExpirationOnAbsoluteInterval 2012-01-09 18:24:58 +00:00
Andrew Phillips 54506e6da5 [issue 802] Simplified by using a Maven-provided and generated file instead of jclouds-version.properties 2012-01-08 23:03:47 -05:00
Andrew Phillips 0dc9ecd531 [issue 802] Another slight improvement: remove unneeded test file 2012-01-07 21:27:38 -05:00
Adrian Cole 557c51dcb3 slight improvement to 802 2012-01-07 14:13:20 -08:00
Adrian Cole 6da6869755 Merge pull request #295 from jclouds/issue-802-pull-request
[issue 802] Adding support for programmatically accessible version info
2012-01-07 12:09:21 -08:00
Adrian Cole 0b41e74728 Issue 805:don't reopen oauth package in core 2012-01-07 11:50:42 -08:00
Adrian Cole a238efb786 Issue 804:update tests to jetty 8 and fix deprecated usage 2012-01-07 11:34:20 -08:00
Andrew Phillips 62061d8235 [issue 802] Adding support for programmatically accessible version information 2012-01-07 14:07:41 -05:00