1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-03-23 22:50:09 +03:00

Feature #495: Fixed mismatch in the name of the "saveas" and "livemigrate" action.

This commit is contained in:
Jaime Melis 2011-02-24 12:51:33 +01:00
parent f2e66cdc29
commit c8e87b3ee9
3 changed files with 7 additions and 7 deletions

View File

@ -45,14 +45,14 @@ module OpenNebulaJSON
when "deploy" then self.deploy(action_hash['params'])
when "finalize" then self.finalize
when "hold" then self.hold
when "live_migrate" then self.live_migrate(action_hash['params'])
when "livemigrate" then self.live_migrate(action_hash['params'])
when "migrate" then self.migrate(action_hash['params'])
when "resume" then self.resume
when "release" then self.release
when "stop" then self.stop
when "suspend" then self.suspend
when "restart" then self.restart
when "save_as" then self.save_as(action_hash['params'])
when "saveas" then self.save_as(action_hash['params'])
when "shutdown" then self.shutdown
else
error_msg = "#{action_hash['perform']} action not " <<

View File

@ -4,6 +4,6 @@
"disk_id": "0",
"image_name": "new_image"
},
"perform": "save_as"
"perform": "saveas"
}
}
}

View File

@ -35,7 +35,7 @@ describe 'VirtualMachine tests' do
@action_deploy = File.read(EXAMPLES_PATH + '/vm/deploy.json')
@action_hold = File.read(EXAMPLES_PATH + '/vm/hold.json')
@action_saveas = File.read(EXAMPLES_PATH + '/vm/save_as.json')
@action_saveas = File.read(EXAMPLES_PATH + '/vm/saveas.json')
@wrong_action = File.read(EXAMPLES_PATH + '/error/wrong_action.json')
end
@ -125,7 +125,7 @@ describe 'VirtualMachine tests' do
end
############################################################################
# Save_as
# Saveas
############################################################################
it "should prepare the VirtualMachine 0 disk to be saved" do
url = '/vm/0/action'
@ -134,7 +134,7 @@ describe 'VirtualMachine tests' do
last_response.status.should eql(204)
end
it "should get VirtualMachine 0 information after save_as action" do
it "should get VirtualMachine 0 information after saveas action" do
url = '/vm/0'
get url