feat: single setup, mass-pass progress, per-server homes, Desktop shares its library (owner review 5, v1.1.0) (#68)
CI / Build and test (push) Successful in 11m36s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 12s
Release / Build, test and publish (push) Successful in 14m56s
CI / PostgreSQL 16 integration (push) Successful in 10m11s
CI / PostgreSQL 17 integration (push) Successful in 10m15s
CI / Docker image (push) Successful in 45s
Release / Server image (push) Successful in 4m55s
CI / Build and test (push) Successful in 11m36s
CI / Windows tests and installer (push) Skipped
CI / YAML check (push) Successful in 12s
Release / Build, test and publish (push) Successful in 14m56s
CI / PostgreSQL 16 integration (push) Successful in 10m11s
CI / PostgreSQL 17 integration (push) Successful in 10m15s
CI / Docker image (push) Successful in 45s
Release / Server image (push) Successful in 4m55s
Co-authored-by: Alberto Balbo <alberto.balbo.96@gmail.com>
This commit was merged in pull request #68.
This commit is contained in:
1 parent
988068ee8e
commit
20d64af4a4
793 files changed
+23882
-2096
No files matched your search
@@ -18,11 +18,8 @@ public sealed class AppPathsTests(TestContext context)
|
||||
Assert.Equal(Path.Combine(app, "data", "chronos.db"), paths.DatabasePath);
|
||||
Assert.False(paths.IsInSyncedFolder);
|
||||
Assert.Null(paths.PortableSyncRoot);
|
||||
|
||||
paths.CreateDirectories();
|
||||
Assert.True(Directory.Exists(paths.LogsDirectory));
|
||||
Assert.True(Directory.Exists(paths.CacheDirectory));
|
||||
Assert.True(Directory.Exists(paths.ThumbnailsDirectory));
|
||||
Assert.Equal(Path.Combine(app, "data", "logs"), paths.LogsDirectory);
|
||||
Assert.Equal(Path.Combine(app, "data", "cache"), paths.CacheDirectory);
|
||||
}
|
||||
|
||||
[Test]
|
||||
@@ -50,22 +47,19 @@ public sealed class AppPathsTests(TestContext context)
|
||||
Assert.Equal(Path.Combine(local, "Chronos"), paths.DataRoot);
|
||||
Assert.Equal<string?>(oneDrive, paths.PortableSyncRoot);
|
||||
Assert.False(paths.IsInSyncedFolder);
|
||||
paths.CreateDirectories();
|
||||
Assert.True(Directory.Exists(paths.LogsDirectory));
|
||||
Assert.False(Directory.Exists(Path.Combine(app, "data")), "nothing is written into the synchronised folder");
|
||||
Assert.Equal(Path.Combine(local, "Chronos", "logs"), paths.LogsDirectory);
|
||||
}
|
||||
|
||||
[Test]
|
||||
public void DataInsideOneDriveIsReportedAndRefused()
|
||||
public void DataInsideOneDriveIsReported()
|
||||
{
|
||||
// Local application data inside a sync root: nowhere is safe, so nothing is created.
|
||||
// Local application data inside a sync root: nowhere is safe, and the app tells the user.
|
||||
var oneDrive = context.CreateTempDirectory("onedrive");
|
||||
var local = Directory.CreateDirectory(Path.Combine(oneDrive, "AppData", "Local")).FullName;
|
||||
|
||||
var paths = AppPaths.Resolve(context.CreateTempDirectory("app"), local, [oneDrive]);
|
||||
Assert.True(paths.IsInSyncedFolder);
|
||||
Assert.Equal<string?>(oneDrive, paths.SyncedFolder);
|
||||
Assert.Throws<InvalidOperationException>(paths.CreateDirectories);
|
||||
Assert.False(Directory.Exists(paths.DataRoot));
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user