Sha256: 6550aacd29cff5157a045ab6ebb948d768e07496618d04e2acee814d624017c9

Contents?: true

Size: 580 Bytes

Versions: 14

Compression:

Stored size: 580 Bytes

Contents

Shindo.tests("Fog::Google[:sql] | operation model", ["google"]) do
  @instance = Fog::Google[:sql].instances.create(:instance => Fog::Mock.random_letters(16), :tier => "D1")
  @instance.wait_for { ready? }
  @operations = Fog::Google[:sql].operations
  @operation = @operations.all(@instance.instance).first

  tests("success") do
    tests('#pending?').succeeds do
      @operation.pending? == false
    end

    tests('#ready?').succeeds do
      @operation.ready? == true
    end

    tests('#reload').succeeds do
      @operation.reload
    end
  end

  @instance.destroy
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
fog-google-0.6.0 tests/models/sql/operation_tests.rb
fog-google-0.5.5 tests/models/sql/operation_tests.rb
fog-google-0.5.4 tests/models/sql/operation_tests.rb
fog-google-0.5.3 tests/models/sql/operation_tests.rb
fog-google-0.5.2 tests/models/sql/operation_tests.rb
fog-google-0.5.1 tests/models/sql/operation_tests.rb
fog-google-0.5.0 tests/models/sql/operation_tests.rb
fog-google-0.4.2 tests/models/sql/operation_tests.rb
fog-google-0.4.1 tests/models/sql/operation_tests.rb
fog-google-0.4.0 tests/models/sql/operation_tests.rb
fog-google-0.3.2 tests/models/sql/operation_tests.rb
fog-google-0.3.1 tests/models/sql/operation_tests.rb
fog-google-0.3.0 tests/models/sql/operation_tests.rb
fog-google-0.2.0 tests/models/sql/operation_tests.rb