Skip to content

Commit 55b63b0

Browse files
committed
Add back accidentally-deleted function
1 parent 5362a19 commit 55b63b0

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

testing/integration/upgrade_fleet_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -712,3 +712,19 @@ func copyFile(t *testing.T, srcPath, dstPath string) {
712712
err = dst.Sync()
713713
require.NoError(t, err, "Failed to sync dst file")
714714
}
715+
716+
func isFIPSCapableVersion(ver *version.ParsedSemVer) bool {
717+
// Versions prior to 8.19.0-SNAPSHOT are not FIPS-capable
718+
if ver.Less(*upgradetest.Version_8_19_0_SNAPSHOT) {
719+
return false
720+
}
721+
722+
// The 9.0.x versions are not FIPS-capable
723+
if ver.Major() == upgradetest.Version_9_0_0_SNAPSHOT.Major() &&
724+
ver.Minor() == upgradetest.Version_9_0_0_SNAPSHOT.Minor() {
725+
return false
726+
}
727+
728+
// All versions starting with 9.1.0-SNAPSHOT are FIPS-capable
729+
return true
730+
}

0 commit comments

Comments
 (0)