Sha256: 84e0dac6f1295c5510355312c6f64cbcfb3ef44ab81f1be7398c3150e3f08776

Contents?: true

Size: 1.2 KB

Versions: 145

Compression:

Stored size: 1.2 KB

Contents

Shindo.tests('Fog::Rackspace::LoadBalancers | connection_throttling', ['rackspace']) do

  pending if Fog.mocking?

  given_a_load_balancer_service do
    given_a_load_balancer do
      tests('success') do

        @lb.wait_for { ready? }
        tests("#get_connection_throttling(#{@lb.id})").formats(CONNECTION_THROTTLING_FORMAT) do
          @service.get_connection_throttling(@lb.id).body
        end

        @lb.wait_for { ready? }
        tests("#set_connection_throttling(#{@lb.id}, 10, 10, 10, 30)").succeeds do
          @service.set_connection_throttling(@lb.id, 10, 10, 10, 30)
        end

        @lb.wait_for { ready? }
        tests("#get_connection_throttling(#{@lb.id})").formats(CONNECTION_THROTTLING_FORMAT) do
          @service.get_connection_throttling(@lb.id).body
        end

        @lb.wait_for { ready? }
        tests("#remove_connection_throttling()").succeeds do
          @service.remove_connection_throttling(@lb.id)
        end
      end

      tests('failure') do
        tests("#set_connection_throttling(#{@lb.id}, -1, -1, -1, -1)").raises(Fog::Rackspace::LoadBalancers::BadRequest) do
          @service.set_connection_throttling(@lb.id, -1, -1, -1, -1)
        end
      end
    end
  end
end

Version data entries

145 entries across 143 versions & 22 rubygems

Version Path
fog-rackspace-0.1.6 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/fog-rackspace-0.1.5/tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.5.0/gems/fog-rackspace-0.1.5/tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.3.0/gems/fog-rackspace-0.1.5/tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-rackspace-0.1.5 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-rackspace-0.1.4 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-rackspace-0.1.3 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-rackspace-0.1.2 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-rackspace-0.1.1 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-rackspace-0.1.0 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-1.37.0 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-1.36.0 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-1.35.0 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-2.0.0.pre.0 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
vagrant-cloudstack-1.2.0 vendor/bundle/gems/fog-1.32.0/tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-1.34.0 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-1.33.0 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-1.32.0 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
fog-1.31.0 tests/rackspace/requests/load_balancers/connection_throttling_tests.rb
vagrant-cloudstack-1.1.0 vendor/bundle/gems/fog-1.22.1/tests/rackspace/requests/load_balancers/connection_throttling_tests.rb