Sha256: d9fecba6067e3ea4b19fffa259f641bba3c3a4a11b7453e82618fed9f369c253

Contents?: true

Size: 1.31 KB

Versions: 51

Compression:

Stored size: 1.31 KB

Contents

Feature: request balancer error handling
  In order to enhance app availability and development velocity
  RequestBalancer should consider certain errors as fatal by default
  So careless developers do not cause unexpected behavior when failures occur

  Scenario: well-behaved servers
    Given 5 servers that respond with 200
    When a client makes a load-balanced request to '/'
    Then the request should complete
    And the request should be attempted once

  Scenario: resource not found
    Given 4 servers that respond with 404
    When a client makes a load-balanced request to '/'
    Then the request should raise ResourceNotFound
    And the request should be attempted once

  Scenario: client-side error
    Given a server that responds with 200
    When a client makes a buggy load-balanced request to '/'
    Then the request should raise ArgumentError
    And the request should be attempted once

  Scenario: socket open timeout
    Given 2 blackholed servers
    When a client makes a load-balanced request to '/'
    Then the request should be attempted 2 times
    And the request should raise NoResult

  Scenario: HTTP request timeout
    Given 2 overloaded servers
    When a client makes a load-balanced request to '/'
    Then the request should be attempted 2 times
    And the request should raise NoResult

Version data entries

51 entries across 51 versions & 1 rubygems

Version Path
right_support-2.11.3 features/balancer_error_handling.feature
right_support-2.11.2 features/balancer_error_handling.feature
right_support-2.10.1 features/balancer_error_handling.feature
right_support-2.9.6 features/balancer_error_handling.feature
right_support-2.9.5 features/balancer_error_handling.feature
right_support-2.9.4 features/balancer_error_handling.feature
right_support-2.9.3 features/balancer_error_handling.feature
right_support-2.9.2 features/balancer_error_handling.feature
right_support-2.9.1 features/balancer_error_handling.feature
right_support-2.8.46 features/balancer_error_handling.feature
right_support-2.8.45 features/balancer_error_handling.feature
right_support-2.8.44 features/balancer_error_handling.feature
right_support-2.8.43 features/balancer_error_handling.feature
right_support-2.8.42 features/balancer_error_handling.feature
right_support-2.8.41 features/balancer_error_handling.feature
right_support-2.8.40 features/balancer_error_handling.feature
right_support-2.8.39 features/balancer_error_handling.feature
right_support-2.8.38 features/balancer_error_handling.feature
right_support-2.8.37 features/balancer_error_handling.feature
right_support-2.8.36 features/balancer_error_handling.feature