Skip to content

Commit 935ba4c

Browse files
committed
test: test coverage for trying to delete deleted user
1 parent 1865f15 commit 935ba4c

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

tests/acceptance/bootstrap/OcmContext.php

+1
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,7 @@ public function theUserWaitsForTokenToExpire(int $number): void {
264264

265265
/**
266266
* @When user :user deletes federated connection with user :ocmUser using the Graph API
267+
* @When user :user tries to delete federated connection with user :ocmUser using the Graph API
267268
*
268269
* @param string $user
269270
* @param string $ocmUser

tests/acceptance/expected-failures-localAPI-on-OCIS-storage.md

+3
Original file line numberDiff line numberDiff line change
@@ -325,5 +325,8 @@ The expected failures in this file are from features in the owncloud/ocis repo.
325325
- [apiServiceAvailability/serviceAvailabilityCheck.feature:120](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiServiceAvailability/serviceAvailabilityCheck.feature#L120)
326326
- [apiServiceAvailability/serviceAvailabilityCheck.feature:131](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiServiceAvailability/serviceAvailabilityCheck.feature#L131)
327327

328+
#### [OCM. delete-accepted-user endpoint always returns 200](https://github.com/owncloud/ocis/issues/10223)
329+
- [apiOcm/deleteFederatedConnections.feature:137](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/deleteFederatedConnections.feature#L137)
330+
328331
Note: always have an empty line at the end of this file.
329332
The bash script that processes this file requires that the last line has a newline on the end.

tests/acceptance/features/apiOcm/deleteFederatedConnections.feature

+10
Original file line numberDiff line numberDiff line change
@@ -132,3 +132,13 @@ Feature: delete federated connections
132132
}
133133
}
134134
"""
135+
136+
@issue-10223
137+
Scenario: federated user tries to delete previously deleted federated connection
138+
Given using server "LOCAL"
139+
And "Alice" has created the federation share invitation
140+
And using server "REMOTE"
141+
And "Brian" has accepted invitation
142+
And user "Brian" has deleted federated connection with user "Alice"
143+
When user "Brian" tries to delete federated connection with user "Alice" using the Graph API
144+
Then the HTTP status code should be "404"

0 commit comments

Comments
 (0)