1 Feature: List items with various filters
3 Background: Init - create various items in order to test list items filters
4 Given I want to set the user to "cs0008"
5 Given I want to create a VLM
6 Then I want to copy to property "noPermissionDraftVlmId" from response data path "itemId"
8 Given I want to create a VLM
9 Then I want to copy to property "noPermissionCertifiedVlmId" from response data path "itemId"
10 And I want to submit this VLM
12 Given I want to set the user to "mb1001"
14 Given I want to create a VLM
15 Then I want to copy to property "draftVlmId" from response data path "itemId"
17 Given I want to create a VLM
18 Then I want to copy to property "certifiedVlmId" from response data path "itemId"
19 And I want to submit this VLM
21 Given I want to create a VLM
22 Then I want to copy to property "archivedDraftVlmId" from response data path "itemId"
23 And I want to archive this item
25 Given I want to create a VLM
26 Then I want to copy to property "archivedCertifiedVlmId" from response data path "itemId"
27 And I want to submit this VLM
28 And I want to archive this item
30 Given I want to create a VSP with onboarding type "NetworkPackage"
31 Then I want to copy to property "npDraftVspId" from response data path "itemId"
33 Given I want to create a VSP with onboarding type "Manual"
34 Then I want to copy to property "manualDraftVspId" from response data path "itemId"
36 Scenario: List workspace items - active, draft, editable by the user
37 When I want to get path "/items?itemStatus=ACTIVE&versionStatus=Draft&permission=Owner,Contributor"
39 Then I want to check that element in the response list with "id" equals to value of saved property "draftVlmId" exists
40 And I want to check that element in the response list with "id" equals to value of saved property "npDraftVspId" exists
41 And I want to check that element in the response list with "id" equals to value of saved property "manualDraftVspId" exists
43 But I want to check that element in the response list with "id" equals to value of saved property "noPermissionDraftVlmId" does not exist
44 And I want to check that element in the response list with "id" equals to value of saved property "noPermissionCertifiedVlmId" does not exist
45 And I want to check that element in the response list with "id" equals to value of saved property "certifiedVlmId" does not exist
46 And I want to check that element in the response list with "id" equals to value of saved property "archivedDraftVlmId" does not exist
47 And I want to check that element in the response list with "id" equals to value of saved property "archivedCertifiedVlmId" does not exist
49 Scenario: List catalog items - active, certified
50 When I want to get path "/items?itemStatus=ACTIVE&versionStatus=Certified"
52 Then I want to check that element in the response list with "id" equals to value of saved property "noPermissionCertifiedVlmId" exists
53 And I want to check that element in the response list with "id" equals to value of saved property "certifiedVlmId" exists
55 But I want to check that element in the response list with "id" equals to value of saved property "draftVlmId" does not exist
56 And I want to check that element in the response list with "id" equals to value of saved property "npDraftVspId" does not exist
57 And I want to check that element in the response list with "id" equals to value of saved property "manualDraftVspId" does not exist
58 And I want to check that element in the response list with "id" equals to value of saved property "noPermissionDraftVlmId" does not exist
59 And I want to check that element in the response list with "id" equals to value of saved property "archivedDraftVlmId" does not exist
60 And I want to check that element in the response list with "id" equals to value of saved property "archivedCertifiedVlmId" does not exist
62 Scenario: List archived certified items
63 When I want to get path "/items?itemStatus=ARCHIVED&versionStatus=Certified"
65 Then I want to check that element in the response list with "id" equals to value of saved property "archivedCertifiedVlmId" exists
67 But I want to check that element in the response list with "id" equals to value of saved property "archivedDraftVlmId" does not exist
68 And I want to check that element in the response list with "id" equals to value of saved property "noPermissionCertifiedVlmId" does not exist
69 And I want to check that element in the response list with "id" equals to value of saved property "certifiedVlmId" does not exist
70 And I want to check that element in the response list with "id" equals to value of saved property "draftVlmId" does not exist
71 And I want to check that element in the response list with "id" equals to value of saved property "npDraftVspId" does not exist
72 And I want to check that element in the response list with "id" equals to value of saved property "manualDraftVspId" does not exist
73 And I want to check that element in the response list with "id" equals to value of saved property "noPermissionDraftVlmId" does not exist
75 Scenario: List only active draft manual vsps + vlms owned by the user
76 When I want to get path "/items?itemStatus=ACTIVE&versionStatus=Draft&onboardingMethod=Manual&permission=Owner"
78 Then I want to check that element in the response list with "id" equals to value of saved property "draftVlmId" exists
79 And I want to check that element in the response list with "id" equals to value of saved property "manualDraftVspId" exists
81 But I want to check that element in the response list with "id" equals to value of saved property "npDraftVspId" does not exist
82 And I want to check that element in the response list with "id" equals to value of saved property "noPermissionDraftVlmId" does not exist
83 And I want to check that element in the response list with "id" equals to value of saved property "noPermissionCertifiedVlmId" does not exist
84 And I want to check that element in the response list with "id" equals to value of saved property "certifiedVlmId" does not exist
85 And I want to check that element in the response list with "id" equals to value of saved property "archivedDraftVlmId" does not exist
86 And I want to check that element in the response list with "id" equals to value of saved property "archivedCertifiedVlmId" does not exist