Skip to content

Commit

Permalink
remove chertificate expiration test for old Thunderbird versions
Browse files Browse the repository at this point in the history
Those are not supported anymore, and they will not get any future
updates, so they will always have an expired signing certifiacte.
  • Loading branch information
striezel committed Jun 21, 2024
1 parent f64124c commit 73b7a79
Showing 1 changed file with 20 additions and 2 deletions.
22 changes: 20 additions & 2 deletions updater-test/software/Thunderbird78_Tests.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*
This file is part of the updater command line interface.
Copyright (C) 2017, 2021, 2022 Dirk Stolle
Copyright (C) 2017, 2021, 2022, 2024 Dirk Stolle
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -56,7 +56,25 @@ public void Test_info()
var languages = Thunderbird78.validLanguageCodes();
foreach (var languageCode in languages)
{
_info(new Thunderbird78(languageCode, false));
var sw = new Thunderbird78(languageCode, false);
Assert.IsNotNull(sw);
var info = sw.info();
Assert.IsNotNull(info);
// name must be set
Assert.IsFalse(string.IsNullOrWhiteSpace(info.Name));
// at least one installation information instance should be present
Assert.IsTrue((info.install32Bit != null) || (info.install64Bit != null));
// at least one regex should be present
Assert.IsTrue(!string.IsNullOrWhiteSpace(info.match32Bit) || !string.IsNullOrWhiteSpace(info.match64Bit));
// 32-bit information should match
Assert.AreEqual<bool>(info.install32Bit != null, !string.IsNullOrWhiteSpace(info.match32Bit));
// 64-bit information should match
Assert.AreEqual<bool>(info.install64Bit != null, !string.IsNullOrWhiteSpace(info.match64Bit));
// checksums should always be present, or at least a signature for verification
if (null != info.install32Bit)
Assert.IsTrue(info.install32Bit.hasChecksum() || info.install32Bit.hasVerifiableSignature());
if (null != info.install64Bit)
Assert.IsTrue(info.install64Bit.hasChecksum() || info.install64Bit.hasVerifiableSignature());
}
}

Expand Down

0 comments on commit 73b7a79

Please sign in to comment.