Commit Graph
20 Commits
Author SHA1 Message Date
nabim777 3be12a45c6 test: add tests for post processing command for different steps
Signed-off-by: nabim777 <nabinalemagar019@gmail.com>
2026-10-15 12:19:18 +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
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
Niraj Acharya 77ec7d1559 test: run tests on kubernetes with ociswrapper 2025-09-05 12:28:06 +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
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 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
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
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