Skip to content

Commit

Permalink
Rescope SQL client in test
Browse files Browse the repository at this point in the history
  • Loading branch information
Temikus committed Jul 15, 2018
1 parent b0126f1 commit d1c537f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/integration/sql/test_v1_certs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ class TestSQLV1Certs < FogIntegrationTest
def setup
@subject = Fog::Google[:sql].ssl_certs
@factory = SqlV1CertsFactory.new(namespaced_name)
@client = Fog::Google::SQL.new
@instances = Fog::Google[:sql].instances
end

def teardown
Expand Down Expand Up @@ -42,7 +42,7 @@ def test_ssl_certs
"expected one less SSL cert after deletion")

# Test if SSL config is reset correctly
instance = @client.instances.get(instance_name)
instance = @instances.get(instance_name)
instance.reset_ssl_config(:async => false)
assert_equal(0, @subject.all(instance_name).size,
"expected no SSL certs after reset")
Expand Down

0 comments on commit d1c537f

Please sign in to comment.