Skip to content

Commit c226e4a

Browse files
committed
style: fix gherkin format
1 parent ae276bd commit c226e4a

File tree

18 files changed

+56
-0
lines changed

18 files changed

+56
-0
lines changed

tests/acceptance/features/apiAntivirus/antivirus.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ Feature: antivirus
9292
| new |
9393
| spaces |
9494

95+
9596
Scenario Outline: public uploads a file with the virus to a public share
9697
Given using <dav-path-version> DAV path
9798
And the config "OCIS_SHARING_PUBLIC_SHARE_MUST_HAVE_PASSWORD" has been set to "false" for "sharing" service
@@ -117,6 +118,7 @@ Feature: antivirus
117118
| spaces | eicar.com | virusFile1.txt |
118119
| spaces | eicar_com.zip | virusFile2.zip |
119120

121+
120122
Scenario Outline: public uploads a file with the virus to a password-protected public share
121123
Given using <dav-path-version> DAV path
122124
And using SharingNG

tests/acceptance/features/apiCollaboration/wopi.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -925,6 +925,7 @@ Feature: collaboration (wopi)
925925
And as "Alice" file "testFolder/simple.odt" should not exist
926926
And as "Brian" file "Shares/testFolder/simple.odt" should not exist
927927

928+
928929
Scenario Outline: public user with permission edit/upload/createOnly creates odt file inside public folder using wopi endpoint
929930
Given user "Alice" has created folder "publicFolder"
930931
And user "Alice" has created the following resource link share:

tests/acceptance/features/apiDepthInfinity/propfind.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ Feature: PROPFIND with depth:infinity
7070
| new |
7171
| spaces |
7272

73+
7374
Scenario: get the list of resources in a folder shared through public link with depth infinity
7475
Given using SharingNG
7576
And the following configs have been set:
@@ -119,6 +120,7 @@ Feature: PROPFIND with depth:infinity
119120
| new |
120121
| spaces |
121122

123+
122124
Scenario: get the list of resources in a folder shared through public link with depth infinity when depth infinity is not allowed
123125
Given the following configs have been set:
124126
| service | config | value |

tests/acceptance/features/apiLocks/lockFiles.feature

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -466,6 +466,7 @@ Feature: lock files
466466
| spaces | shared |
467467
| spaces | exclusive |
468468

469+
469470
Scenario Outline: lock a file inside a folder shared by a link as anonymous user with edit permission
470471
Given using <dav-path-version> DAV path
471472
And using SharingNG
@@ -488,6 +489,7 @@ Feature: lock files
488489
| spaces | shared |
489490
| spaces | exclusive |
490491

492+
491493
Scenario Outline: try to lock a file inside a folder shared by a link as anonymous user with read permission
492494
Given using <dav-path-version> DAV path
493495
And using SharingNG
@@ -510,6 +512,7 @@ Feature: lock files
510512
| spaces | shared |
511513
| spaces | exclusive |
512514

515+
513516
Scenario Outline: lock a file shared by a link as anonymous user with edit permission
514517
Given using <dav-path-version> DAV path
515518
And using SharingNG

tests/acceptance/features/apiLocks/unlockFiles.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ Feature: unlock locked items
298298
And using new DAV path
299299
And user "Brian" should be able to upload file "filesForUpload/lorem.txt" to "Shares/textfile.txt"
300300

301+
301302
Scenario Outline: unlock a file as an anonymous user
302303
Given using <dav-path-version> DAV path
303304
And using SharingNG

tests/acceptance/features/apiSharingNgDriveLinkShare/updateDriveLinkShare.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ Feature: Update a link share for a resource
3838
"""
3939
And the public should be able to download file "textfile.txt" from the last link share with password "%public%" and the content should be "to share"
4040

41+
4142
Scenario: update password on a existing link share of a project-space drive using root endpoint
4243
And using spaces DAV path
4344
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API

tests/acceptance/features/apiSharingNgItemLinkShare/createLinkShareWithoutPasswordEnforce.feature

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,7 @@ Feature: Link share without enforcing password
8484
| Edit | edit |
8585
| Secure View | blocksDownload |
8686

87+
8788
Scenario: set password on existing file link share
8889
Given user "Alice" has uploaded file with content "other data" to "textfile1.txt"
8990
And user "Alice" has created the following resource link share:
@@ -186,6 +187,7 @@ Feature: Link share without enforcing password
186187
| Edit | edit |
187188
| Secure View | blocksDownload |
188189

190+
189191
Scenario: set password on a existing file link share inside project-space
190192
Given using spaces DAV path
191193
And the administrator has assigned the role "Space Admin" to user "Alice" using the Graph API

tests/acceptance/features/apiSharingNgLinkShareManagement/updateItemLinkShare.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,7 @@ Feature: Update a link share for a resource
205205
}
206206
"""
207207

208+
208209
Scenario: update password of a file's link share using permissions endpoint
209210
Given user "Alice" has uploaded file with content "other data" to "textfile1.txt"
210211
And user "Alice" has created the following resource link share:

tests/acceptance/features/apiSpaces/editPublicLinkOfSpace.feature

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Feature: A manager of the space can edit public link
2121
And user "Alice" has uploaded a file inside space "edit space" with content "some content" to "test.txt"
2222
And using SharingNG
2323

24+
2425
Scenario Outline: manager of the space can edit public link.
2526
Given using OCS API version "2"
2627
When user "Alice" updates the last public link share using the sharing API with

tests/acceptance/features/apiSpaces/publicLink.feature

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,29 @@ Feature: public link for a space
1414
| permissionsRole | View |
1515
And using SharingNG
1616

17+
1718
Scenario: public tries to upload a file in the public space
1819
When the public uploads file "test.txt" with content "test" using the public WebDAV API
1920
And the HTTP status code should be "403"
2021

22+
2123
Scenario: public tries to create a folder in the public space
2224
When the public creates folder "created-by-public" using the public WebDAV API
2325
And the HTTP status code should be "403"
2426

27+
2528
Scenario: public tries to delete a file in the public space
2629
Given user "Alice" has uploaded a file inside space "public space" with content "some content" to "test.txt"
2730
When the public deletes file "test.txt" from the last public link share using the public WebDAV API
2831
And the HTTP status code should be "403"
2932

33+
3034
Scenario: public tries to delete a folder in the public space
3135
And user "Alice" has created a folder "/public-folder" in space "public space"
3236
When the public deletes folder "public-folder" from the last public link share using the public WebDAV API
3337
And the HTTP status code should be "403"
3438

39+
3540
Scenario: public tries to change content of a resources in the public space
3641
Given user "Alice" has uploaded a file inside space "public space" with content "some content" to "test.txt"
3742
When the public overwrites file "test.txt" with content "public content" using the public WebDAV API

0 commit comments

Comments
 (0)