Sha256: 9742adb0b36a00c637d1aa0fbe4627286e3aa04116ccd15f4cfe1ea8abf0b396

Contents?: true

Size: 1.73 KB

Versions: 1

Compression:

Stored size: 1.73 KB

Contents

Feature: Status page

  The status page displays whether the diagnostic checks
  have passed, gave a warning, or failed.

  There is also a title that gives an overall status of the
  checks.

  Scenario: View the status page
    When I go to the status page
    Then I should be on the status page

  Scenario: A simple passing diagnostic check
    Given a diagnostic check named "mysql" with the following statuses:
      | passed | warning | failed |
      | true   | false   | false  |
    When I go to the status page
    Then I should see a passed diagnostic check named "mysql"
    And should see "All Systems Operational" as the title

  Scenario: Diagnostic checks that contain one warning check
    Given a diagnostic check named "mysql" with the following statuses:
      | passed | warning | failed |
      | true   | false   | false  |
    Given a diagnostic check named "postgresql" with the following statuses:
      | passed | warning | failed |
      | false  | true    | false  |
    When I go to the status page
    Then I should see a passed diagnostic check named "mysql"
    And should see a warning diagnostic check named "postgresql"
    And should see "Experiencing Issues" as the title

  Scenario: Diagnostic checks that contain one failing check
    Given a diagnostic check named "mysql" with the following statuses:
      | passed | warning | failed |
      | true   | false   | false  |
    Given a diagnostic check named "postgresql" with the following statuses:
      | passed | warning | failed |
      | false  | false   | true   |
    When I go to the status page
    Then I should see a passed diagnostic check named "mysql"
    And should see a failed diagnostic check named "postgresql"
    And should see "System Failure" as the title

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
diagnostics-0.0.2 spec_rails/rails2/features/status_page.feature