mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-03-28 20:31:52 -04:00
* make user enable disable feature use graphapi * change the step definition code for user disable action * updated step definition code for user disable feature * updated user disable implementation * corrected the error of step implementation code
28 lines
1.1 KiB
Gherkin
28 lines
1.1 KiB
Gherkin
@api @issue-1328
|
|
Feature: share resources with a disabled user
|
|
As a user
|
|
I want to share resources to disabled user
|
|
So that I can make sure it doesn't work
|
|
|
|
Background:
|
|
Given user "Alice" has been created with default attributes and without skeleton files
|
|
And user "Alice" has uploaded file "filesForUpload/textfile.txt" to "/textfile0.txt"
|
|
|
|
@issue-2212
|
|
Scenario: creating a new share with a disabled user
|
|
Given using OCS API version "1"
|
|
And user "Brian" has been created with default attributes and without skeleton files
|
|
And user "Alice" has been disabled
|
|
When user "Alice" shares file "textfile0.txt" with user "Brian" using the sharing API
|
|
Then the OCS status code should be "997"
|
|
And the HTTP status code should be "401"
|
|
|
|
|
|
Scenario: creating a new share with a disabled user
|
|
Given using OCS API version "2"
|
|
And user "Brian" has been created with default attributes and without skeleton files
|
|
And user "Alice" has been disabled
|
|
When user "Alice" shares file "textfile0.txt" with user "Brian" using the sharing API
|
|
Then the OCS status code should be "997"
|
|
And the HTTP status code should be "401"
|