ilanap | 637206b | 2018-02-04 17:06:22 +0200 | [diff] [blame^] | 1 | Feature: Example Rest Calls |
| 2 | Scenario: Call Rest CRUD |
| 3 | |
| 4 | # Following will override the server set in the config.json. Use ONLY during development |
| 5 | # Given Server host "localhost" |
| 6 | Given I want to create a VLM |
| 7 | Given I want to create a VSP with onboarding type "Manual" |
| 8 | |
| 9 | # do an update |
| 10 | Then I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}" |
| 11 | |
| 12 | # dealing with getting to the correct input data from the request |
| 13 | Then I want to remove "id" from the input data |
| 14 | Then I want to remove "version" from the input data |
| 15 | Then I want to remove "candidateOnboardingOrigin" from the input data |
| 16 | Then I want to remove "onboardingOrigin" from the input data |
| 17 | Then I want to remove "onboardingMethod" from the input data |
| 18 | Then I want to update the input property "description" with value "updated" |
| 19 | Then I want to update for path "/vendor-software-products/{item.id}/versions/{item.versionId}" with the input data from the context |
| 20 | |
| 21 | # do a create |
| 22 | Then I want to create input data |
| 23 | Then I want to update the input property "name" with a random value |
| 24 | Then I want to create for path "/vendor-software-products/{item.id}/versions/{item.versionId}/processes" with the input data from the context |
| 25 | Then I want to copy to property "lastProcessId" from response data path "value" |
| 26 | # do a delete |
| 27 | Then I want to delete for path "/vendor-software-products/{item.id}/versions/{item.versionId}/processes" with the value from saved property "lastProcessId" |
| 28 | |
| 29 | When I want to set property "lastProcessId" to value "NotExisting" |
| 30 | Then I want the following to fail |
| 31 | When I want to delete for path "/vendor-software-products/{item.id}/versions/{item.versionId}/processes" with the value from saved property "lastProcessId" |
| 32 | |
| 33 | Scenario: Create VLM through commands |
| 34 | When I want to set the input data to file "resources/json/createVLM.json" |
| 35 | Then I want to update the input property "vendorName" with a random value |
| 36 | Then I want to create for path "/vendor-license-models" with the input data from the context |