Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 11 additions & 11 deletions tests/acceptance/features/apiGuests/guests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: Guests
And user "guest" should be a guest user

Scenario: Cannot create a guest if a user with the same email address exists
Given user "existing-user" has been created with default attributes
Given user "existing-user" has been created with default attributes and skeleton files
And the administrator sends HTTP method "PUT" to OCS API endpoint "/cloud/users/existing-user" with body
| key | email |
| value | guest@example.com |
Expand All @@ -38,7 +38,7 @@ Feature: Guests

@mailhog
Scenario: A guest user can upload files
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And the administrator has created guest user "guest" with email "guest@example.com"
And the HTTP status code should be "201"
And user "user0" has created folder "/tmp"
Expand All @@ -49,7 +49,7 @@ Feature: Guests

@mailhog
Scenario: A guest user can upload chunked files
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And the administrator has created guest user "guest" with email "guest@example.com"
And the HTTP status code should be "201"
And user "user0" has created folder "/tmp"
Expand All @@ -65,7 +65,7 @@ Feature: Guests

@mailhog @issue-279
Scenario: A guest user can upload files
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And the administrator has created guest user "guest" with email "guest@example.com"
And the HTTP status code should be "201"
And user "user0" has created folder "/tmp"
Expand All @@ -91,7 +91,7 @@ Feature: Guests
@mailhog
Scenario: A guest user can upload files (async upload)
Given the administrator has enabled async operations
And user "user0" has been created with default attributes
And user "user0" has been created with default attributes and skeleton files
And the administrator has created guest user "guest" with email "guest@example.com"
And user "user0" has created folder "/tmp"
And user "user0" has shared folder "/tmp" with user "guest@example.com"
Expand All @@ -115,7 +115,7 @@ Feature: Guests

@mailhog
Scenario: A guest user can cancel a chunked upload
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And the administrator has created guest user "guest" with email "guest@example.com"
And the HTTP status code should be "201"
And user "user0" has created folder "/tmp"
Expand All @@ -131,7 +131,7 @@ Feature: Guests

@mailhog
Scenario: A guest user can upload a file and can reshare it
Given these users have been created with default attributes:
Given these users have been created with default attributes and skeleton files:
| username |
| user0 |
| user1 |
Expand All @@ -148,7 +148,7 @@ Feature: Guests

@mailhog
Scenario: A guest user cannot reshare files
Given these users have been created with default attributes:
Given these users have been created with default attributes and skeleton files:
| username |
| user0 |
| user1 |
Expand All @@ -170,7 +170,7 @@ Feature: Guests
And the HTTP status code should be "200"

Scenario: Check that skeleton is properly set
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
Then user "user0" should see the following elements
| /FOLDER/ |
| /PARENT/ |
Expand All @@ -184,7 +184,7 @@ Feature: Guests

@mailhog
Scenario: A created guest user can log in
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And the administrator has created guest user "guest" with email "guest@example.com"
And the HTTP status code should be "201"
And user "guest" should be a guest user
Expand Down Expand Up @@ -213,7 +213,7 @@ Feature: Guests

@mailhog
Scenario: A guest user can not create new guest users
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And the administrator has created guest user "guest" with email "guest@example.com"
And user "user0" has created folder "/tmp"
And user "user0" has shared folder "/tmp" with user "guest@example.com"
Expand Down
18 changes: 9 additions & 9 deletions tests/acceptance/features/webUIGuests/guests.feature
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Feature: Guests

@mailhog
Scenario: Guest user sets its own password
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And the administrator has created guest user "guest" with email "guest@example.com"
And user "user0" has created folder "/tmp"
And user "user0" has shared folder "/tmp" with user "guest@example.com"
Expand All @@ -18,7 +18,7 @@ Feature: Guests

@mailhog
Scenario: Guest user uses the link twice
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And the administrator has created guest user "guest" with email "guest@example.com"
And user "user0" has created folder "/tmp"
And user "user0" has shared folder "/tmp" with user "guest@example.com"
Expand All @@ -29,14 +29,14 @@ Feature: Guests

@mailhog
Scenario: User uses valid email to create a guest user
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has logged in using the webUI
When the user shares file "data.zip" with guest user with email "valid@email.com" using webUI
Then user "valid@email.com" should exist

@mailhog
Scenario: User uses some random string email to crete a guest user
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has logged in using the webUI
And the user has opened the share dialog for folder "lorem.txt"
When the user types "somestring" in the share-with-field
Expand All @@ -46,7 +46,7 @@ Feature: Guests

@mailhog
Scenario: User uses invalid email to create a guest user
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has logged in using the webUI
When the user shares file "testimage.jpg" with guest user with email "invalid@email.com()9876a" using webUI
Then dialog should be displayed on the webUI
Expand All @@ -56,7 +56,7 @@ Feature: Guests

@mailhog
Scenario: User tries to create a guest user via email with an already used email
Given these users have been created:
Given these users have been created with skeleton files:
| username | email |
| user0 | user0@oc.com |
| user1 | user1@oc.com |
Expand All @@ -68,7 +68,7 @@ Feature: Guests

@mailhog @issue-329
Scenario: User tries to create a guest user when a server email mode is not set
Given user "user1" has been created with default attributes
Given user "user1" has been created with default attributes and skeleton files
And user "user1" has logged in using the webUI
When the administrator deletes system config key "mail_smtpmode" using the occ command
And the user shares file "testimage.jpg" with guest user with email "valid@email.com" using webUI
Expand All @@ -93,7 +93,7 @@ Feature: Guests

@mailhog @issue-329
Scenario: User tries to create a guest user when a server email is invalid
Given user "user1" has been created with default attributes
Given user "user1" has been created with default attributes and skeleton files
And user "user1" has logged in using the webUI
When the administrator adds system config key "mail_smtphost" with value "conkey" using the occ command
And the user shares file "testimage.jpg" with guest user with email "valid@email.com" using webUI
Expand All @@ -114,7 +114,7 @@ Feature: Guests

@mailhog
Scenario Outline: User creates a guest user with email that contains capital letters
Given user "user0" has been created with default attributes
Given user "user0" has been created with default attributes and skeleton files
And user "user0" has logged in using the webUI
When the user shares file "data.zip" with guest user with email "<share-email>" using webUI
And the user logs out of the webUI
Expand Down