search for: instancecontrollertest

Displaying 5 results from an estimated 5 matches for "instancecontrollertest".

2009 Jul 01
1
[PATCH server] fixed expected status messages that were failing unit/functional tests.
...--git a/src/test/functional/cloud/instance_controller_test.rb b/src/test/functional/cloud/instance_controller_test.rb index 71d132b..0d713d4 100644 --- a/src/test/functional/cloud/instance_controller_test.rb +++ b/src/test/functional/cloud/instance_controller_test.rb @@ -50,7 +50,7 @@ class Cloud::InstanceControllerTest < ActionController::TestCase def test_add_valid_task post(:index,{:submit_for_list => 'Shutdown', :ids => [vms(:production_mysqld_vm).id]}) - assert_equal('shutdown_vm successful.', flash[:notice]) + assert_equal('shutdown_vm submitted.', flash[:noti...
2009 Jun 29
2
One more fix
This resend includes the rebase, but fixes a problem I just noticed with nil/empty checks.
2009 Jun 29
2
Resend of Cloud UI/service patches
This is a resend of the 2-patch series from a week or so ago, needed to be rebased due to some commits on next
2009 Jun 22
2
Patch series for Cloud Vm Actions
The following two patches should be applied in the order: * [PATCH server] Add svc_vm_actions method to VmService. * [PATCH server] Cloud UI layer to initiate actions on vms. The service layer patch should work fine on its own (and not break anything), but cloud patch relies on service being there.
2009 May 13
1
[PATCH server] Cloud UI V1 (readonly).
...--git a/src/test/functional/cloud/instance_controller_test.rb b/src/test/functional/cloud/instance_controller_test.rb new file mode 100644 index 0000000..213d2e0 --- /dev/null +++ b/src/test/functional/cloud/instance_controller_test.rb @@ -0,0 +1,23 @@ +require 'test_helper' + +class Cloud::InstanceControllerTest < ActionController::TestCase + fixtures :vms, :tasks + def setup + @controller = Cloud::InstanceController.new + @request = ActionController::TestRequest.new + @response = ActionController::TestResponse.new + end + + def test_should_show_index + get :index + assert_respon...