mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Add tests for address model and addresses collection.
This commit is contained in:
parent
9e1b0b0691
commit
2ad0a324a5
2 changed files with 21 additions and 0 deletions
16
tests/hp/models/compute/address_tests.rb
Normal file
16
tests/hp/models/compute/address_tests.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
Shindo.tests("Fog::Compute[:hp] | address", ['hp']) do
|
||||
|
||||
model_tests(Fog::Compute[:hp].addresses, {}, true) do
|
||||
|
||||
@server = Fog::Compute[:hp].servers.create(:name => "fogservertests", :flavor_id => 100, :image_id => 1242)
|
||||
@server.wait_for { ready? }
|
||||
|
||||
tests('#server=').succeeds do
|
||||
@instance.server = @server
|
||||
end
|
||||
|
||||
@server.destroy
|
||||
|
||||
end
|
||||
|
||||
end
|
5
tests/hp/models/compute/addresses_tests.rb
Normal file
5
tests/hp/models/compute/addresses_tests.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
Shindo.tests("Fog::Compute[:hp] | addresses", ['hp']) do
|
||||
|
||||
collection_tests(Fog::Compute[:hp].addresses, {}, true)
|
||||
|
||||
end
|
Loading…
Reference in a new issue