Commit Graph

353 Commits

Author SHA1 Message Date
Adrian Cole 98a36eb3f6 added named annotations corresponding to IAM actions 2012-12-21 12:15:21 -08:00
Adrian Cole e66219c16e normalized to CryptoStreams 2012-11-30 17:33:53 -08:00
Adrian Cole 878ec1bcab undid Serializable and added checkstyle InterfaceIsType:allowMarkerInterfaces=false 2012-11-18 09:23:44 -08:00
Adrian Cole db786f3b20 Issue 1123: add new Asia Pacific (Sydney) Region [ap-southeast-2] 2012-11-13 08:46:01 -08:00
Adrian Cole 5ebc72efd4 updated aws template test 2012-11-13 08:43:20 -08:00
Adrian Cole 55c3f587f4 Issue 1110: replace TagClient with TagApi in aws-ec2 2012-11-12 18:30:30 -08:00
Andrew Gaul d7380114a6 Enforce use of Atomics.newReference via Checkstyle
Avoids duplicating types.
2012-11-12 11:56:48 -08:00
Andrew Gaul 3ad36d25d5 Enforce no unnecessary parentheses via Checkstyle 2012-11-10 13:22:12 -08:00
Aled Sage 43d6155341 Set EC2 windows-template image id for testing
- Identify the windows-template AMI using id rather than name-matching
2012-11-04 22:29:52 +00:00
Andrew Gaul 0761874578 Prefer Assert.fail over assert
The former cannot be disabled.
2012-11-03 14:51:52 -07:00
Andrew Gaul 08b9982384 Enforce modifier order via Checkstyle
Also fix violations, via:

find -name \*.java | xargs sed -i 's/final static/static final/'
find -name \*.java | xargs sed -i 's/static private/private static/'
find -name \*.java | xargs sed -i 's/static abstract/abstract static/'
2012-11-01 20:01:30 -07:00
Andrew Gaul 35ce78f15a Correct typos 2012-11-01 13:25:44 -07:00
Andrew Gaul 93d69ece2b Enforce newline at end of file via Checkstyle
Also address all warnings, via:

find -name \*.java | while read i; do if [ x`tail -c 1 $i` != x"" ]; then echo >> $i; fi; done
2012-10-29 22:12:44 -07:00
Andrew Gaul 709ca69a2d Enforce that all imports are used via Checkstyle
Also remove all unused imports, via:

mvn checkstyle:checkstyle -Dcheckstyle.output.file=/dev/stdout -Dcheckstyle.output.format=plain | tac | awk -v FS=: '/warning/{print "sed -i " $2 "d " $1}' | while read i; do $i; done
2012-10-29 17:11:08 -07:00
Andrew Gaul 28d7a6f143 Prefer immutable over empty collections
The former does not create an object when calling iterator(), as
discussed here:

https://groups.google.com/d/msg/jclouds-dev/l7BviKDXreA/mP6Ow_RYxIgJ
2012-10-20 15:35:29 -07:00
Adrian Cole 14ad17108f Issue 671: NPE on aws-ec2 w/vpc security groups 2012-10-08 15:39:51 -04:00
Adrian Cole 28d766b9df bumped to 1.6.0-SNAPSHOT 2012-09-17 01:43:52 -07:00
Adrian Cole d766f8d4e3 stable ec2 2012-09-16 22:37:13 -07:00
Adrian Cole 6f5ebf3e90 Issue 1085:deprecate getRegion from EC2 domain objects 2012-09-16 12:55:48 -07:00
Adrian Cole b951276ec3 cleaned up aws apis 2012-09-15 23:47:44 -07:00
Adrian Cole 0b31622267 cleaned ec2 instance type 2012-09-15 14:05:24 -07:00
vijaykiran 7a81769e1c Issue-1051 overrideLoginUser not working 2012-08-03 01:14:09 +02:00
Adrian Cole b5558a25e9 test expectations 2012-07-30 12:31:16 -07:00
Adrian Cole 0424274259 Issue 1049:support aws-ec2 cluster compute instances in eu-west-1 2012-07-30 12:31:15 -07:00
Adrian Cole 53fe278f03 added windows password parsing to ec2 2012-07-30 12:31:11 -07:00
Andrew Gaul 8ed0e28e68 Spelling corrections 2012-07-26 22:39:35 -07:00
Adrian Cole 1b0d6e027a prettier toString on ec2 2012-07-26 10:07:14 -07:00
Adrian Cole 5d6e005e8b Issue 1030:defaults not picking up on compute.templateOptions() 2012-07-25 00:33:39 -07:00
vijaykiran de3db2103d issue-1026 Support for aws-ec2 hi1.4x instance 2012-07-25 00:26:21 +02:00
Andrew Gaul 985cccff9a Prefer valueOf over explicit object creation
This allows use of cached values.  Patched with:

find -name \*.java | xargs sed -i 's/new Boolean(false)/Boolean.FALSE/g'
find -name \*.java | xargs sed -i 's/new Boolean(true)/Boolean.TRUE/g'
find -name \*.java | xargs sed -i 's/new Boolean(/Boolean.valueOf(/g'
find -name \*.java | xargs sed -i 's/new Integer(/Integer.valueOf(/g'
find -name \*.java | xargs sed -i 's/new Long(/Long.valueOf(/g'
2012-07-22 21:01:46 -07:00
Andrew Donald Kennedy 4463b52051 Added optional timeout to EC2 listNodes strategy and made awaitCompletion update latch in finally block 2012-07-16 16:58:37 +01:00
Adrian Cole 180265fe49 Issue 1022:Move naming convention to Api from Client or Services:: glesys jenkins openstack-* opsource-servers savvis-symphonyvpdc cloudwatch cloudidentity rackspace-cloudidentity aws-cloudwatch rackspace-cloudservers-us hpcloud-compute rackspace-cloudservers-us trystack-nova 2012-07-15 15:00:42 -07:00
Adrian Cole 05fd64af44 cleaned up http builders and expect tests 2012-07-15 01:50:38 -07:00
Adrian Cole e9bfb9d1a2 Issue 1007: changed ec2 date parsing logic to use DateCodec and isolated hacks to eucalyptus and openstack-nova-ec2 respectively 2012-07-06 22:54:45 -07:00
Adrian Cole e35005d45c updated amazon templates 2012-07-03 22:14:06 -07:00
Adrian Cole d29fbba783 Issue 980: timestamp on ec2 requests are in the future 2012-06-15 23:35:17 -04:00
Adrian Cole d980b4fd42 changed test poms to use provider.template and provider.ec2-template accordingly 2012-06-15 23:35:10 -04:00
Adrian Cole 8a34254c8e in CloudBridge terminatedInstances go away quickly unveiling the need to address instanceId not found 2012-06-15 23:31:33 -04:00
Adrian Cole bcd3d50ad6 Issue 956:add getImage by id to ComputeService 2012-06-04 16:54:49 -07:00
Adrian Cole ef31f5114d added rawState to RunningInstance 2012-06-04 16:54:30 -07:00
Adrian Cole 92d1f1b471 moved to explicitly adding clojure projects 2012-06-03 17:28:56 -07:00
Ioannis Canellos b078adc3ce Removed fragments and dynamic imports. Added centralized control of the maven-bundle-plugin. 2012-06-03 19:41:54 +03:00
Adrian Cole 96773b8a1b Issue 952:add status field to image 2012-05-30 21:22:10 -07:00
Adrian Cole 07c2c24721 Issue 949:Introduce: ComputeMetadataIncludingStatus; Deprecate NodeState -> NodeMetadata.Status 2012-05-29 20:41:10 -07:00
Adrian Cole 67d8f9a0f4 image extension related classes under extensions package 2012-05-21 12:39:32 -06:00
Adrian Cole 5c647df129 Issue 938:TemplateBuilderSpec 2012-05-21 02:45:25 -06:00
Adrian Cole a91a23f745 aws-ec2 works with tags now 2012-05-18 19:57:29 -07:00
Adrian Cole b4f01eda7b Issue 445: moved incidental test into its own class until we can convert it to an expect test 2012-05-18 17:50:38 -07:00
Adrian Cole a53cece32d Issue 445: moved incidental test into its own class until we can convert it to an expect test 2012-05-18 17:49:59 -07:00
Adrian Cole 5bd59d50cd fixed test configuration 2012-05-10 19:29:19 -07:00
Adrian Cole 59f2b6d171 Merge pull request #625 from aledsage/Issue-888-GroupNamingConvention
Issue 888 group naming convention
2012-05-10 16:45:39 -07:00
Adrian Cole a6cc00e078 Merge pull request #603 from dralves/image-extension-all
image extension working on hpcloud, virtualbox and aws-ec2, cloudservers...
2012-05-10 16:43:27 -07:00
Aled Sage 94ac48070d Issue 888: use GroupNamingConvention for keyName/securityGroup; don't include region in name 2012-05-10 16:47:37 +01:00
Aled Sage 8631b90c32 Fix aws-ec2 template live tests: update OS versions 2012-05-10 16:45:54 +01:00
David Ribeiro Alves 5a8f0c1743 added image extension state checker to aws-ec2 module 2012-05-10 08:48:40 +01:00
Adrian Cole acf1bc2d22 updated template expectations 2012-05-09 18:20:42 -07:00
Adam Lowe 850cdc2fc8 Moving EncodedRSAPublicKeyToBase64 (and corresponding unit test) up into EC2 so both openstack-nova-ec2 and aws-ec2 can share the same class 2012-05-03 12:31:39 +01:00
David Ribeiro Alves 082158ac3f image extension working on hpcloud, virtualbox and aws-ec2, cloudservers implemented but has issues 2012-05-03 03:55:40 +01:00
Richard Downer 18a65bf1a7 Move WindowsClientLiveTest from ec2 to aws-ec2 as it depends on AWS's published AMIs and naming conventions 2012-04-25 20:18:13 +03:00
Richard Downer 1a77b194e5 EC2 Windows AMIs have a separate owner (which changed recently) - add this owner ID to the default set. Update WindowsClientLiveTest to use the default set and verify it passes. 2012-04-25 19:42:35 +03:00
Adrian Cole df7d2acbb4 wrapper -> view 2012-04-23 19:14:36 -07:00
Adrian Cole 886d2cafb9 created base Context class with ProviderMetadata and Identity 2012-04-23 16:16:51 -07:00
Adrian Cole f1010e13a4 fixed aws-ec2 image parsing 2012-04-21 10:59:01 -07:00
Adrian Cole dab1dd69fc fix covariance/assignability in RestContext<? extends Client> subclasses 2012-04-18 15:05:39 -07:00
Adrian Cole 2f9b1738a0 Merge pull request #572 from dralves/image-extension
implemented image extension
2012-04-18 07:37:02 -07:00
Adrian Cole 5ea29cbbb7 Merge pull request #560 from danikov/covariant-future-iterables
covariant compatible version of futureIterables
2012-04-18 07:35:23 -07:00
danikov fff1c7dc2d make FutureIterables covariant compatible + update tests 2012-04-18 13:06:54 +01:00
David Ribeiro Alves 05212b75fa implemented image extension 2012-04-18 09:37:44 +01:00
Adrian Cole 0b59dea073 removed ContextBuilder subclasses; added unwrap; undid generic params 2012-04-16 00:44:20 -07:00
Adrian Cole 3b2e6ea796 fix cloudwatch 2012-04-13 10:48:38 -06:00
Adrian Cole 23cb01f977 refactor PropertiesBuilder and related types into ApiMetadata and ProviderMetadata, and update all usage 2012-04-11 19:47:09 -06:00
Andrew Gaul b47860afc1 Use inference to elide duplicated type parameters
Found with:
grep 'Builder.*<.*>.*Immutable.*<.*>.*builder();'
2012-04-08 22:32:04 -07:00
Adrian Cole 00c7179f72 moved cacheloaders to the correct package 2012-04-05 17:42:06 -07:00
Adrian Cole 3923e78b9a Issue 896:ec2 doesn't pay attention to api version property 2012-04-02 22:24:59 -07:00
Adrian Cole 764e0907f7 Issue 657:ApiMetadata 2012-04-01 18:43:31 -07:00
Adrian Cole a6429398fd Issue 891: switch to openjdk; tested on ubuntu 2012-03-30 16:57:31 -07:00
Adrian Cole 5c6ce9f081 organize imports 2012-03-28 03:37:48 -04:00
Adrian Cole 343470d0a5 removed deprecated RunScriptOptions & TemplateOptions 2012-03-28 03:37:43 -04:00
Adrian Cole 025396be37 added new properties object 2012-03-28 03:37:41 -04:00
Richard Downer 5d1c5aec9e Add regexp that matches style of Windows AMI names in EC2 starting March 2012. Add a unit test. 2012-03-25 10:52:44 +02:00
Adrian Cole 428c08379d aws-ec2 template update 2012-03-12 21:53:01 -07:00
Adrian Cole 926cd0991f spot test also needs m1.medium 2012-03-09 12:28:10 -08:00
Adrian Cole 38de846947 Issue 859:AWS EC2 Updates: New Medium Instance, 64-bit Ubiquity 2012-03-08 10:52:56 -08:00
Adrian Cole 4d919ce14e cloudwatch free interval is 5m not 1m 2012-02-26 16:55:18 +02:00
Ioannis Canellos ebe53d1b71 Fixed aws-ec2 bundle imports 2012-02-17 02:01:39 +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
Adrian Cole 2da5d297a5 Issue 838: convert jboss tests and java tests to use InstallJDK 2012-02-14 23:22:24 +01:00
Adrian Cole 2332662a90 move to using AtomicReference for retryable predicates saves at least one network call on re-fetch 2012-02-14 23:22:24 +01:00
Adrian Cole 0058c3a5eb updated test expectations to lastest amis 2012-02-04 13:10:53 -08:00
Adrian Cole fe4d148528 updated current version to 1.5.0-SNAPSHOT 2012-02-04 11:06:07 -08:00
Andrei Savu 4ed8f8f85e Renamed getPasswordData to getPasswordDataInRegion & fixed broken unit tests 2012-02-04 20:18:50 +02:00
Aled Sage ef8a2cc01d Issue #445: testing is fixed as side-effect of #364 and #365 work 2012-02-04 15:53:29 +00:00
Aled Sage ab568f0a09 Issues 364 and #365: destroyNode cleans up incidental resources 2012-02-04 15:40:31 +00:00
Adrian Cole 3a9d660b8e refactored ec2 options test, especially to use known image id (it was selecting centos since we changed the location id) 2012-02-03 00:29:42 -08:00
Adrian Cole 3e9c566edc aws related changes for issue 826 2012-02-03 00:29:41 -08:00
Andrei Savu 2b7bb53d20 Changed testTemplateBuilderWithLessRegions to query eu-west-1 2012-02-02 17:41:17 +02:00
Adrian Cole abeffc1119 Issue 824:add field for hypervisor 2012-01-30 22:52:35 -08:00
Adrian Cole 55975af60d Issue 820:Move off PropertiesBuilder for rocoto 2012-01-29 23:11:37 +08:00
Ioannis Canellos 62624e29c7 Added org.jclouds.aws to the imported packages of aws-ec2 bundle. 2012-01-19 02:05:09 +02:00
Ioannis Canellos cfe88031a2 Updated OSGi package imports for compute providers & apis. 2012-01-18 15:02:16 +02:00
Adrian Cole 3df052565f updated current version to 1.4.0-SNAPSHOT 2012-01-16 13:08:32 -08:00
Adrian Cole 9791a51039 better exception message
remoced unused import

removed hokey test
2012-01-15 02:08:14 -08:00
Adrian Cole c151e5bdd7 Issue 730: last deprecated methods scheduled for removal in 1.3 2012-01-10 18:10:55 -08:00
Richard Downer 48c2d21149 Use ImagePredicates.idEquals, instead of writing idEquals from scratch 2012-01-09 19:48:49 +02:00
Richard Downer 3f6997361d Change test now that computeService.listImages() returns a set that refreshes itself - record the before set *size*, rather than the set itself, because the set's contents and size may change 2012-01-09 10:38:47 +02:00
Richard Downer 0ab8ea1bee Change AWSEC2ImageSupplier to return a ForwardingSet, instead of an ImmutableSet. This means the set returned by the Image supplier will reflect changes in the underlying cache. 2012-01-09 10:38:47 +02:00
Richard Downer 5c2e2576bf After registering a new image, computeService.listImages() does not show the new image (because it is cached). Add a live test that demonstrates this behaviour. 2012-01-09 10:38:46 +02:00
Adrian Cole f06e6982eb Issue 800:introduce property for build version 2012-01-05 17:51:55 -08:00
Adrian Cole 99fb37f6cf refactored LiveTest code to share property initialization 2012-01-05 17:51:03 -08:00
Adrian Cole 42137677da Issue 801:fix inconsistency in test property test.provider.apiversion set in pom.xml -> api-version 2012-01-05 13:09:45 -08:00
andreisavu b5228d2299 Allow user to specify the Unit on CloudWatch queries 2011-12-22 17:30:33 +02:00
Adrian Cole 3a8ea09fb9 missing commits 2011-12-22 02:23:20 -08:00
andreisavu 548068c7ff Allow user to specify instance ID as an option for CloudWatch 2011-12-21 23:59:50 -08:00
Adrian Cole f9b38f646c Issue 730: removed deprecated methods from ComputeService RunScript/TemplateOptions SshClient.Factory and replaced occurences of Credentials with LoginCredentials whereever possible 2011-12-20 23:19:45 -08:00
Adrian Cole 906171c42a aws quick fixies 2011-12-19 14:06:37 -08:00
andreisavu b15db13574 Updated CloudWatchClient code to latest version
See
http://docs.amazonwebservices.com/AmazonCloudWatch/latest/APIReference/i
ndex.html?API_GetMetricStatistics.html
2011-12-19 13:25:06 +02:00
Adrian Cole 6bac1db9fb typos 2011-12-19 01:52:42 -08:00
Adrian Cole bf99fb10a0 Issue 757: refactor elastic ip auto-allocation approach and backfill related tests 2011-12-19 01:46:19 -08:00
Adrian Cole 468ad69c94 missing commit for issue 757 2011-12-18 16:09:19 -08:00
Adrian Cole e942d58fa7 Merge pull request #254 from grkvlt/master
Issue 779: Fix password/privateKey override issues with providers
2011-12-18 13:37:09 -08:00
Andrew Donald Kennedy 31d3fe483f Issue 769: Make password and privateKey optional for LoginCredentials 2011-12-17 14:08:49 +00:00
Adrian Cole beb87a2131 Issue 781:update to guava 11.0-rc1 2011-12-14 23:56:50 -08:00
Adrian Cole 40d2abbac5 Issue 780:add new sa-east-1 region 2011-12-14 22:42:32 -08:00
Aled Sage f140688077 Issue 763: added EC2TemplateBuilderLiveTest to assert httpCommands don't fetch all images 2011-12-13 22:42:13 +00:00
Aled Sage dc181287f6 Extract TrackingJavaUrlHttpCommandExecutorService, so usable by other tests 2011-12-13 22:42:13 +00:00
Adrian Cole a6d6b48c26 example of how to trace http requests made in live tests 2011-12-09 09:28:56 -08:00
Aled Sage 094e537488 Issue 763: cache loader does not reload after AuthorizationException 2011-12-08 10:22:26 -08:00
Aled Sage dad5356991 Issue 763: Supplier<Set<Image>> for EC2 returns set backed by on-demand cache if ami-owners is empty 2011-12-08 10:22:26 -08:00
Aled Sage 741773f9ab Issue 763: set image cache expiry using PROPERTY_SESSION_INTERVAL 2011-12-08 10:22:26 -08:00
Aled Sage a45e16ebb3 Issue 763: code tidy, to use new ImagesToRegionAndIdMap.imagesToMap(Set<Image>) 2011-12-08 10:22:26 -08:00
Aled Sage 1fb371497b Issue 763: image cache loader: wrap in retry logic; don't memoize cache 2011-12-08 10:22:26 -08:00
Aled Sage 635c420a92 Issue 763: don't retrieve all images when template.imageId supplied 2011-12-08 10:22:26 -08:00
Adrian Cole 4a5af1e7a5 Issue 441: added new type: LoginCredentials, and (jclouds|provider).image.(login-user|authenticate-sudo) context properties 2011-11-21 11:00:12 +02:00
Adrian Cole 1b2a221744 rightscale now supports rhel 2011-11-21 11:00:01 +02:00
Adrian Cole 85a0cdfa9c Issue 755:support new cc2.8xlarge instance size 2011-11-16 10:47:44 +02:00
Adrian Cole 4329129c25 Issue 750:property to set the image id for the default template 2011-11-14 19:25:46 +02:00
Adrian Cole 69467b04e3 Issue 752:move off deprecated systemProperties to systemPropertyVariables in surefire 2011-11-14 19:25:45 +02:00
Adrian Cole 4719d3d52b updated comments 2011-11-13 13:29:54 +02:00
Adrian Cole 8569771712 fixed aws-ec2 template tests 2011-11-13 13:28:28 +02:00
Adrian Cole c08a7884bd Issue 750:property to set the image id for the default template 2011-11-11 19:48:28 +02:00
Adrian Cole e9cff5e17c Issue 747:add new us-west-2 region 2011-11-09 11:19:40 +01:00
Adrian Cole 03da9402b8 test that we match ubuntu precise in aws-ec2 2011-10-17 21:39:53 -07:00
Adrian Cole 552242e863 moved to 1.3.0-SNAPSHOT 2011-10-16 12:26:31 -07:00
Adrian Cole 2d704bde59 Issue 724:add ubuntu precise to the supported versions 2011-10-16 02:50:45 -07:00
Adrian Cole ed47d255b0 Issue 612: added Name support to aws-ec2 2011-10-15 00:26:54 -07:00
Adrian Cole 921dae7395 moved ec2 image parsing notices out of the compute logger 2011-10-15 00:25:01 -07:00
Adrian Cole 921ca628f7 Issue 722: added specific tests to help troubleshoot GoGrid api issues 2011-10-14 15:50:38 -07:00
Adrian Cole 9018bdafa2 ec2 test stabilization 2011-10-14 10:40:01 -07:00
Adrian Cole a6d481f88a changed to use spot instances in us-west-1 due to connect failures trying to ssh across the atlantic 2011-10-14 02:36:28 -07:00
Adrian Cole 9104eca282 Issue 717: corrected keyPair state logic which was redundantly creating keys 2011-10-14 01:49:18 -07:00