Displaying 6 results from an estimated 6 matches for "storagecontrol".
2006 Jun 16
2
need help mocking out a method
...that normally returns a unique number so
that it returns a duplicate number several times in a row thereby
triggering the error handling. However, I can''t get the mock working.
Here''s the test code along with the error (all from test/functional/
storage_api_test.rb).
class StorageController
@mock_uuid = ["7cd00940-df96-0128-85c8-000a95ba12c4",
"cca3c300-df8f-0128-85c8-000a95ba12c4",
"cca3c300-df8f-0128-85c8-000a95ba12c4",
"cca3c300-df8f-0128-85c8-000a95ba12c4",
"cca3c300-df8f-0128-85c8-000a95ba12c4"]...
2007 Apr 23
14
concatination & stripe - zfs?
I want to configure my zfs like this :
concatination_stripe_pool :
concatination
lun0_controller0
lun1_controller0
concatination
lun2_controller1
lun3_controller1
1. There is any option to implement it in ZFS?
2. there is other why to get the same configuration?
thanks
This message posted from opensolaris.org
2010 Mar 22
0
need help on working with libvirt+virtualbox
..." driver="ALSA" enabled="false"/>
<SharedFolders/>
<Clipboard mode="Bidirectional"/>
<Guest memoryBalloonSize="0" statisticsUpdateInterval="0"/>
<GuestProperties/>
</Hardware>
<StorageControllers/>
</Machine>
</VirtualBox>
please help me if i am doing anything wrong , how can i specify storage
controller in xml file and any input on why it is aborting with segfault
sorry for the long post and xml
--
Madhu
-------------- next part --------------
An HTML attachment w...
2009 May 20
1
[PATCH server] don't add nil key to failures hash for PartialSuccessError handling.
...end
end
unless failures.empty?
diff --git a/src/app/controllers/storage_controller.rb b/src/app/controllers/storage_controller.rb
index dac2a6b..9a91288 100644
--- a/src/app/controllers/storage_controller.rb
+++ b/src/app/controllers/storage_controller.rb
@@ -135,10 +135,10 @@ class StorageController < ApplicationController
begin
svc_destroy(storage_pool_id)
successes << @storage_pool
- rescue PermissionError => perm_error
- failures[@storage_pool] = perm_error.message
+ # PermissionError expected
rescue Exception => ex
-...
2009 Jun 16
1
[PATCH server] Fix errors in controller tests.
...test.rb b/src/test/functional/storage_controller_test.rb
index fcf0293..e10a662 100644
--- a/src/test/functional/storage_controller_test.rb
+++ b/src/test/functional/storage_controller_test.rb
@@ -23,7 +23,7 @@ require 'storage_controller'
# Re-raise errors caught by the controller.
class StorageController; def rescue_action(e) raise e end; end
-class StorageControllerTest < Test::Unit::TestCase
+class StorageControllerTest < ActionController::TestCase
fixtures :privileges, :roles, :permissions, :pools,
:storage_volumes, :storage_pools
diff --git a/src/test/functional/task...
2009 May 15
0
[PATCH server] final cleanup for service layer refactoring.
...ve_items(params[:id], nil, :add, class_and_ids)
diff --git a/src/app/controllers/storage_controller.rb b/src/app/controllers/storage_controller.rb
index 4cc4953..dac2a6b 100644
--- a/src/app/controllers/storage_controller.rb
+++ b/src/app/controllers/storage_controller.rb
@@ -157,12 +157,4 @@ class StorageController < ApplicationController
format.xml { head(:ok) }
end
end
-
- # FIXME: remove these when service transition is complete. these are here
- # to keep from running permissions checks and other setup steps twice
- def tmp_pre_update
- end
- def tmp_authorize_admin
- end
-
end...