Feature: createContract
Background:
Given content type is "application/json"
Scenario Outline: shouldCreateSimpleContract
Given request body from file <contractFile>
When the client performs POST request on api/contracts
Then status code is 202
And should wait at most 30 seconds with interval 1 seconds until property "status" equal to "SUCCEEDED"
And let variable "NextLocation" equal to header "Location" value
When the client performs GET request on {(NextLocation)}
Then status code is 200
And let variable "contractLink" equal to property "link.find{l->l.rel=='contract'}.href" value
And the client performs GET request on {(contractLink)}
Then status code is 200
And response contains properties from file <contractFile>
Examples:
| contractFile |
| contracts/jsonFiles/contractMinimalAttributes.json |
| contracts/jsonFiles/treatyContractSpecialSymbols.json |