Commit Graph

68 Commits

Author SHA1 Message Date
Viktor Scharf
f0d99683f0 expand createUser.feature (#6662) 2023-06-29 18:10:49 +02:00
Prajwol Amatya
0b67887e29 implement DRY principle (#6553) 2023-06-28 10:56:08 +05:45
Sagar Gurung
b18ac5d46b Use triats in correct way (#6430) 2023-06-02 14:36:05 +05:45
Prarup Gurung
09729552e3 Added GDPR report test for events.SpaceCreated (#6397) 2023-05-29 11:12:39 +05:45
Prarup Gurung
8d06acf030 Added api test for changing app role of user 2023-05-23 15:11:52 +05:45
Prarup Gurung
4b04870ade [full-ci] [tests-only] unassign app role assignment of user (#6030)
* Added scenario to unassign the role of user

* Added scenario,admin tries to unassign the own role

* Addressed reviews

* refactor

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
2023-05-15 10:45:24 +02:00
Sagar Gurung
3e60706b30 [tests-only][full-ci]Added GDPR export for quota update, export another users GDPR (#6249)
* Added GDPR export for quota update, another user tries to export

* PR address
2023-05-10 11:37:13 +05:45
Phil Davis
9b9d88e7d6 Cleanup acceptance tests (#6195) 2023-05-02 17:25:56 +05:45
Sagar Gurung
579dcd082a [tests-only]Added GDPR export. check events when user is created (#6106)
* Added GDPR export for event upload file

* Add for user created events for GDPR export

* Add for user information assertion

* Review Address
2023-04-27 16:04:17 +05:45
Phil Davis
24699b5678 Improve words in some test steps that check API responses 2023-04-24 10:58:05 +05:45
Prajwol Amatya
e0b6ca0e29 [tests-only][full-ci] api test to get personal drive information of other users (#6018)
* api test to get personal drive information of other users

* fix the broken personal drive listing

* removed scenario from expected failure after issue fixed

---------

Co-authored-by: Michael Barz <mbarz@owncloud.com>
2023-04-21 16:59:16 +05:45
Phil Davis
7fb93058cf tidy up acceptance tests 2023-04-21 14:59:50 +05:45
Swikriti Tripathi
7db5b86bd4 Refactor the syntax of the scenarios in local API tests 2023-04-20 15:32:15 +05:45
amrita
d5f85350e4 Refactor api endpoint 2023-04-17 17:11:15 +05:45
Sagar Gurung
b52597d6d1 [tests-only][full-ci]Json assertion apigraph master branch (#5989)
* Json assertion for api graph suite

* Review Address
2023-04-05 14:05:34 +05:45
Amrita
76cc388e45 Expand tests scenario for adding multiple user at once (#5864) (#5963) 2023-03-31 08:59:25 +05:45
Amrita
63ba5613c0 [tests-only][full-ci]Extend tests coverage for different role capability for group (#5742)
* Extend tests coverage for different role capability for group

* Remove unwanted scenario

* Change http status code
2023-03-28 09:09:37 +05:45
Prajwol Amatya
1e5bf171fe [tests-only][full-ci] Forwardport test for send wrong host for adding user in group (#5932)
* added test for admin trying to add user with wrong host

* added test for adding single user to a group with invalid hostname
2023-03-27 15:47:55 +05:45
Prajwol Amatya
264aacca8f test for adding users to a group using invalid JSON (#5931) 2023-03-27 10:41:21 +05:45
Amrita
71011fc4aa [full-ci][tests-only]Expand tests coverage related to user with different role (#5725)
* Refactor tests related to different role

* Use setResponse from When step
2023-03-21 10:03:51 +05:45
Amrita
15a4941281 Add tests to add user in a group at once (#5831) 2023-03-15 13:58:04 +05:45
Prajwol Amatya
e836b2d138 added test for getting details of a single group (#5760)
addressed reviews

updated steps with JSON drill-down functionality

reviews addressed

fixed linter error

conflicts resolved

fixed errors

addressed reviews
2023-03-15 12:10:59 +05:45
Viktor Scharf
94c3df2246 [test-only] add test to filter or (#5771)
* add test to filter or

* lint
2023-03-10 09:05:00 +01:00
Viktor Scharf
8560015c18 [test-only] add api tests to editing user name (#5769)
* add tests to edit user name

* style fix

* fix after review
2023-03-10 09:02:33 +01:00
Swikriti Tripathi
249adc7cd7 Seperate test steps for positive and negative cases (#5773)
fix php style

use the correct step

fix other steps

fix other php style

remove unwanted param

Refactor test function for handeling errors

fix return types

clean up code

address reviews
2023-03-09 16:21:50 +05:45
Amrita
8bd4c3a9a2 Add tests to add user in a group at once (#5743) 2023-03-07 14:36:04 +05:45
Viktor Scharf
1e1b4379ae [test-only] ApiTest. Disable/enable user (#5639) 2023-03-06 16:52:55 +05:45
Amrita
4377754573 [tests-only][full-ci]Extend tests related to assign role (#5584)
* Extend assign role test coverage

* Check app Entity has been set or not
2023-03-03 09:17:34 +05:45
Sagar Gurung
028ca42fed Forward port getallgroupmemberswithallmembers to master (#5658)
* Added graph API test for getting all groups along with its members

Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>

* Refactor implementation code

Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>

* PR address

Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>

* Update the local api expected to failure

* Review Address

---------

Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
2023-02-27 11:16:50 +05:45
amrita
0b71d10c37 Add graph api tests for assign role 2023-02-23 15:34:11 +05:45
Viktor Scharf
56d3192fc7 [test-only] ApiTest. test for filter appRoleAssigment (#5629)
* add test for filter

* fixed typos
2023-02-23 09:53:12 +01:00
Viktor Scharf
3e3d3f9de2 [test-only] ApiTest. get users of members of several groups (#5575)
* get users with group filter

* fix test
2023-02-16 16:34:13 +01:00
Viktor Scharf
139cf79f61 [test-only] Api test. get applications list. (#5529) 2023-02-13 09:38:04 +05:45
Viktor Scharf
0bf121d2e2 [test-only] api tests for getting group info of user (#5476)
* add tests for geting group info

* more tests
2023-02-01 08:41:16 +01:00
Viktor Scharf
9bdd1e9ce9 [test-only] apiTest. Delete group from the space (#5365)
* add test

* add empty line
2023-01-10 12:03:52 +01:00
sagargurung1001@gmail.com
b9fda28235 Review address for separate functon 2022-12-30 17:31:35 +05:45
sagargurung1001@gmail.com
a05a746297 Addressed review 2022-12-30 17:31:35 +05:45
sagargurung1001@gmail.com
1874280a56 Addressed review 2022-12-30 17:31:35 +05:45
sagargurung1001@gmail.com
e15afb04d4 Implement user drive information 2022-12-30 17:31:35 +05:45
sagargurung1001@gmail.com
46575abe11 Drive infor assertion 2022-12-30 17:31:35 +05:45
sagargurung1001@gmail.com
265db41819 remove before 2022-12-30 17:31:35 +05:45
sagargurung1001@gmail.com
c80e773234 Added drive info check 2022-12-30 17:31:35 +05:45
sagargurung1001@gmail.com
6ff9d6196f Added expected to failure file 2022-12-30 17:31:35 +05:45
sagargurung1001@gmail.com
9f0a22af7e Added test for getting user information by admin using Graph API 2022-12-30 17:31:35 +05:45
Prarup Gurung
00efd8af2e [full-ci] [tests-only] Added api test for edit user using graph API (#5150) 2022-12-14 14:15:18 +05:45
Jörn Friedrich Dreyer
d359a7c2cf [full-ci] standalone graph service with LDAP (#5199)
* standalone graph service with LDAP

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* no panic on PATCH and DELETE

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix apitoken yaml key

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* update user, fix response codes

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix group creation return code

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* remove unknown user property

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* fix create return code checks in graph feature context

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* updating uses 200 OK when returning a body

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* revert user statusCreated change for now

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

* revert return code changes

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>

Signed-off-by: Jörn Friedrich Dreyer <jfd@butonic.de>
2022-12-12 12:46:10 +01:00
Prarup Gurung
ad66bf2d1f [full-ci] [tests-only] Added api test for delete user using graph API (#5102)
* Added api test for delete user using graph API

* Added scenario, admin user tries to delete another admin user

* Added scenario, delete user with username having different case

* Addressed reviews
2022-11-30 14:09:09 +01:00
sagargurung1001@gmail.com
4124173a51 Review Address 2022-11-29 11:54:28 +05:45
sagargurung1001@gmail.com
9813fe2841 Replace asserting userID with regex match 2022-11-28 14:34:23 +05:45
sagargurung1001@gmail.com
82049df3ee Refactored and added test to get user information with GraphAPI 2022-11-28 14:34:23 +05:45