bug 1613422 - test fixups to avoid skipping regenerating some expired certificates r=jcj

See bug 1613275 and bug 1607845. In bug 1607845, the aim was to regenerate all
test certificates that would be expiring. Unfortunately, a few were missed:

 * build/pgo/certs/ certificate DBs and mochitest.client are regenerated in a
   different way than the rest of the certificates in bug 1607845. These would
   probably best be addressed by formally documenting the process of
   re-generating all of the certificates.

 * security/manager/ssl/tests/unit/test_certDB_import/ certificates were
   missed by mistake. It's unclear how this happened.

 * security/manager/ssl/tests/unit/test_intermediate_preloads/ were missed
   because there was no test_intermediate_preloads entry in the TEST_DIRS
   section of security/manager/ssl/tests/unit/moz.build, which means that the
   build system never knew to re-generate those certificates, even after
   un-commenting-out the contents of
   security/manager/ssl/tests/unit/test_intermediate_preloads/moz.build

 * security/manager/ssl/tests/unit/test_missing_intermediate/missing-intermediate.der
   was DER, not PEM, and we don't have a way to automatically re-generate DER
   certificates in the same way. However, it didn't even need to be DER.

Differential Revision: https://phabricator.services.mozilla.com/D61712

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Dana Keeler 2020-02-06 18:34:06 +00:00
Родитель e1515875b4
Коммит 984f708e43
3 изменённых файлов: 3 добавлений и 4 удалений

Просмотреть файл

@ -28,6 +28,7 @@ TEST_DIRS += [
'test_delegated_credentials_weak',
'test_ev_certs',
'test_intermediate_basic_usage_constraints',
'test_intermediate_preloads',
'test_keysize',
'test_keysize_ev',
'test_missing_intermediate',

Просмотреть файл

@ -53,15 +53,13 @@ function run_test() {
// Make BadCertAndPinningServer aware of the intermediate.
add_test(() => {
// NB: missing-intermediate.der won't be regenerated when
// missing-intermediate.pem is. Hopefully by that time we can just use
// missing-intermediate.pem directly.
let args = [
"-A",
"-n",
"manually-added-missing-intermediate",
"-i",
"test_missing_intermediate/missing-intermediate.der",
"test_missing_intermediate/missing-intermediate.pem",
"-a",
"-t",
",,",
];

Двоичный файл не отображается.