1
0
mirror of https://github.com/owncloud/ocis.git synced 2026-10-23 23:29:02 +03:00
Commit Graph

55 Commits

Author SHA1 Message Date
Pradip Subedi
a66ae6783d [tests-only][full-ci] test: fix flaky grouped email notification (#12882)
* test:start auth-bearer service separately instead of via OCIS_ADD_RUN_SERVICES

* test: fix timezone-dependent expiry assertions and flaky email notification

* test: simplify host timezone detection and log the UTC fallback

* test: oonly run cli commands test suite

* test: run all suites

* test: resolve the expiry timestamp in the timezone the mail was sent in

* test: inline the UTC expiration date conversion and drop the helper

* test: simplify the mail timezone formatter and restore the CI coverage guard
2026-10-01 16:37:56 +05:45
Pradip Subedi
d2187fb1cd [tests-only][full-ci] test: add missing wait for virus scan completion in uploadSessions scenario (#12904)
test: add missing wait for virus scan completion in uploadSessions scenario 121
2026-09-09 16:36:55 +05:45
Pradip Subedi
766e350ef9 [tests-only][full-ci] test(cli): add acceptance tests for the search optimize command (#12741)
* test(cli): add acceptance tests for the search optimize command

* test(cli): fix search retry loop passing limit as isVault

* test(cli): add empty-index optimize scenario and baseline search assertion

* test(cli): retry search only on 5xx and harden searchOptimize assertions
2026-09-08 16:34:35 +05:45
Pradip Subedi
58a0bd9dea [tests-only][full-ci] test(cli): add blobstore get and check CLI tests (#12505)
* test(cli): add blobstore check and get CLI test scenarios

* ci: add get blob step

* test(cli): add valid blob size, --path, by-ID, and malformed path blobstore tests

* test: include round-trip verifications

* test: swap check assertions from exact-match to substring-contains
2026-08-05 12:08:59 +05:45
Pradip Subedi
dfa342c96f [tests-only][full-ci]test(cli): add clean-orphaned-grants CLI test scenarios (#12470)
* test(cli): add clean-orphaned-grants CLI test scenarios

* test(cli): strengthen output assertions for clean-orphaned-grants scenarios

* test(cli): remove dry-mode test

* test: inline service account credential methods in CliContext

* test: implement creation of orphaned grants
2026-07-07 16:30:42 +05:45
Julian Koberg
ee264345ca feat(graph): [OCISDEV-807] add SpaceEditorWithoutVersionsWithoutTrashbin role
Adds a new space membership role "Can edit" that allows creating, uploading,
downloading, editing, moving and deleting on a space without access to file
versions or the trashbin. Also bumps reva to include the corresponding role
constructor.

Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-04-27 09:23:36 +02:00
Michal Klos
5e87222571 feat: [OCISDEV-744] build-and-test, lint, fix flakiness 2026-04-01 10:10:04 +02:00
Michal Klos
4c8039b6cd feat: [OCISDEV-744] build-and-test, lint, fix flakiness 2026-04-01 10:10:04 +02:00
Michal Klos
4f4fb4a3fb fix: flaky cli test (#12038) 2026-02-23 12:31:12 +01:00
kobergj
f983d554da Merge pull request #11898 from kobergj/FixSharingRoles
[OCISDEV-569] Fix Sharing-Roles
2026-01-22 12:54:49 +01:00
Michal Klos
81df263d27 fix: flaky cli test (#11947) 2026-01-22 10:51:06 +01:00
Julian Koberg
20a831f4f0 fix: adjust test to new wording
Signed-off-by: Julian Koberg <julian.koberg@kiteworks.com>
2026-01-21 15:16:46 +01:00
Ashim Shrestha
9013b4e724 Merge pull request #11010 from owncloud/test/test-for-flaky-share-expire-step
[tests-only][full-ci] Test for share expiration grouped emails
2025-11-05 17:29:49 +05:45
Ashim Shrestha
5c9924cd61 test: update step for resource expiration 2025-11-05 16:56:25 +05:45
Niraj Acharya
7a8ec7d0db test: add test to delete personal space 2025-10-31 11:54:01 +05:45
pradip
77a031527a test: add flaky step for resource expiration 2025-10-31 10:10:19 +05:45
Lukas Hirt
a917473ee8 fix: [OCISDEV-330] limit search only when scope is passed
Previously, the search service would limit the search
to the according space when searching `/dav/spaces/`.
This was not correct, as the search should be limited
to the according space when a `scope` is passed in the search pattern instead.
2025-09-24 10:47:11 +02:00
Niraj Acharya
77ec7d1559 test: run tests on kubernetes with ociswrapper 2025-09-05 12:28:06 +05:45
Nalem7
76b55d5775 Merge pull request #11575 from owncloud/tests/unified-roles
[test-only][full-ci] add tests on cli command for listing unified roles
2025-08-18 12:18:58 +05:45
Nalem7
d06ca73781 Merge pull request #11597 from owncloud/tests/postprocessing-cli-command
[tests-only][full-ci] add tests for postprocessing cli command
2025-08-15 15:44:59 +05:45
nabim777
07c02a6dec add tests for postprocessing cli command
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2025-08-15 12:40:17 +05:45
nabim777
7e06756924 add tests for resume specific failed upload using cli
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2025-08-13 14:59:10 +05:45
Prajwol Amatya
b4801f0bc7 add test for restart expired upload session 2025-06-20 12:22:55 +05:45
Saw-jan
b64384a205 test: refactor upload expired cli test scenario
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-06-19 10:31:27 +05:45
Saw-jan
795f1fa6c8 test: fix restarting upload sessions
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-06-19 09:31:17 +05:45
Prajwol Amatya
d5f7f233dd resume all uploads sessions 2025-06-16 11:31:53 +05:45
Saw-jan
24da404bb2 test: cleanup search data on each scenario
Signed-off-by: Saw-jan <saw.jan.grg3e@gmail.com>
2025-06-13 17:36:47 +05:45
amrita
c262bbdfa5 add tests for puring all expired trashe resources 2025-06-04 09:27:09 +05:45
amrita-shrestha
2a6bc483fa add tests for restoring specific and all trashed resource all once 2025-05-23 13:02:11 +05:45
amrita-shrestha
ddde07c734 add tests for listing trash resourced 2025-05-22 09:50:10 +05:45
amrita
6c9a98a7c4 add cli tests for listing stale upload 2025-05-08 16:07:45 +05:45
Michal Klos
84564e1b9a fix: test, file postprocessing flakyness
The file post processing logic for virus seems correct.
Test seems to have correct expectations.
The reason for random fails can be timing of results propagation.

Test CI output:
Scenario: list all upload sessions that are currently in postprocessing                            # /drone/src/tests/acceptance/features/cliCommands/uploadSessions.feature:25
    Given the following configs have been set:                                                       # OcisConfigContext::theConfigHasBeenSetToValue()
      | config                           | value     |
      | POSTPROCESSING_STEPS             | virusscan |
      | ANTIVIRUS_INFECTED_FILE_HANDLING | abort     |
    And user "Alice" has uploaded file "filesForUpload/filesWithVirus/eicar.com" to "/virusFile.txt" # FeatureContext::userHasUploadedAFileTo()
    And the config "POSTPROCESSING_DELAY" has been set to "10s"                                      # OcisConfigContext::theConfigHasBeenSetTo()
    And user "Alice" has uploaded file with content "uploaded content" to "/file1.txt"               # FeatureContext::userHasUploadedAFileWithContentTo()
    And user "Alice" has uploaded file with content "uploaded content" to "/file2.txt"               # FeatureContext::userHasUploadedAFileWithContentTo()
    When the administrator lists all the upload sessions with flag "processing"                      # CliContext::theAdministratorListsAllTheUploadSessions()
    Then the command should be successful                                                            # CliContext::theCommandShouldBeSuccessful()
    And the CLI response should contain these entries:                                               # CliContext::theCLIResponseShouldContainTheseEntries()
      | file1.txt |
      | file2.txt |
    And the CLI response should not contain these entries:                                           # CliContext::theCLIResponseShouldContainTheseEntries()
      | virusFile.txt |
      The resource 'virusFile.txt' was found in the response.
      Failed asserting that true is not true.
2025-04-02 13:54:50 +02:00
Niraj Acharya
ff68659b4e adding test for trying to create auth app-token without expiry using cli 2025-03-28 12:03:25 +05:45
pradip
1848e43f08 tests: grouped email notification using CLI command 2025-03-06 17:14:02 +05:45
Niraj Acharya
b5e5d9414c adding test for trying to create auth app-token for other user without impersonation env 2025-02-18 09:06:12 +05:45
Niraj Acharya
55d59d5b79 adding test for deleting auth token using cli
Co-authored-by: Prashant Gurung <53248463+prashant-gurung899@users.noreply.github.com>
2025-02-10 12:12:23 +05:45
Niraj Acharya
558839faa6 adding test for creating auth token for an app using cli 2024-12-24 09:56:07 +05:45
Niraj Acharya
c98841904d removing without skeleton files string from the user creation steps 2024-12-02 09:12:57 +05:45
prashant-gurung899
e40015c2e2 add test to upload via TUS by federated user
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-11-22 09:47:08 +05:45
Niraj Acharya
4dea245f80 adding test coverage for backup consistency 2024-11-07 10:32:35 +05:45
Prajwol Amatya
f3f53a27d9 added test to clean upload sessions that are not in postprocessing and not infected by virus 2024-10-24 15:19:25 +05:45
Prajwol Amatya
0a12fd9834 add test to clean upload sessions that are not processing 2024-10-22 12:49:30 +05:45
Saw-jan
f86d137f87 test: make remote.php configurable
test: build dav paths

test: fix paths

test: merge method args

test: add issue tags

test: add new expected failure file

test: merge expected-failure files before running tests
2024-10-21 16:57:58 +05:45
Prajwol Amatya
4475d1efc0 add test to restart upload sessions 2024-10-15 14:41:25 +05:45
Prajwol Amatya
c836695209 add tests for cli command uploads sessions 2024-10-08 12:09:53 +05:45
Sabin
381506ed86 cli test for delete empty trash bin directory 2024-07-25 09:36:00 +05:45
prashant-gurung899
89ca45bc80 add test to remove versions of files from space using space id
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-19 14:07:29 +05:45
ishabaral
a78d501fc0 search: reindex command for all spaces 2024-07-19 10:15:11 +05:45
Sabin
52a0c346c3 added test for updating admin password via cli 2024-07-18 12:07:54 +05:45
prashant-gurung899
22be9de42c add test to remove versions of a file using file id
Signed-off-by: prashant-gurung899 <prasantgrg777@gmail.com>
2024-07-18 10:33:46 +05:45