webapp/app/controllers/test_controller.rb in cloud-toaster-1.1.5 vs webapp/app/controllers/test_controller.rb in cloud-toaster-1.1.6
- old
+ new
@@ -55,12 +55,13 @@
test_case = cur_case
if test_case
test_case.start_time = nil
test_case.end_time = nil
if test_case.automation_run
- test_case.automation_run.delete
+ test_case.automation_run.destroy
end
+ test_case.executing_host = nil
test_case.save
redirect_to "/test/suites/#{test_case.test_suite.id}"
else
redirect_to "/test/suites"
end
@@ -77,19 +78,18 @@
def exec_suite
test_suite = cur_suite
client = service_client
session[:suite_cur] = nil
- client.runtests(test_suite.uuid)
+ session[:exec_output] = client.runtests(test_suite.uuid)
redirect_to "/test/suites/#{params["suite_id"]}"
end
def delete_suite
- puts "deleting suite ..."
if cur_suite
puts "deleting suite #{cur_suite}"
session[:suite_cur] = nil
- cur_suite.delete
+ cur_suite.destroy
redirect_to "/test/suites"
end
end
# HELPER METHODS #