mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
23 lines
537 B
Ruby
23 lines
537 B
Ruby
Shindo.tests('Fog::Compute[:ibm] | key', ['ibm']) do
|
|
|
|
tests('success') do
|
|
|
|
@key_name = 'fog-test-key-' + Time.now.to_i.to_s(32)
|
|
@key = nil
|
|
|
|
tests("Fog::Compute::IBM::Key.create(:name => '#{@key_name}')") do
|
|
@key = Fog::Compute[:ibm].keys.create(:name => @key_name)
|
|
returns(@key_name) { @key.name }
|
|
end
|
|
|
|
tests("Fog::Compute::IBM::Key#instances") do
|
|
returns([]) { @key.instances }
|
|
end
|
|
|
|
tests('Fog::Compute::IBM::Key#destroy') do
|
|
returns(true) { @key.destroy }
|
|
end
|
|
|
|
end
|
|
|
|
end
|