blob: 3abe1a3cb879a525629fbd83d41867ffd810000f [file] [log] [blame]
talig4d0fac72018-04-16 08:50:56 +03001Feature: 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
siddharth0905c0b0f612019-01-24 14:01:46 +05306 And I want to check property "results[1]" for value "VspName"
7 And I want to check property "results[0]" for value "VlmName"
talig4d0fac72018-04-16 08:50:56 +03008
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