Sha256: b11e5bf51fa297f49b6af0597129dda50d13f22f89ab475b04e075eacea5dba6

Contents?: true

Size: 772 Bytes

Versions: 7

Compression:

Stored size: 772 Bytes

Contents

Feature: Observe Web services via HTTP

  In order to observe Web services using Observed,
  I want to the observed-http plugin to send HTTP request and report the result via reporters

  Scenario: Create a .rb file containing Observed code and run it with the ruby command
    Given a file named "test.rb" with:
    """
    require 'observed'
    require 'observed/http'

    include Observed

    observe 'foo_1', via: 'http', with: {
      method: 'get',
      url: 'http://google.com',
      timeout_in_milliseconds: 1000
    }

    report /foo_\d+/, via: 'stdout'

    run 'foo_1'
    """
    When I run `ruby test.rb`
    Then the output should contain:
    """
    foo_1.success
    """
    Then the output should contain:
    """
    Get http://google.com
    """

Version data entries

7 entries across 7 versions & 2 rubygems

Version Path
observed-http-0.2.0 features/observe_web_services_via_http.feature
observed-0.2.0 plugins/observed-http/features/observe_web_services_via_http.feature
observed-http-0.2.0.rc1 features/observe_web_services_via_http.feature
observed-0.2.0.rc2 plugins/observed-http/features/observe_web_services_via_http.feature
observed-0.2.0.rc1 plugins/observed-http/features/observe_web_services_via_http.feature
observed-0.1.1 plugins/observed-http/features/observe_web_services_via_http.feature
observed-http-0.1.0 features/observe_web_services_via_http.feature