Skip to content

Commit

Permalink
Update RavenDB to 6.2.3 (#4765)
Browse files Browse the repository at this point in the history
* Update RavenDB to 6.2.3

* Amend self-contained Raven test as result of Raven installer layout change

* Update tools/download-ravendb-server.ps1

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>

---------

Co-authored-by: Daniel Marbach <daniel.marbach@openplace.net>
  • Loading branch information
DavidBoike and danielmarbach authored Jan 31, 2025
1 parent cd1ee31 commit f161819
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@
<PackageVersion Include="PropertyChanged.Fody" Version="4.1.0" />
<PackageVersion Include="PropertyChanging.Fody" Version="1.30.3" />
<PackageVersion Include="PublicApiGenerator" Version="11.4.1" />
<PackageVersion Include="RavenDB.Embedded" Version="6.2.0" />
<PackageVersion Include="RavenDB.Embedded" Version="6.2.3" />
<PackageVersion Include="ReactiveUI.WPF" Version="20.1.63" />
<PackageVersion Include="ServiceControl.Contracts" Version="5.0.0" />
<PackageVersion Include="System.Configuration.ConfigurationManager" Version="8.0.1" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,36 @@ class SelfContainedRavenDBTest
public void CheckForSelfContainedRavenDB()
{
bool isCI = Environment.GetEnvironmentVariable("CI") == "true";
bool isLocal = !isCI;

var ravenServerPath = Path.GetFullPath(Path.Combine(TestContext.CurrentContext.TestDirectory, "..", "..", "..", "..", "..", "deploy", "RavenDBServer"));
var ravenStudio = Path.Combine(ravenServerPath, "Raven.Studio.zip");
var ravenServerDll = Path.Combine(ravenServerPath, "Raven.Server.dll");
var ravenServerExe = Path.Combine(ravenServerPath, "Raven.Server.exe");
var offlineOperationsUtility = Path.Combine(ravenServerPath, "rvn.exe");

Assert.Multiple(() =>
try
{
Assert.That(ravenStudio, Does.Exist); // No matter what
Assert.That(File.Exists(ravenServerDll), Is.EqualTo(isLocal)); // Only in local development
Assert.That(File.Exists(ravenServerExe), Is.EqualTo(isCI)); // Only on CI
Assert.That(File.Exists(offlineOperationsUtility), Is.EqualTo(isCI)); // Only on CI
});
Assert.Multiple(() =>
{
Assert.That(ravenStudio, Does.Exist); // As of 6.2.3 this exists in embedded & self-contained versions
Assert.That(ravenServerDll, Does.Exist); // As of 6.2.3 this exists in embedded & self-contained versions
if (isCI)
{
// These may not exist on a local build and that's OK, but they must exist in a self-contained build
Assert.That(ravenServerExe, Does.Exist);
Assert.That(offlineOperationsUtility, Does.Exist);
}
});
}
catch (Exception)
{
TestContext.Out.WriteLine($"Contents of RavenServerPath {ravenServerPath}:");
foreach (var name in Directory.GetFileSystemEntries(ravenServerPath))
{
TestContext.Out.WriteLine($" * {name}");
}
throw;
}
}
}
}

0 comments on commit f161819

Please sign in to comment.