Sha256: 705eeed62e1acaaf1289d108b109be57f75262374c2d4411c0fcc32c41d90551

Contents?: true

Size: 789 Bytes

Versions: 14

Compression:

Stored size: 789 Bytes

Contents

Shindo.tests("Fog::Compute[:google] | server model", ['google']) do

  model_tests(Fog::Compute[:google].disks, {:name => 'fogservername', :zone_name => 'us-central1-a', :machine_type => 'n1-standard-1'})

  tests('servers') do
    @instance = nil
    test('#bootstrap') do
      attributes = Fog.mocking? ? {:public_key_path => nil, :private_key_path => nil} : {}
      @instance = Fog::Compute[:google].servers.bootstrap(attributes)
      @instance.ready?
    end

    test('#sshable?') do
      @instance.wait_for { sshable? }
      @instance.sshable?
    end

    test('#ssh') do
      pending if Fog.mocking?
      @instance.ssh("uname") == "Linux"
    end

    test('#destroy') do
      response = @instance.destroy
      response.body['operationType'] == 'delete'
    end
  end
end

Version data entries

14 entries across 14 versions & 2 rubygems

Version Path
fog-1.19.0 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131219033443 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131219032002 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131219030716 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131219022322 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131218202447 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131209091424 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131209090811 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131206115947 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131205181604 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131127194823 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131126183714 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131126122111 tests/google/models/compute/server_tests.rb
fog-maestrodev-1.18.0.20131125111730 tests/google/models/compute/server_tests.rb