Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[stable10] Acceptance test for creating password with emoji #35431

Merged
merged 2 commits into from
Jun 5, 2019
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
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,20 @@ Feature: reset user password
And the HTTP status code should be "200"
And the content of file "textfile0.txt" for user "brand-new-user" using password "%alt1%" should be "ownCloud test text file 0" plus end-of-line
But user "brand-new-user" using password "%regular%" should not be able to download file "textfile0.txt"

@skipOnEncryptionType:user-keys @encryption-issue-57
Scenario Outline: reset user password including emoji
Given these users have been created:
| username | password | displayname | email |
| brand-new-user | %regular% | New user | brand.new.user@oc.com.np |
When the administrator resets the password of user "brand-new-user" to "<password>" using the provisioning API
Then the OCS status code should be "100"
And the HTTP status code should be "200"
And the content of file "textfile0.txt" for user "brand-new-user" using password "<password>" should be "ownCloud test text file 0" plus end-of-line
But user "brand-new-user" using password "%regular%" should not be able to download file "textfile0.txt"
Examples:
| password | comment |
| 😛 😜 | smileys |
| 🐶🐱 🐭 | Animals |
| ⌚️ 📱 📲 💻 | objects |
| 🚴🏿‍♀️ 🚴‍♂️ | cycling |
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,20 @@ Feature: reset user password
And the HTTP status code should be "200"
And the content of file "textfile0.txt" for user "brand-new-user" using password "%alt1%" should be "ownCloud test text file 0" plus end-of-line
But user "brand-new-user" using password "%regular%" should not be able to download file "textfile0.txt"

@skipOnEncryptionType:user-keys @encryption-issue-57
Scenario Outline: reset user password including emoji
Given these users have been created:
| username | password | displayname | email |
| brand-new-user | %regular% | New user | brand.new.user@oc.com.np |
When the administrator resets the password of user "brand-new-user" to "<password>" using the provisioning API
Then the OCS status code should be "200"
And the HTTP status code should be "200"
And the content of file "textfile0.txt" for user "brand-new-user" using password "<password>" should be "ownCloud test text file 0" plus end-of-line
But user "brand-new-user" using password "%regular%" should not be able to download file "textfile0.txt"
Examples:
| password | comment |
| 😛 😜 | smileys |
| 🐶🐱 🐭 | Animals |
| ⌚️ 📱 📲 💻 | objects |
| 🚴🏿‍♀️ 🚴‍♂️ | cycling |
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ Feature: Change Login Password

Scenario: New password is same as current password
When the user changes the password to "%alt1%" using the webUI
Then a password error message should be displayed on the webUI with the text "The new password cannot be the same as the previous one"
Then a password error message should be displayed on the webUI with the text "The new password cannot be the same as the previous one"