mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[compute|brightbox] Fixed deprecated use of Brightbox[:compute] to new Compute[:brightbox]
This commit is contained in:
parent
131182c4b0
commit
1d89eec55a
1 changed files with 4 additions and 4 deletions
|
@ -3,13 +3,13 @@ Shindo.tests('Fog::Compute[:brightbox] | interface requests', ['brightbox']) do
|
|||
tests('success') do
|
||||
|
||||
unless Fog.mocking?
|
||||
server = Brightbox[:compute].servers.first
|
||||
server = Fog::Compute[:brightbox].servers.first
|
||||
@interface_id = server.interfaces.first["id"]
|
||||
end
|
||||
|
||||
tests("#get_interface('#{@interface_id}')").formats(Brightbox::Compute::Formats::Full::INTERFACE) do
|
||||
pending if Fog.mocking?
|
||||
Brightbox[:compute].get_interface(@interface_id)
|
||||
Fog::Compute[:brightbox].get_interface(@interface_id)
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -18,12 +18,12 @@ Shindo.tests('Fog::Compute[:brightbox] | interface requests', ['brightbox']) do
|
|||
|
||||
tests("#get_interface('int-00000')").raises(Excon::Errors::Forbidden) do
|
||||
pending if Fog.mocking?
|
||||
Brightbox[:compute].get_interface('int-00000')
|
||||
Fog::Compute[:brightbox].get_interface('int-00000')
|
||||
end
|
||||
|
||||
tests("#get_interface()").raises(ArgumentError) do
|
||||
pending if Fog.mocking?
|
||||
Brightbox[:compute].get_interface()
|
||||
Fog::Compute[:brightbox].get_interface()
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue