@@ -1522,8 +1522,6 @@ func TestLint(t *testing.T) {
1522
1522
// On purpose this template will trip the following lints:
1523
1523
// 1. e_sub_cert_aia_does_not_contain_ocsp_url because there is no OCSP URL.
1524
1524
// 2. e_dnsname_not_valid_tld because `.cert` is not a real TLD
1525
- // 3. w_serial_number_low_entropy because '1338' is a static constant <8
1526
- // bytes in length.
1527
1525
serial = big .NewInt (1338 )
1528
1526
jankyTemplate .SerialNumber = serial
1529
1527
jankyTemplate .Subject .CommonName = "www.janky.cert"
@@ -1554,11 +1552,10 @@ func TestLint(t *testing.T) {
1554
1552
name : "lint results above err level" ,
1555
1553
signer : lintSigner ,
1556
1554
lintErrLevel : lints .Notice ,
1557
- expectedErr : errors .New ("pre-issuance linting found 3 error results" ),
1555
+ expectedErr : errors .New ("pre-issuance linting found 2 error results" ),
1558
1556
expectedErrResults : map [string ]lints.LintResult {
1559
1557
"e_sub_cert_aia_does_not_contain_ocsp_url" : lints.LintResult {Status : 6 },
1560
1558
"e_dnsname_not_valid_tld" : lints.LintResult {Status : 6 },
1561
- "w_serial_number_low_entropy" : lints.LintResult {Status : 5 },
1562
1559
},
1563
1560
},
1564
1561
{
@@ -1576,12 +1573,11 @@ func TestLint(t *testing.T) {
1576
1573
signer : lintSigner ,
1577
1574
lintErrLevel : lints .Notice ,
1578
1575
ignoredLintMap : map [string ]bool {
1579
- "w_serial_number_low_entropy " : true ,
1576
+ "e_dnsname_not_valid_tld " : true ,
1580
1577
},
1581
- expectedErr : errors .New ("pre-issuance linting found 2 error results" ),
1578
+ expectedErr : errors .New ("pre-issuance linting found 1 error results" ),
1582
1579
expectedErrResults : map [string ]lints.LintResult {
1583
1580
"e_sub_cert_aia_does_not_contain_ocsp_url" : lints.LintResult {Status : 6 },
1584
- "e_dnsname_not_valid_tld" : lints.LintResult {Status : 6 },
1585
1581
},
1586
1582
},
1587
1583
}
0 commit comments