mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-12-05 04:04:35 +00:00
Renamed the settings of AI tasks (#1239)
This commit is contained in:
1 parent
d19d3d431b
commit
a117074972
109 files changed
+3929
-538
No files matched your search
@@ -105,6 +105,32 @@ public sealed class EnterpriseEncryptionExportFormatTests
|
||||
Assert.That(settingsManager.ConfigurationData.App.EnterpriseEncryptionExportFormat, Is.EqualTo(EnterpriseEncryptionFormat.V1));
|
||||
}
|
||||
|
||||
[Test]
|
||||
public async Task SettingsOfVersionV6FromBeforeTheChoiceKeepTheLegacyFormat()
|
||||
{
|
||||
await File.WriteAllTextAsync(this.SettingsPath, """{"Version": "V6"}""");
|
||||
|
||||
var settingsManager = CreateSettingsManager();
|
||||
await settingsManager.LoadSettings();
|
||||
|
||||
Assert.That(settingsManager.ConfigurationData.App.EnterpriseEncryptionExportFormat, Is.EqualTo(EnterpriseEncryptionFormat.V1));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Settings of version V6 were written by v26.10.1 and later as well, which store the format.
|
||||
/// </summary>
|
||||
[TestCase(EnterpriseEncryptionFormat.V1)]
|
||||
[TestCase(EnterpriseEncryptionFormat.V2)]
|
||||
public async Task AChosenFormatSurvivesTheMigrationOfVersionV6(EnterpriseEncryptionFormat format)
|
||||
{
|
||||
await File.WriteAllTextAsync(this.SettingsPath, $$$"""{"Version": "V6", "App": {"EnterpriseEncryptionExportFormat": "{{{format}}}"}}""");
|
||||
|
||||
var settingsManager = CreateSettingsManager();
|
||||
await settingsManager.LoadSettings();
|
||||
|
||||
Assert.That(settingsManager.ConfigurationData.App.EnterpriseEncryptionExportFormat, Is.EqualTo(format));
|
||||
}
|
||||
|
||||
[TestCase(EnterpriseEncryptionFormat.V1)]
|
||||
[TestCase(EnterpriseEncryptionFormat.V2)]
|
||||
public async Task AChosenFormatStays(EnterpriseEncryptionFormat format)
|
||||
|
||||
Reference in new issue
Block a user