Commit Graph

95 Commits

Author SHA1 Message Date
nirajacharya2
33eb024302 removing usage of a stepdefination inside another stepdefination in GraphContext.php (#9026) 2024-05-06 09:36:35 +05:45
Phil Davis
86b931f176 tests: code review of acceptance tests 2024-04-29 13:47:08 +05:45
Sawjan Gurung
2f32fa3e36 [tests-only] do not try to delete already deleted groups (#8886)
* fix(test): do not try to delete already deleted groups

* test: remove redundant steps

* test: fix php code style

* fix typo
2024-04-18 17:28:38 +05:45
Viktor Scharf
b51ba47e01 check email in the search sharee request (#8861) 2024-04-17 11:42:09 +02:00
Sabin Panta
25fa79d54a [tests-only][full-ci]added test for declining a share (#8636)
* added test for declining a share

* updated step definition for disabling user

* addressing review
2024-03-21 14:03:09 +05:45
nirajacharya2
fb1d93342c adding test for sharedWithMe endpoint for resource in project space (#8292) 2024-03-01 15:36:51 +05:45
Sawjan Gurung
3cea035d6d [tests-only] use new json schema assertion lib that supports latest schema drafts (#8503)
* test(api): use new json schema assertion lib that supports latest schema drafts

* test(api): fix json schema

* test(api): fix method call

* test(api): update expected failure lines

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): add custom schema validator

* test(api): make json array validation strict

* test(api): fix php code style

* test(api): update expected failure lines
2024-02-23 16:24:22 +05:45
Sagar Gurung
c3d895445e [tests-only][full-ci]Added tests to lists shared by me after sharee is deleted (#8450)
* Added tests to lists shared by me after sharee is deleted

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

* Refactor tests

* Review address

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

* Review address

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

---------

Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
2024-02-16 15:16:29 +05:45
Sawjan Gurung
94a7f189e0 rename list shares step (#8337) 2024-02-01 16:40:29 +05:45
Sagar Gurung
1281a730e8 [tests-only] Added test for sharingNg for endpoint sharedByMe from personal space (#8285)
* Added tests to list shared by me resources

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

* Review address

---------

Signed-off-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
2024-02-01 13:54:44 +05:45
Swikriti Tripathi
00717481f7 [tests-only]test: add test for shared with me (#8010)
* test: add test for shared with me

* test: add test for shared with me shared file

* add missing field and add test to expected to fail

* address review

* test: move file

* tests: make differente funtion for regex fileid pattern matching
2024-01-25 09:47:56 +05:45
nirajacharya2
448916a9dd [tests-only][full-ci] forward port user and group search tests (#8240)
* fixing json assertion for addUserToGroup.feature

* adding tests for searching groups as a normal user

* adding tests for searching user as a normal user

* fixing json assertion for removeUserFromGroup.feature

* fixing json assertion for listPermissions.feature
2024-01-18 15:14:10 +05:45
Nalem7
d14935ad78 [tests-only][full-ci] Restructure the steps implementation for group delete to use graph API endpoint (#8006)
* remove ocs endpoint from delete group

* remove adminHasDeletedGroupUsingTheGraphApi

* adressing reviews
2024-01-17 15:42:31 +05:45
Prarup Gurung
c3716d1039 Added test for sending share invitation to deleted user 2024-01-11 16:25:27 +05:45
Prarup Gurung
d69a916c12 Added test for sending share invitation to disabled user (#8174) 2024-01-11 11:31:55 +05:45
Prajwol Amatya
d2635cc4df added test to send share invitation to a deleted group (#8166) 2024-01-10 13:56:02 +01:00
Nalem7
8ce0417d4d remove ocs endpoint (#7864) 2023-12-19 14:25:56 +05:45
nirajacharya2
26411f1f3b re runing ci (#7811)
Co-authored-by: Nalem7 <61624650+nabim777@users.noreply.github.com>
2023-12-01 14:02:39 +05:45
Sabin Panta
4d14e048d9 added steps for group removal in provisioning.php files (#7380) 2023-11-29 10:35:55 +05:45
Swikriti Tripathi
580e8aeb46 tests: add api tests for changing system language using graph api (#7817) 2023-11-28 15:33:17 +05:45
Roman Perekhod
a6b75bc9f6 fix libre-graph status codes (#7705)
* fix libre-graph status codes

* owncloud-test-middleware bumped

---------

Co-authored-by: Roman Perekhod <rperekhod@owncloud.com>
2023-11-15 17:45:23 +01:00
nirajacharya2
cbfd894243 add query params to the log (#7493) (#7399)
Co-authored-by: Sawjan Gurung <saw.jan.grg3e@gmail.com>
2023-10-31 12:17:50 +05:45
Sabin Panta
cc1f93eef1 [tests-only][full-ci] refactoring the user delete code from ocs to graphapi (#7020)
* addressing the reviews

* addressing the review

* refactored test code

* updated expected failures file
2023-10-31 12:01:36 +05:45
Sabin Panta
1c6600365c [tests-only][full-ci] Refactoring all graphapi related featurefile wording (#7389)
* refactoring the feature file steps

* addressing review
2023-10-30 17:57:42 +05:45
Sabin Panta
dc3ed28696 [tests-only][full-ci] refactoring user addition to group to graphapi (#7360)
* changed user addition to group to graphapi

* addressing the review

* addressing review regarding nonexistent user

* addressing the review

* updated expected failures file

* changing code to make it pass in reva edge

* addressing review

* addressing review
2023-10-17 11:34:53 +05:45
Sabin Panta
37208139f4 addressing the review (#7372) 2023-10-11 15:55:26 +05:45
Sabin Panta
5efc3c51a1 [tests-only][full-ci] refactoring user creation Given steps from provisioning into GraphContext (#7019)
* refactored the user creation given statement from provisioning to graph api

added getUser steps that covers the steps for user with user light role

* added userlight step tests to check drive information and updated expected failure files

* added usercreation initiation code

* deleted seperate tests for user light role

* remove unnecesary changes

* add user not initialize step

* corrected the testcode

* moved the steps from graph to provisioning file

* fix creating single ldap user

* fix: user check method

* initialize user via graph

* addressing reviews

---------

Co-authored-by: Saw-jan <saw.jan.grg3e@gmail.com>
2023-09-06 09:22:38 +05:45
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