Skip to content

Commit 9f8585e

Browse files
committed
test: test coverage for trying to delete deleted user
1 parent 210f337 commit 9f8585e

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
@@ -287,6 +287,7 @@ public function theUserWaitsForTokenToExpire(int $number): void {
287287

288288
/**
289289
* @When user :user deletes federated connection with user :ocmUser using the Graph API
290+
* @When user :user tries to delete federated connection with user :ocmUser using the Graph API
290291
*
291292
* @param string $user
292293
* @param string $ocmUser

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

+3
Original file line numberDiff line numberDiff line change
@@ -328,5 +328,8 @@ The expected failures in this file are from features in the owncloud/ocis repo.
328328
#### [[OCM] Users can invite themselves to their own federated connection](https://github.com/owncloud/ocis/issues/11004)
329329
- [apiOcm/acceptInvitation.feature:148](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/acceptInvitation.feature#L148)
330330

331+
#### [OCM. delete-accepted-user endpoint always returns 200](https://github.com/owncloud/ocis/issues/10223)
332+
- [apiOcm/deleteFederatedConnections.feature:137](https://github.com/owncloud/ocis/blob/master/tests/acceptance/features/apiOcm/deleteFederatedConnections.feature#L137)
333+
331334
Note: always have an empty line at the end of this file.
332335
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)