test/cloud/fog_test.rb in rubber-2.3.1 vs test/cloud/fog_test.rb in rubber-2.4.0
- old
+ new
@@ -5,11 +5,13 @@
class FogTest < Test::Unit::TestCase
context "fog" do
setup do
- env = {'credentials' =>
+ env = {'compute_credentials' =>
+ {'rackspace_api_key' => "XXX", 'rackspace_username' => "YYY", 'provider' => "rackspace"},
+ 'storage_credentials' =>
{'rackspace_api_key' => "XXX", 'rackspace_username' => "YYY", 'provider' => "rackspace"}}
env = Rubber::Configuration::Environment::BoundEnv.new(env, nil, nil, nil)
@cloud = Rubber::Cloud::Fog.new(env, nil)
end
@@ -25,10 +27,10 @@
should "not provide table store" do
assert_raises { @cloud.table_store('somekey') }
end
should "create instance" do
- assert @cloud.create_instance('', '', '', '')
+ assert @cloud.create_instance('', '', '', '', '')
end
end
end