Skip to content

Commit

Permalink
RavenDB-22652 : add test for upgrading directly from version 60X
Browse files Browse the repository at this point in the history
  • Loading branch information
aviv committed Aug 15, 2024
1 parent c815463 commit 5eeecb1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/InterversionTests/MixedClusterTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,19 @@ public async Task UpgradeToLatest()
await ExecuteUpgradeTest(initialVersions, upgradeTo, suit, suit, suit);
}

[RavenMultiplatformTheory(RavenTestCategory.Interversion, RavenPlatform.Windows | RavenPlatform.Linux)]
[InlineData("6.0.104")]
public async Task UpgradeDirectlyFrom60X(string latest)
{
var initialVersions = new[] { latest, latest, latest };
var upgradeTo = new List<string>
{
"current"
};
var suit = new Version60X(this);
await ExecuteUpgradeTest(initialVersions, upgradeTo, suit, suit, suit);
}

[RavenMultiplatformTheory(RavenTestCategory.Interversion, RavenPlatform.Windows | RavenPlatform.Linux)]
[InlineData("5.4.5")]
[InlineData("5.4.109")]
Expand Down
7 changes: 7 additions & 0 deletions test/Tests.Infrastructure/InterversionTest/UpgradeTestSuit.cs
Original file line number Diff line number Diff line change
Expand Up @@ -215,4 +215,11 @@ public override async Task TestReplication(List<DocumentStore> stores)
stores[0].Database));
}
}

public class Version60X : Version54X
{
public Version60X(InterversionTestBase infrastructure) : base(infrastructure)
{
}
}
}

0 comments on commit 5eeecb1

Please sign in to comment.