Sha256: eea7072ccdf54507f031415b7a371d843fc1e1f2d35e8ec6294d4a4a2e678288

Contents?: true

Size: 763 Bytes

Versions: 29

Compression:

Stored size: 763 Bytes

Contents

require "helpers/integration_test_helper"

class TestCommonFlags < FogIntegrationTest
  def setup
    @client = Fog::Google::SQL.new
  end

  def test_list
    resp = @client.list_flags

    assert_operator(resp.items.size, :>, 0,
                    "resource descriptor count should be positive")

    _sanity_check_flag(resp.items.first)
  end

  def test_all
    resp = @client.flags.all

    assert_operator(resp.size, :>, 0,
                    "resource descriptor count should be positive")

    _sanity_check_flag(resp.first)
  end

  def _sanity_check_flag(flag)
    assert_equal(flag.kind, "sql#flag")
    refute(flag.name.nil?, "flag name should not be empty")
    refute_empty(flag.applies_to, "flag should apply to some database version")
  end
end

Version data entries

29 entries across 29 versions & 2 rubygems

Version Path
fog-google-1.24.1 test/integration/sql/test_common_flags.rb
fog-google-1.24.0 test/integration/sql/test_common_flags.rb
fog-google-1.23.0 test/integration/sql/test_common_flags.rb
fog-google-1.22.0 test/integration/sql/test_common_flags.rb
fog-google-1.21.1 test/integration/sql/test_common_flags.rb
fog-google-1.21.0 test/integration/sql/test_common_flags.rb
fog-google-1.20.0 test/integration/sql/test_common_flags.rb
fog-google-1.19.0 test/integration/sql/test_common_flags.rb
fog-google-1.18.0 test/integration/sql/test_common_flags.rb
fog-google-1.17.0 test/integration/sql/test_common_flags.rb
fog-google-1.16.1 test/integration/sql/test_common_flags.rb
fog-google-1.16.0 test/integration/sql/test_common_flags.rb
fog-google-1.15.0 test/integration/sql/test_common_flags.rb
fog-google-1.14.0 test/integration/sql/test_common_flags.rb
gitlab-fog-google-1.14.0 test/integration/sql/test_common_flags.rb
fog-google-1.13.0 test/integration/sql/test_common_flags.rb
gitlab-fog-google-1.13.0 test/integration/sql/test_common_flags.rb
fog-google-1.12.1 test/integration/sql/test_common_flags.rb
fog-google-1.12.0 test/integration/sql/test_common_flags.rb
fog-google-1.11.0 test/integration/sql/test_common_flags.rb