mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
21 lines
672 B
Ruby
21 lines
672 B
Ruby
Shindo.tests('Fog::Compute[:digitalocean] | servers collection', ['digitalocean']) do
|
|
service = Fog::Compute[:digitalocean]
|
|
|
|
options = {
|
|
:name => "#{fog_server_name}-#{Time.now.to_i.to_s}"
|
|
}.merge fog_test_server_attributes
|
|
|
|
collection_tests(service.servers, options, true) do
|
|
@instance.wait_for { ready? }
|
|
end
|
|
|
|
tests("#bootstrap").succeeds do
|
|
pending if Fog.mocking?
|
|
@server = service.servers.bootstrap({
|
|
:public_key_path => File.join(File.dirname(__FILE__), '../../fixtures/id_rsa.pub'),
|
|
:private_key_path => File.join(File.dirname(__FILE__), '../../fixtures/id_rsa')
|
|
}.merge(options))
|
|
end
|
|
|
|
@server.destroy if @server
|
|
end
|