mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
Bumped mocked maximum value for provisioned iops
This commit is contained in:
parent
014724e748
commit
b32fd2e3f9
2 changed files with 5 additions and 5 deletions
|
@ -83,8 +83,8 @@ module Fog
|
|||
raise Fog::Compute::AWS::Error.new("VolumeIOPSLimit => Volume iops of #{iops} is too low; minimum is 100.")
|
||||
end
|
||||
|
||||
if iops > 1000
|
||||
raise Fog::Compute::AWS::Error.new("VolumeIOPSLimit => Volume iops of #{iops} is too high; maximum is 1000.")
|
||||
if iops > 2000
|
||||
raise Fog::Compute::AWS::Error.new("VolumeIOPSLimit => Volume iops of #{iops} is too high; maximum is 2000.")
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -184,9 +184,9 @@ Shindo.tests('Fog::Compute[:aws] | volume requests', ['aws']) do
|
|||
Fog::Compute[:aws].create_volume(@server.availability_zone, 10, 'VolumeType' => 'io1', 'Iops' => 99)
|
||||
end
|
||||
|
||||
# iops invalid value (greater than 1000)
|
||||
tests("#create_volume('#{@server.availability_zone}', 10, 'VolumeType' => 'io1', 'Iops' => 1001)").raises(Fog::Compute::AWS::Error) do
|
||||
Fog::Compute[:aws].create_volume(@server.availability_zone, 1000, 'VolumeType' => 'io1', 'Iops' => 1001)
|
||||
# iops invalid value (greater than 2000)
|
||||
tests("#create_volume('#{@server.availability_zone}', 1024, 'VolumeType' => 'io1', 'Iops' => 2001)").raises(Fog::Compute::AWS::Error) do
|
||||
Fog::Compute[:aws].create_volume(@server.availability_zone, 1024, 'VolumeType' => 'io1', 'Iops' => 2001)
|
||||
end
|
||||
|
||||
@volume.destroy
|
||||
|
|
Loading…
Reference in a new issue