test/api_stub/models/storage/storageaccount.rb in fog-azure-rm-0.0.4 vs test/api_stub/models/storage/storageaccount.rb in fog-azure-rm-0.0.5
- old
+ new
@@ -1,28 +1,21 @@
module ApiStub
module Models
module Storage
+ # Mock class for Storage Account
class StorageAccount
- def self.create_storage_account
- {
- 'location' => 'west us',
- 'properties' =>
- {
- 'accountType' => 'Standard_LRS'
- }
- }
- end
-
- def self.list_storage_account
- {
+ def self.create_storage_account(storage_mgmt_client)
+ storage_account_hash = {
'id' => '/subscriptions/67f2116d-4ea2-4c6c-b20a-f92183dbe3cb/resourceGroups/fog_test_rg/providers/Microsoft.Storage/storageAccounts/fogtestsasecond',
'name' => 'fog-test-storage-account',
- 'location' => 'westus',
- 'properties' =>
+ 'location' => 'west us',
+ 'sku' =>
{
- 'accountType' => 'Standard_LRS'
+ 'name' => 'Standard_LRS'
}
}
+ storage_account_mapper = Azure::ARM::Storage::Models::StorageAccount.mapper
+ storage_mgmt_client.deserialize(storage_account_mapper, storage_account_hash, 'hash')
end
end
end
end
end