Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support multiple HTTP status codes for HttpWaitStrategy #630

Merged
merged 17 commits into from
Apr 13, 2018

Commits on Apr 1, 2018

  1. Support multiple HTTP status codes for HttpWaitStrategy

    In the context of elasticsearch test containers module, I'd like to
    add an ElasticsearchWaitStrategy class which extends the HttpWaitStrategy
    with some default settings so it will be even easier for a end user to
    start an ElasticsearchTestContainer.
    
    Anyway, in this context, I found helpful that the HttpWaitStrategy expects
    more than on status code.
    
    For example, you can imagine running elasticsearch in secure mode or
    without any security. In which cases the elasticsearch service might answer 200 or 401.
    
    This commit proposes this change.
    dadoonet committed Apr 1, 2018
    Configuration menu
    Copy the full SHA
    cf637ce View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2018

  1. Configuration menu
    Copy the full SHA
    da44bd9 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0af2eab View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e5ddd16 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2018

  1. Make forStatusCode chainable and add forStatusCodeMatching method

    `forStatusCodeMatching()` comes with a default Predicate which checks
    status codes that have been provided with `forStatusCode()`.
    
    Also copied the default tests which were using the deprecated package to
    the new one to make sure we test the new methods.
    dadoonet committed Apr 7, 2018
    Configuration menu
    Copy the full SHA
    1b7cbaf View commit details
    Browse the repository at this point in the history
  2. Fix quality

    dadoonet committed Apr 7, 2018
    Configuration menu
    Copy the full SHA
    f2d1592 View commit details
    Browse the repository at this point in the history
  3. Fix compile issue

    dadoonet committed Apr 7, 2018
    Configuration menu
    Copy the full SHA
    bf12100 View commit details
    Browse the repository at this point in the history
  4. Support both Predicates and Status codes

    Also use a Set instead of a List to avoid duplicates.
    dadoonet committed Apr 7, 2018
    Configuration menu
    Copy the full SHA
    3b34909 View commit details
    Browse the repository at this point in the history
  5. Fix setter

    dadoonet committed Apr 7, 2018
    Configuration menu
    Copy the full SHA
    afe06dc View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2018

  1. Revert unrelated change

    dadoonet committed Apr 8, 2018
    Configuration menu
    Copy the full SHA
    9f1b28a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    cb4875d View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    bb39373 View commit details
    Browse the repository at this point in the history
  4. Fix default predicate

    dadoonet committed Apr 8, 2018
    Configuration menu
    Copy the full SHA
    10ca9cd View commit details
    Browse the repository at this point in the history

Commits on Apr 13, 2018

  1. Move WaitStrategy tests to the right package

    And stop testing deprecated methods
    dadoonet committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    370c35a View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    808dcf8 View commit details
    Browse the repository at this point in the history
  3. Add more tests

    dadoonet committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    d6837f7 View commit details
    Browse the repository at this point in the history
  4. Add entry in changelog

    dadoonet committed Apr 13, 2018
    Configuration menu
    Copy the full SHA
    6b24c2a View commit details
    Browse the repository at this point in the history