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

change tests for using fogtest flavor

This commit is contained in:
Cherdancev Evgeni 2015-11-25 13:42:42 +06:00
parent 64646fff6e
commit 9b2a910834
2 changed files with 2 additions and 3 deletions

View file

@ -1,7 +1,7 @@
Shindo.tests('Fog::Compute[:opennebula] | flavor model', ['opennebula']) do
flavors = Fog::Compute[:opennebula].flavors
flavor = flavors.last
flavor = flavors.get_by_name('fogtest').last
tests('The flavor model should') do
tests('have the action') do

View file

@ -1,7 +1,7 @@
Shindo.tests('Fog::Compute[:opennebula] | network model', ['opennebula']) do
networks = Fog::Compute[:opennebula].networks
network = networks.last
network = networks.get_by_name('fogtest')
tests('The network model should') do
tests('have the action') do
@ -9,7 +9,6 @@ Shindo.tests('Fog::Compute[:opennebula] | network model', ['opennebula']) do
end
tests('have attributes') do
model_attribute_hash = network.attributes
attributes =
tests("The network model should respond to") do
[:name, :id, :vlan, :uid, :uname, :gid, :description].each do |attribute|
test("#{attribute}") { network.respond_to? attribute }