Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- it "should have the correct save/clone tags and user/rdy states" do
- @vm['TEMPLATE/DISK/SAVE'].should eq("YES")
- @vm['TEMPLATE/DISK/CLONE'].should eq("NO")
- @image = cli_action_xml("oneimage show -x #{@image_id}")
- @image['PERSISTENT'].should eq("1")
- @image['RUNNING_VMS'].should eq("1")
- @image['STATE'].should eq("2")
- cli_action("onevm delete #{@vm_id}")
- check_vm_state("DONE", 10, @vm_id)
- end
- it "should update on shutdown" do
- image_info_before = file_info(@image['SOURCE'])
- cli_action("onevm shutdown #{@vm_id}")
- check_vm_state("DONE", 10, @vm_id)
- image_info_after = file_info(@image['SOURCE'])
- image_info_before.should_not eql(image_info_after)
- File.read(@image['SOURCE']).strip.should eql(@timestamp)
- end
- #
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement