1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00

[ibm] Make names used in tests unique using current time

This commit is contained in:
Decklin Foster 2012-02-20 13:14:02 -05:00
parent ed816e9233
commit 5620ac760f
7 changed files with 10 additions and 9 deletions

View file

@ -2,7 +2,7 @@ Shindo.tests('Fog::Compute[:ibm] | key', ['ibm']) do
tests('success') do
@key_name = "fog test key"
@key_name = 'fog-test-key-' + Time.now.to_i.to_s(32)
@key = nil
tests("Fog::Compute::IBM::Key.new('#{@key_name}')") do

View file

@ -2,7 +2,7 @@ Shindo.tests('Fog::Compute[:ibm] | keys', ['ibm']) do
tests('success') do
@key_name = "fog test key"
@key_name = 'fog-test-key' + Time.now.to_i.to_s(32)
@key = nil
tests("Fog::Compute[:ibm].keys.create(:name => '#{@key_name}')") do

View file

@ -5,7 +5,7 @@ Shindo.tests('Fog::Compute[:ibm] | server', ['ibm']) do
@server = nil
@instance_id = nil
@name = "Fog Test Instance"
@name = "fog-test-instance-" + Time.now.to_i.to_s(32)
@image_id = "20015393"
@instance_type = "BRZ32.1/2048/60*175"
@location_id = "101"

View file

@ -49,7 +49,7 @@ Shindo.tests('Fog::Compute[:ibm] | image requests', ['ibm']) do
}
@instance_id = nil
@name = "fog test image instance"
@name = "fog-test-image-instance-" + Time.now.to_i.to_s(32)
@image_id = "20015393"
@instance_type = "BRZ32.1/2048/60*175"
@location = "101"
@ -85,7 +85,8 @@ Shindo.tests('Fog::Compute[:ibm] | image requests', ['ibm']) do
end
tests('#clone_image') do
data = Fog::Compute[:ibm].clone_image(@image_id, "fog test clone image", "").body
clone_name = 'fog-test-clone-image-' + Time.now.to_i.to_s(32)
data = Fog::Compute[:ibm].clone_image(@image_id, clone_name, "").body
@cloned_id = data['ImageID']
returns(String) { data['ImageID'].class }
end

View file

@ -33,7 +33,7 @@ Shindo.tests('Fog::Compute[:ibm] | instance requests', ['ibm']) do
tests('success') do
@instance_id = nil
@name = "fog test instance"
@name = "fog-test-instance-" + Time.now.to_i.to_s(32)
@image_id = "20018425"
@instance_type = "COP32.1/2048/60"
@location = "101"

View file

@ -14,7 +14,7 @@ Shindo.tests('Fog::Compute[:ibm] | key requests', ['ibm']) do
tests('success') do
@key_name = "fog test key"
@key_name = 'fog-test-key' + Time.now.to_i.to_s(32)
@public_key = <<-EOF
-----BEGIN RSA PUBLIC KEY-----
MIGJAoGBAL2nePLzDy1Z2Y64/Dz5QMmJN4S9xc6D8TbiKVe5YHeuNt3fCSYDJl9x

View file

@ -31,7 +31,7 @@ Shindo.tests('Fog::Storage[:ibm] | volume requests', ['ibm']) do
tests('success') do
@volume_id = nil
@name = "fog test volume"
@name = "fog-test-volume" + Time.now.to_i.to_s(32)
@format = "raw"
@location_id = "101"
@size = "256"
@ -59,7 +59,7 @@ Shindo.tests('Fog::Storage[:ibm] | volume requests', ['ibm']) do
tests("#attach_volume('#{@instance_id}','#{@volume_id}')") do
@instance_id = Fog::Compute[:ibm].create_instance(
"fog test volume instance",
'fog-test-volume-instance-' + Time.now.to_i.to_s(32),
@image_id,
@instance_type,
@location,