Sha256: d2615d0e2cd3c7f1811d67fd8dcbdcffd23a31cf8f3f62f5d632bbc367f1b569

Contents?: true

Size: 1021 Bytes

Versions: 16

Compression:

Stored size: 1021 Bytes

Contents

require "helpers/test_helper"

test_name "dsl::helpers::host_helpers #curl_with_retries" do
  step "#curl_with_retries CURRENTLY fails with a RuntimeError if retries are exhausted without fetching the specified URL" do
    # NOTE: would expect that this would raise Beaker::Host::CommandFailure

    assert_raises RuntimeError do
      curl_with_retries \
        "description",
        default,
        "file:///non/existent.html",
        desired_exit_codes = [0],
        max_retries = 2,
        retry_interval = 0.01
    end
  end

  step "#curl_with_retries retrieves the contents of a URL after retrying" do
    # TODO: testing curl_with_retries relies on having a portable means of
    # making an unavailable URL available after a period of time.
  end

  step "#curl_with_retries can retrieve the contents of a URL after retrying, when given a hosts array" do
    # TODO: testing curl_with_retries relies on having a portable means of
    # making an unavailable URL available after a period of time.
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
beaker-6.4.1 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-6.4.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-6.3.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-6.2.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-6.1.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.8.1 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.8.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.7.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.6.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.5.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.4.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.3.1 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.3.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.2.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.1.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb
beaker-5.0.0 acceptance/tests/base/dsl/helpers/host_helpers/curl_with_retries_test.rb