fog/fog — Issue #753: SNS region unknown or method unknown
Author: hedgehog
Created: 2012-02-19 03:34:26+00:00
State: open

In Fog 1.1.2:

opts = {:region => ...., }
::Fog::AWS::SNS::Real.new( opts )

Will init OK but not know anything about SNS methods (e.g `list_topics`):

NoMethodError: undefined method `list_topics' for #

On the other hand:

::Fog::AWS::SNS.new( opts )
ArgumentError: Unrecognized arguments: region
/src/project/ttinit/vendor/ruby/1.9.1/gems/fog-1.1.2/lib/fog/core/service.rb:193:in `validate_options'
/src/project/ttinit/vendor/ruby/1.9.1/gems/fog-1.1.2/lib/fog/core/service.rb:58:in `new'

There is a little too much magic happening in the test suite to be able to tell why this doesn't show up as a failure there.