Commit Graph
43 Commits
Author SHA1 Message Date
aureliandevel 8d8c068473 Adds unittest and live test for Backend tester. 2026-02-17 17:16:44 +11:00
Kenneth Skovhede cc26d28a41 Added support for testing Filen with MFA enabled 2026-01-26 17:27:49 +01:00
Kenneth Skovhede 76e582de18 More 9.0.6 fixes 2025-11-14 17:08:43 +01:00
Kenneth Skovhede 1ea74a3c63 Updated to .NET10 2025-11-14 15:05:39 +01:00
Kenneth SkovhedeandGitHub 6b56d07484 Merge pull request #6495 from duplicati/feature/downgrade-minio
Revert MinIO to version 6.0.0
2025-09-10 16:28:52 +02:00
Kenneth Skovhede 31eeebd69b Added support for retries in backend tester
This PR adds support for retries in the backend tester.

The CI tests have been updated to retry operations 3 times, which will hopefully make the CI tests more stable.
2025-09-10 14:47:23 +02:00
Kenneth Skovhede 6801d9b9a7 Don't print secrets in test 2025-09-10 14:24:54 +02:00
Kenneth Skovhede 36879d0512 chore: update tests logging package 2025-06-25 18:52:36 +02:00
Kenneth Skovhede 5bfaa87694 Fixed two nullable warnings in CI tests 2025-06-12 22:25:06 +02:00
marceloduplicatiandGitHub 61a1b7116d Update README.md
Updating status table of CI
2025-05-26 15:38:21 -03:00
Kenneth Skovhede c6327c0f1f Fixed copy-paste-issue 2025-05-24 10:56:33 +02:00
Kenneth SkovhedeandGitHub ca336ba0fa Merge branch 'master' into feature/remote-oauth-helper 2025-05-24 09:53:22 +02:00
Marcelo C. b15d643ede Add Cloudstack CI 2025-05-23 15:15:57 -03:00
Kenneth Skovhede 5758cee52f Fixed wrong name on env var 2025-05-23 13:08:46 +02:00
Kenneth Skovhede e6695056c8 Added GCS to CI testing 2025-05-23 13:06:01 +02:00
Kenneth SkovhedeandGitHub 478c214ae7 Merge branch 'master' into feature/add-jotta-cloud-to-ci 2025-05-23 10:44:22 +02:00
Marcelo C. 3a17870ea5 Adding JottaCloud to CI + CI Progress grid update 2025-05-22 11:55:23 -03:00
Kenneth Skovhede ebbb79b414 Updated progress page 2025-05-22 15:29:57 +02:00
Carl Johnsen 388e849324 Converted tabs to spaces 2025-05-16 10:25:08 +02:00
Carl Johnsen 8be97bcefd Whitespace changes 2025-05-16 10:22:51 +02:00
Marcelo C. a6d02cf3ed Adding Idrivee2 test classes 2025-05-09 09:42:25 -03:00
Marcelo C. 2acf475d3f Updating readme with variables & status table 2025-05-09 09:42:04 -03:00
Kenneth Skovhede a41c330b06 Added OneDrive to CI tests 2025-04-29 16:26:42 +02:00
Kenneth Skovhede c6b3b339ae Reverted wron file rename 2025-04-09 16:34:21 +02:00
Kenneth Skovhede c016bcaf26 Added CI tests for Filejump 2025-04-09 10:41:05 +02:00
Kenneth Skovhede 187641cdb2 Added CI test 2025-03-27 21:42:09 +01:00
Kenneth Skovhede 9821fa7935 Fixed casing and file rename 2025-03-22 07:49:29 +01:00
Kenneth Skovhede 1336cdbbae Rename CIFS to SMB with fallback 2025-03-21 10:26:01 +01:00
Marcelo C. 57335aadaf Fix to parameter name
Param is authid not auth-id
2025-03-06 16:40:09 -03:00
Marcelo C. 879af34970 Adding Box.com to CI 2025-03-04 19:07:28 -03:00
Marcelo C. def60a7e70 Adding B2 to CI
- Added B2 Test
- Updated ReadMe with backends status and variables
2025-02-18 15:34:22 -03:00
marceloduplicatiandGitHub f38d9a3d7e Terminal Adding CIFS to CI (#5971)
Adding CIFS to CI
2025-02-13 17:01:58 -03:00
Marcelo C. 24828d633b CIFS CI is not live, its in development 2025-02-13 15:53:46 -03:00
Marcelo C. c05ca31d6b Adding backend CI status on readme 2025-02-13 15:51:39 -03:00
Kenneth SkovhedeandGitHub f7b7555e87 Fixes for tests (#5918)
* Two small test fixes

* Ignore exceptions when comitting an empty transaction

* Attempt to fix FTP connection issue

* Unified test by having a single download function.
Added DNS probing call to attempt fixing sporadic DNS errors.

* Fixed argument order

* Avoid creating temp file during tests, if not needed
2025-01-28 08:55:28 +01:00
Marcelo C. 16627af766 Fixing the port range allocated for FTP tests 2025-01-27 14:06:50 -03:00
Kenneth SkovhedeandGitHub 997891525a Updated license-updater to update csproj files (#5898)
* Updated license-updater to update csproj files

* License updates
2025-01-22 21:04:19 +01:00
Kenneth SkovhedeandGitHub 9464caf622 Feature/update license 2025 (#5851)
* Fixed some minor whitespace issues

* Updated all copyright to 2025
2025-01-07 09:40:39 +01:00
marceloduplicatiandGitHub 99ee234640 Primary functionality implemented for CIFS (#5780)
* Primary functionality implemented for CIFS

This will add CIFS support to Duplicati.

One of the advantages is that the resource does not need to be mounted as the backend connects and authenticates directly to the resource via TCP/or Netbios over TCP.

The authentication supported is domain/username/password. At present integrated Windows authentication is not supported.

This implementation relies on SMBLibrary library (https://github.com/TalAloni/SMBLibrary).

* Fixes to XML documentation

* Implementing single CIFS connection + Fix on PutAsync

Single CIFS connection to avoid re-authentication on every operation.
Fix to PutAsync which only because apparent after file sizes were larger than _smb2Client.MaxWriteSize

* Adding CI tests for CIFS

The CI test for CIFS is self contained, requiring no environment variables. Also updated README.
2025-01-06 14:22:23 +01:00
Kenneth SkovhedeandGitHub 447c2b3238 Feature/improve ci testing (#5781)
* Added options to insert delays in backend tester

* Added wait delays to Azure and GoogleDrive to see it the CI is more stable with small delays

* Added more debug output to the backend tester

* Fixed dropbox reporting OAuth quota errors, when it is likely Dropbox API quota errors

* Implemented exception detection on AzureBlob backend

* Also showing sleep times in output

* Fixed a bug with the dropbox quota response

* Fixed error message to report correct number of files

* Fixed suppressed warning
2024-12-20 16:10:08 +01:00
Marcelo C. 248de1e72d Adding pCloud CI tests
# pCloud Backend Tester Behavior Investigation

## Overview
This is a draft PR investigating inconsistent behavior between normal Duplicati operation and the BackendTester tool when using the pCloud backend. GitHub Actions changes are intentionally excluded pending resolution of these issues.

## Current Behavior
1. **Normal Operation:**
   - Backups with pCloud on Duplicati work successfully
   - No warnings or errors are reported

2. **BackendTester Issues:**
   When `--disable-streaming-transfers` is **not** present, the following issues occur:
   - Upload failures with `NotSupportedException`
   - Files appear missing after successful upload
   - Download verification failures
   - Deletion errors for uploaded files

## Technical Details

### Upload Errors
```
Uploading file 0, 1,187 KB ... Failed to upload file 0
Error message: System.NotSupportedException: Specified method is not supported.
at Duplicati.CommandLine.BackendTester.NonSeekableStream.set_Position(Int64 value) in /_/Duplicati/CommandLine/BackendTester/NonSeekableStream.cs:line 50
at Duplicati.Library.Backend.pCloudBackend.PutAsync(String remotename, Stream input, CancellationToken cancellationToken) in /_/Duplicati/Library/Backend/pCloud/pCloudBackend.cs:line 253
at Duplicati.Library.Utility.Utility.Await(Task task) in /_/Duplicati/Library/Utility/Utility.cs:line 1478
at Duplicati.CommandLine.BackendTester.Program.Uploadfile(String localfilename, Int32 i, String remotefilename, IBackend backend, Boolean disableStreaming, Int64 throttle)
in /_/Duplicati/CommandLine/BackendTester/Program.cs:line 522, remote name: OxHqszSAo69UcPCPLdyJCXm
```

### Verification and File List Errors
```
Verifying file list ...
*** File with name OxHqszSAo69UcPCPLdyJCXm was uploaded but not found afterwards
*** File with name g7PSb3WOAHkKMZ-V2baVpBxLFR4MYMZRzDo- was uploaded but not found afterwards
```

### Download Errors
```
Downloading file 16 ... failed
*** Error: Duplicati.Library.Interface.FileMissingException: File not found.
 at Duplicati.Library.Backend.pCloudBackend.GetFileId(String filename) in /`/Duplicati/Library/Backend/pCloud/pCloudBackend.cs:line 317
 at Duplicati.Library.Backend.pCloudBackend.GetAsync(String remotename, Stream output, CancellationToken cancellationToken) in /_/Duplicati/Library/Backend/pCloud/pCloudBackend.cs:line 345
 at Duplicati.Library.Utility.Utility.Await(Task task) in /_/Duplicati/Library/Utility/Utility.cs:line 1478
 at Duplicati.CommandLine.BackendTester.Program.Run(List`1 args, Dictionary`2 options, Boolean first) in /_/Duplicati/CommandLine/BackendTester/Program.cs:line 372
Checking hash ... failed
*** Downloaded file was corrupt
```

### Deletion Errors
```
Deleting files...
*** Failed to delete file OxHqszSAo69UcPCPLdyJCXm, message: Duplicati.Library.Interface.FileMissingException: The requested file does not exist
 at Duplicati.Library.Backend.pCloudBackend.DeleteAsync(String remotename, CancellationToken cancellationToken) in /_/Duplicati/Library/Backend/pCloud/pCloudBackend.cs:line 402
 at Duplicati.CommandLine.BackendTester.Program.Run(List`1 args, Dictionary`2 options, Boolean first) in /_/Duplicati/CommandLine/BackendTester/Program.cs:line 407
*** Failed to delete file g7PSb3WOAHkKMZ-V2baVpBxLFR4MYMZRzDo-, message: Duplicati.Library.Interface.FileMissingException: The requested file does not exist
```

## Questions
1. Is it expected that BackendTester exits with return code 0 despite these errors?
2. Could this indicate an issue with either:
   - The BackendTester tool implementation
   - The pCloud backend implementation
   - The interaction between these components

## Additional Context
- These issues only appear in BackendTester scenarios
- Regular Duplicati operations with pCloud remain unaffected
- All errors appear related to file streaming/seeking behavior

Would appreciate insights on whether this is expected behavior or indicates a deeper issue that needs addressing.
2024-11-26 11:28:21 +01:00
Marcelo Ceccon 265cf205ca Adding escaping to environment variable 2024-10-30 13:04:55 +01:00
Marcelo Ceccon 1189bd2fb1 Adding Live backend tests
These tests are not unit tests but actual backup tests to backends (both cloud and self hosted containers).
2024-10-30 09:09:17 +01:00