Skip to content

Commit a240104

Browse files
authored
api-test: check that report contains favorites (#2531)
1 parent 0c8829c commit a240104

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

tests/acceptance/features/apiContract/propfind.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ Feature: Propfind test
124124
@issue-1523
125125
Scenario: propfind response contains a restored folder with correct name
126126
Given user "Alice" has created a folder "folderMain" in space "Personal"
127+
And user "Alice" has marked folder "folderMain" as favorite from space "Personal"
127128
And user "Alice" has deleted folder "folderMain"
128129
And user "Alice" has created a folder "folderMain" in space "Personal"
129130
When user "Alice" restores the folder with original path "/folderMain" to "/folderMain (1)" using the trashbin API
@@ -136,10 +137,12 @@ Feature: Propfind test
136137
| oc:name | folderMain |
137138
| oc:permissions | RDNVCKZP |
138139
| oc:size | 0 |
140+
| oc:favorite | 0 |
139141
And as user "Alice" the PROPFIND response should contain a resource "folderMain (1)" with these key and value pairs:
140142
| key | value |
141143
| oc:fileid | %file_id_pattern% |
142144
| oc:file-parent | %file_id_pattern% |
143145
| oc:name | folderMain (1) |
144146
| oc:permissions | RDNVCKZP |
145147
| oc:size | 0 |
148+
| oc:favorite | 1 |

tests/acceptance/features/apiContract/sharesReport.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ Feature: REPORT request to Shares space
6262
| oc:privatelink | %base_url%/f/[0-9a-z-$%]+ |
6363
| d:getcontentlength | 34 |
6464
| oc:remote-item-id | %file_id_pattern% |
65+
6566
When user "Brian" searches for "testavatar.jpg" using the WebDAV API
6667
Then the HTTP status code should be "207"
6768
And the following headers should match these regular expressions

tests/acceptance/features/apiContract/spacesReport.feature

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Feature: REPORT request to project space
1515
@issue-10329
1616
Scenario: check the response of the searched file
1717
Given user "Alice" has uploaded a file inside space "findData" with content "some content" to "testFile.txt"
18+
And user "Alice" has marked file "testFile.txt" as favorite from space "findData"
1819
When user "Alice" searches for "testFile.txt" using the WebDAV API
1920
Then the HTTP status code should be "207"
2021
And the search result of user "Alice" should contain only these entries:
@@ -30,6 +31,7 @@ Feature: REPORT request to project space
3031
| oc:permissions | RDNVW |
3132
| oc:privatelink | %base_url%/f/[0-9a-z-$%]+ |
3233
| d:getcontentlength | 12 |
34+
| oc:favorite | 1 |
3335

3436
@issue-10329
3537
Scenario: check the response of the searched sub-file
@@ -54,6 +56,7 @@ Feature: REPORT request to project space
5456
@issue-10329
5557
Scenario: check the response of the searched folder
5658
Given user "Alice" has created a folder "folderMain" in space "findData"
59+
And user "Alice" has marked folder "folderMain" as favorite from space "findData"
5760
When user "Alice" searches for "folderMain" using the WebDAV API
5861
Then the HTTP status code should be "207"
5962
And the search result of user "Alice" should contain only these entries:
@@ -69,6 +72,7 @@ Feature: REPORT request to project space
6972
| oc:permissions | RDNVCK |
7073
| oc:privatelink | %base_url%/f/[0-9a-z-$%]+ |
7174
| oc:size | 0 |
75+
| oc:favorite | 1 |
7276

7377
@issue-10329
7478
Scenario: check the response of the searched sub-folder

0 commit comments

Comments
 (0)