Sha256: 3260d45f0fb0fe4c2350fb92fc19b62561a2c79c07361a4ed9f02fa17debf03e

Contents?: true

Size: 583 Bytes

Versions: 22

Compression:

Stored size: 583 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

22 entries across 20 versions & 5 rubygems

Version Path
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-google-0.1.0/tests/models/sql/operation_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-google-0.1.0/tests/models/sql/operation_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-google-0.1.0/tests/models/sql/operation_tests.rb
fog-google-0.1.3 tests/models/sql/operation_tests.rb
fog-google-0.1.2 tests/models/sql/operation_tests.rb
fog-google-0.1.1 tests/models/sql/operation_tests.rb
fog-google-0.1.0 tests/models/sql/operation_tests.rb
fog-google-0.0.9 tests/models/sql/operation_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-google-0.0.7/tests/models/sql/operation_tests.rb
fog-google-0.0.7 tests/models/sql/operation_tests.rb
fog-google-0.0.6 tests/models/sql/operation_tests.rb
fog-google-0.0.5 tests/models/sql/operation_tests.rb
fog-google-0.0.4 tests/models/sql/operation_tests.rb
fog-google-0.0.3 tests/models/sql/operation_tests.rb
fog-google-0.0.2 tests/models/sql/operation_tests.rb
fog-1.29.0 tests/google/models/sql/operation_tests.rb
fog-1.28.0 tests/google/models/sql/operation_tests.rb
fog-1.27.0 tests/google/models/sql/operation_tests.rb
fog-1.26.0 tests/google/models/sql/operation_tests.rb
fog-1.25.0 tests/google/models/sql/operation_tests.rb