talig | 4d0fac7 | 2018-04-16 08:50:56 +0300 | [diff] [blame^] | 1 | Feature: Unique value |
| 2 | |
| 3 | Scenario: List unique types |
| 4 | When I want to get path "/unique-types" |
| 5 | Then I want to check property "listCount" for value 2 |
| 6 | And I want to check property "results[0]" for value "VspName" |
| 7 | And I want to check property "results[1]" for value "VlmName" |
| 8 | |
| 9 | Scenario: Get unique value - non existing type (negative) |
| 10 | Given I want the following to fail with error code "UNIQUE_TYPE_NOT_FOUND" |
| 11 | When I want to get path "/unique-types/nonExistingType/values/someValue" |
| 12 | |
| 13 | Scenario: Get unique value - non existing VLM name |
| 14 | When I want to get path "/unique-types/VlmName/values/nonExistingName" |
| 15 | Then I want to check property "occupied" to be false |
| 16 | |
| 17 | Scenario: Get unique value - non existing VSP name |
| 18 | When I want to get path "/unique-types/VspName/values/nonExistingName" |
| 19 | Then I want to check property "occupied" to be false |
| 20 | |
| 21 | Scenario: Get unique value - existing VLM name |
| 22 | Given I want to create a VLM |
| 23 | |
| 24 | When I want to get path "/unique-types/VlmName/values/{vlm.name}" |
| 25 | Then I want to check property "occupied" to be true |
| 26 | |
| 27 | Scenario: Get unique value - existing VSP name |
| 28 | Given I want to create a VLM |
| 29 | And I want to create a VSP with onboarding type "NetworkPackage" |
| 30 | And I want to get path "/vendor-software-products/{item.id}/versions/{item.versionId}" |
| 31 | |
| 32 | When I want to get path "/unique-types/VspName/values/{responseData.name}" |
| 33 | Then I want to check property "occupied" to be true |