Sha256: 154807fbff88ce92b741619d8f837ed3c6d5282bc1e0108153d2b3ca8d3bfd98

Contents?: true

Size: 1.2 KB

Versions: 115

Compression:

Stored size: 1.2 KB

Contents

Shindo.tests('Fog::Rackspace::LoadBalancers | ssl_termination', ['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("#set_ssl_termination(#{@lb.id}, 443, PRIVATE_KEY, CERTIFICATE)").succeeds do
          @service.set_ssl_termination(@lb.id, 443, PRIVATE_KEY, CERTIFICATE)
        end

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

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

      end

      tests('failure') do
        @lb.wait_for { ready? }
        tests("#get_ssl_termination(#{@lb.id})").raises(Fog::Rackspace::LoadBalancers::NotFound) do
          @service.get_ssl_termination(@lb.id).body
        end

        tests("#set_ssl_termination(#{@lb.id}, 443, '', CERTIFICATE)").raises(Fog::Rackspace::LoadBalancers::BadRequest) do
          @service.set_ssl_termination(@lb.id, 443, '', CERTIFICATE)
        end
      end
    end
  end
end

Version data entries

115 entries across 113 versions & 15 rubygems

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