Sha256: d88ab46b638ce34a7a0daa7531c6745674fa3b8422ec5fd1e8226772467c1754

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

Feature: Validation

  Validation ensures that a external service conform to a Contract.

  Scenario: Validation via a rake task
    Given a file named "contracts/simple_contract.json" with:
      """
          {
          "request": {
            "method": "GET",
            "path": "/hello",
            "headers": { "Accept": "application/json" },
            "params": {}
          },

          "response": {
            "status": 200,
            "headers": { "Content-Type": "application/json" },
            "body": {
              "description": "A simple response",
              "type": "object",
              "properties": {
                "message": { "type": "string" }
              }
            }
          }
        }
      """
      When I successfully run `bundle exec rake pacto:validate['http://localhost:8000','tmp/aruba/contracts/simple_contract.json']`
      Then the output should contain:
        """"
        Validating contracts in directory tmp/aruba/contracts/simple_contract.json against host http://localhost:8000

        simple_contract.json: OK!
        1 valid contract
        """

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pacto-0.3.1 features/validate/validation.feature
pacto-0.3.0 features/validate/validation.feature