Sha256: 89c29b313ffa77ee1bb9d79088ef6bf1c8513d96e099b36fcbc38cdbe0732339

Contents?: true

Size: 593 Bytes

Versions: 22

Compression:

Stored size: 593 Bytes

Contents

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

  tests('success') do

    tests('#create').succeeds do
      @ssl_cert = @ssl_certs.create(:instance => @instance.instance, :common_name => Fog::Mock.random_letters(16))
    end

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

    tests('#destroy').succeeds do
      @ssl_cert.destroy
    end

  end

  @instance.destroy

end

Version data entries

22 entries across 20 versions & 5 rubygems

Version Path
nsidc-fog-1.24.1 tests/google/models/sql/ssl_cert_tests.rb
fog-1.24.0 tests/google/models/sql/ssl_cert_tests.rb