Commit Graph

65 Commits

Author SHA1 Message Date
Swikriti Tripathi 4b78e06e04 Add acceptance tests for antivirus (#6405)
test on ci

test on ci

run on detached mode

add wait for clam

fix syntax

fix syntax

try without wait

add clamservice to steps

use different wait for command

put sleep

test

wait for clamav service

Clean up tests and enable other tests in the ci

address reviews

add documentation

add docs for docker

address reviews

refactor docs

remove user premission as it's by default root

capitalize the letters
2023-06-02 17:11:17 +05:45
Sawjan Gurung 14b11f24a6 [tests-only][full-ci] Change wrapper port from 5000 to 5200 (#6321)
* use port 5200 for wrapper API server

* remove binary and ignore the build
2023-05-16 15:40:06 +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
Sawjan Gurung 9945dad647 [POC][full-ci] Testing various oCIS env configurations (#6062)
* run api tests

* run ocis via wrapper

* add context, helpers and steps change ocis config

* remove separate pipelines for special test cases

* add context to behat config

* fix suite name

* set wrapper url while running tests

* fix cors allow env name

* address review

* add ociswrapper codebase

* add ci pipeline to build and cache wrapper

* add step to check ociswrapper cache

* invalidate wrapper cache and build new

* build on pipeline step

* undo unnecessary changes

* undo unnecessary changes

* fix php code

* fix ocis run command

* use tag for teardown

* exclude wrapper vendor in codacy check

* fix typos
2023-05-11 17:21:52 +05:45
Prajwol Amatya 1f8164c527 [tests-only] [full-ci] api test for email notification (#6145) 2023-05-10 14:03:52 +05:45
Phil Davis 08e3d46adf Cleanup code in TestHelpers 2023-05-09 19:59:06 +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
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
amrita d5f85350e4 Refactor api endpoint 2023-04-17 17:11:15 +05:45
Prajwol Amatya 16f8c49de9 [tests-only][full-ci]Forwardport json drill apispacesshares (#5965)
* Replace the key and value paris step with the current json assertion step

* Fix red CI for undefined step

---------

Co-authored-by: sagargurung1001@gmail.com <sagargurung1001@gmail.com>
2023-04-03 09:46:01 +05:45
Prarup Gurung 29a23ebb50 Merge pull request #5884 from owncloud/remove-occ-related-leftovers-master
[full-ci] [tests-only] Remove occ related leftovers `master`
2023-03-21 12:11:38 +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
Prarup Gurung 8b93c1b8f6 Removed occ related codes 2023-03-21 09:21:01 +05:45
Prarup Gurung 9f99d03fc8 Removed LoggingContext and LoggingHelper 2023-03-17 12:33:26 +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
Prarup Gurung 68ed280e27 Cleaned up orphaned methods in SetupHelper 2023-03-14 12:17:39 +05:45
Prarup Gurung 810b7b5279 Refactored code where SetupHelper::runOcc method is used 2023-03-14 12:17:31 +05:45
Prarup Gurung 32b9d0896e Removed, runOcc method from setupHelper 2023-03-14 12:17:21 +05:45
Prarup Gurung 06169628af Removed method isTestingOnOcis, and refactored code 2023-03-13 12:08:42 +05:45
Prarup Gurung 152f71ca3b Removed method isTestingOnOc10, and refactored code 2023-03-13 10:09:45 +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
Prarup Gurung fab9bfc734 Removed method isTestingOnOcisOrReva, and refactored its use 2023-03-09 14:25:15 +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
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 abc1a446ca [test-only] ApiTests. check group in the space request (#5492)
* check response

* fix test
2023-02-07 11:53:14 +01:00
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 62e347b788 Update GraphHelper.php 2023-01-23 15:20:32 +01:00
Viktor Scharf a4687cfc89 do not send mail in the body if the mail is empty 2023-01-23 15:20:32 +01:00
Viktor Scharf 7c9452768e [test-only] ApiTest. create tag (#5391)
* create tag

* split method

* fix after review
2023-01-17 12:41:56 +01:00
Saw-jan 669f93b239 debug requests before sending 2023-01-06 15:21:22 +05:45
Saw-jan 6e68fae2c3 fix sendException logic 2023-01-06 12:21:19 +05:45
Saw-jan 335144e50b add tests to check 425 too early behavior
add tests to check 425 too early behavior

add delay postprocessing suite pipeline

add step def
2023-01-06 11:47:35 +05:45
Saw-jan 0514ae1085 add missing helpers and context
remove core caching
2023-01-05 09:23:50 +05:45
Saw-jan 42fb4a68e4 fix: get test suites for core api tests
remove oc10 specific test suites

provide behat config with make command

fix typo

add missing helpers
2023-01-05 09:23:30 +05:45
Kiran Parajuli 35d4cb53ae Typo fixes on comments with reverting substr related changes
Signed-off-by: Kiran Parajuli <kiranparajuli589@gmail.com>
2023-01-05 09:21:34 +05:45
Kiran Parajuli 7d152e2ad1 Copied acceptance tests infrastructures from oC/core
Signed-off-by: Kiran Parajuli <kiranparajuli589@gmail.com>
2023-01-05 09:21:34 +05:45
Swikriti Tripathi 6a4ee395bf Adds tests for sending PATCH request to other user's space
Signed-off-by: Swikriti Tripathi <swikriti808@gmail.com>
2023-01-05 07:42:32 +05:45
Phil Davis d0087f98b8 Apply suggestions from code review 2022-12-30 17:32:21 +05:45
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