Sha256: 0d0b3c957409c20ca0b734bfd8b0a7a819c1bf9795be473752a8381868adf05a
Contents?: true
Size: 1.06 KB
Versions: 2
Compression:
Stored size: 1.06 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": { "http_method": "GET", "path": "/api/hello", "headers": { "Accept": "application/json" }, "params": {} }, "response": { "status": 200, "headers": { "Content-Type": "application/json" }, "schema": { "description": "A simple response", "type": "object", "properties": { "message": { "type": "string" } } } } } """ When I successfully run `bundle exec rake pacto:validate['http://localhost:5000','tmp/aruba/contracts/simple_contract.json']` Then the stdout should contain: """" Validating contracts against host http://localhost:5000 OK! simple_contract.json 1 valid contract """
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pacto-0.4.0.rc3 | features/validate/validation.feature |
pacto-0.4.0.rc2 | features/validate/validation.feature |