1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
Commit graph

7305 commits

Author SHA1 Message Date
John E. Vincent
564c6092d7 adding proper fixed secondary_ip support 2013-07-06 02:26:10 -04:00
Wesley Beary
a5d39f73d8 Merge pull request from postmodern/aws_ses_verify_domain
Added Fog::AWS::SES.verify_domain_identity.
2013-07-03 13:21:57 -07:00
Wesley Beary
742400e7d3 Merge pull request from adamjt/fix_s3_request_signing
Signature method requires x-amz-security-token header.
2013-07-03 13:21:07 -07:00
Adam Tucker
90b850f1d2 Signature method requires x-amz-security-token header. 2013-07-03 16:15:07 -04:00
Postmodern
435daad010 Actually call verify_domain_identity. 2013-07-03 13:08:53 -07:00
Postmodern
3df8eee40c Fixed description for the #verify_domain_identity tests. 2013-07-03 13:01:14 -07:00
Wesley Beary
9cdc2bce09 Merge pull request from jbence/feature/update_AWS_error_handling
[aws] Update aws error handling
2013-07-03 10:07:29 -07:00
Wesley Beary
9aad9c0df7 Merge pull request from maginatics/rds_version
Add RDS API version parameter option.
2013-07-03 10:06:17 -07:00
Wesley Beary
b9c30df2f0 Merge pull request from frodenas/openstack_images
[openstack|image] Fix image reload
2013-07-03 10:04:24 -07:00
James Bence
f5dfebec84 Use specific error classes, not generic Fog::Compute::AWS::Error 2013-07-03 10:00:07 -07:00
Wesley Beary
70293e3130 Merge pull request from blowmage/fix-openstack-mocks
Update OpenStack Mocks
2013-07-03 09:41:05 -07:00
James Bence
4781d51738 Construct hash with => (for 1.8.7) 2013-07-03 08:18:29 -07:00
Frederick Cheung
9e2f08d0db Merge pull request from opsengine/develop-iopslimit
[AWS|EC2] Increased IOPS limit to 4000.
2013-07-03 05:04:29 -07:00
Angelo Marletta
ed8063c9d3 increased iops limit to 4000. http://aws.typepad.com/aws/2013/05/provision-up-to-4k-iops-per-ebs-volume.html 2013-07-03 12:37:11 +01:00
Mike Moore
bac2b78307 Add array coalesce
If there are no entries for the server then it returns null,
but the code expects an array. Make it so.
2013-07-03 01:15:03 -06:00
Mike Moore
2b284849a9 Add attachment check to detach_volume mock
If the attachment does not exist it raises a NoMethodError instead of NotFound.
2013-07-03 01:11:46 -06:00
Mike Moore
9566d9b5f9 Add nil check on metadata mock
The default value for metadata is nil, and this was raising NoMethodError on each_pair.
2013-07-03 01:09:00 -06:00
James Bence
041ca02c4c Remove mistaken version update 2013-07-02 19:49:33 -07:00
James Bence
e160a341e9 Remove code from other branch-in-progress 2013-07-02 19:48:10 -07:00
James Bence
7fb0e3753e Refactor error handling
Match against the error object in both the old (against error.message)
and the new (against error.response.body); return a hash from this
method.

In the rescue block, try hard to raise an exception that includes the
code and message extracted from the error.
2013-07-02 19:39:23 -07:00
Ferran Rodenas
212274b832 [openstack|image] Fix image reload
Instead of returning the cached image in collection, get (or find_by_id) method
should refresh the image data. This will fix the reload method, as actually it
doesn't really reload the image details.
2013-07-03 00:30:45 +02:00
Timur Alperovich
36d6f651f4 Add RDS API version parameter option.
RDS API has moved to 2013-05-15 and added additional methods and
parameters to existing ones (such as NewDBInstanceIdentifier in
ModifyDBInstance). It makes sense to use the new API version, however
it requires more testing and possibly implementing additional methods.
This commit allows the version to be passed when instantiating a fog
object, so that this can be done piece-meal, without blocking existing
fog users.

Refs: 
2013-07-02 10:53:56 -07:00
Wesley Beary
dd10f93006 Merge pull request from adamjt/publicly_accessible_rds
Add PubliclyAccessible option to RDS.
2013-07-02 10:05:23 -07:00
Paul Thornthwaite
11afbd6461 Merge pull request from fog/change_version_short_option
[cli] Changes `fog --version` short option to `-v`
2013-07-02 09:01:53 -07:00
James Bence
b7b8367770 Inspect error.response.body, not error.message
Recent versions of excon have a middleware component,
Excon::Middleware::Expects and fog requests mostly record an expectation
of a 200 status code. Some calls to AWS return status other than 200 and
in some cases the error handling obscures the underlying error.

Current handling parsed error.message; this instance of error is
constructed by excon and includes the response as an attribute. The
message is always something like 'Expected(200) <=> Actual(404 Not Found)'
and so the parsing never succeeds.

Instead we now attempt to parse error.response.body which should allow
extraction of the underlying AWS Code value, which in turn will produce
an exception that points to the actual underlying cause.
2013-07-01 16:47:29 -07:00
Adam Tucker
0de6fe45f0 Extend capability to restore_db_instance_from_db_snapshot 2013-07-01 18:59:27 -04:00
Adam Tucker
770723b67c Add PubliclyAccessible option to RDS. 2013-07-01 17:06:14 -04:00
Paul Thornthwaite
b218ac6cd1 [cli] Changes fog --version short option to -v
Looking at a number of similar Ruby based tools, Bundler, Rubygems, Pry
and IRB all use lowercase v for the short option for `--version`

Ruby itself uses `-v` for verbose but without any further arguments
prints the version and exits.
2013-07-01 21:57:52 +01:00
Postmodern
db434c68ca Added Fog::AWS::SES.verify_domain_identity.
* http://docs.aws.amazon.com/ses/latest/APIReference/API_VerifyDomainIdentity.html
* Added Fog::Parsers::AWS::SES::VerifyDomainIdentity.
2013-07-01 12:18:42 -07:00
Kyle Rames
df5feab0a5 Merge pull request from rackspace/etag_fix
[rackspace|storage] Submit etags for file models
2013-07-01 07:40:29 -07:00
Kyle Rames
fb60a31ce0 Merge pull request from rackspace/fix_tests
[rackspace] fixing broken tests
2013-07-01 07:39:59 -07:00
Nat Welch
60aacd7dcb Merge pull request from icco/next_version
[google|compute] Upgrade GCE to v1beta15 and fix a bunch of bugs
2013-06-29 14:59:14 -07:00
Sergio Rubio
3b7b7aeb89 Merge pull request from rubiojr/issue-1914-test-fix
[xenserver|compute] Small fix for snapshot tests added in 
2013-06-28 15:20:48 -07:00
Sergio Rubio
0c1d957e2e [xenserver|compute] Small fix for snapshot tests added in 2013-06-29 00:16:45 +02:00
Sergio Rubio
b99372c257 Merge pull request from zertico/xenserver-snapshot
Added support for [xenserver] snapshot
2013-06-28 15:07:48 -07:00
Wesley Beary
7b1309883b Merge pull request from postmodern/optparse
Optparse
2013-06-28 06:30:05 -07:00
Kyle Rames
82258177e8 Merge pull request from rackspace/save_param
[rackspace|compute] adding parameter to save method
2013-06-27 08:40:47 -07:00
Wesley Beary
6f254b3fdd Merge pull request from anynines/master
OpenStack Temp URL Support and AWS::File compatibility
2013-06-27 07:28:08 -07:00
Nat Welch
760999d1a7 whoops. 2013-06-27 00:39:59 -07:00
Nat Welch
fe2db3ffe9 Let's wait till sshable 2013-06-27 00:30:22 -07:00
Nat Welch
e3fef7fc8c refactor image lookup code. 2013-06-27 00:28:40 -07:00
Nat Welch
23d4c7c95e Throw errors instead of printing them. 2013-06-27 00:27:38 -07:00
Nat Welch
0d83fa2ab8 Merge branch 'rtp-patch' into next_version 2013-06-26 23:17:04 -07:00
Nat Welch
2c77de3d3e metadata could be nil 2013-06-26 23:03:59 -07:00
Nat Welch
1f46fa4059 A patch from a fellow googler. 2013-06-26 23:00:06 -07:00
Postmodern
86a0578aab Renamed -f,--fogrc to -C,--credentials-path. 2013-06-26 19:32:35 -07:00
Nat Welch
1f8deaa5c0 Default to running user for username 2013-06-26 17:57:57 -07:00
Nat Welch
2b7848e206 network_interfaces can be nil 2013-06-26 17:57:07 -07:00
Nat Welch
581fc85687 Switch running? back to ready? 2013-06-26 17:55:57 -07:00
Nat Welch
7814ae55e8 Patch from a fellow googler 2013-06-26 17:53:53 -07:00