1
0
Fork 0
mirror of https://github.com/fog/fog.git synced 2022-11-09 13:51:43 -05:00
fog--fog/tests/google/models/compute/servers_tests.rb
2014-06-13 17:10:00 +03:00

14 lines
536 B
Ruby

require 'securerandom'
Shindo.tests("Fog::Compute[:google] | servers", ['google']) do
@zone = 'us-central1-a'
@disk = create_test_disk(Fog::Compute[:google], @zone)
random_string = SecureRandom.hex
collection_tests(Fog::Compute[:google].servers, {:name => "fog-test-server-#{random_string}",
:zone_name => @zone,
:machine_type => 'n1-standard-1',
:disks => [@disk]})
end