@@ -72,7 +72,7 @@ func init() {
7272}
7373
7474func BenchmarkCheckCert (b * testing.B ) {
75- checker := newChecker (nil , clock .New (), pa , kp , time .Hour , testValidityDurations , nil , blog .NewMock ())
75+ checker := newChecker (nil , clock .New (), pa , kp , time .Hour , testValidityDurations , nil , nil , linter. Config {}, blog .NewMock ())
7676 testKey , _ := ecdsa .GenerateKey (elliptic .P256 (), rand .Reader )
7777 expiry := time .Now ().AddDate (0 , 0 , 1 )
7878 serial := big .NewInt (1337 )
@@ -108,7 +108,7 @@ func TestCheckWildcardCert(t *testing.T) {
108108
109109 testKey , _ := rsa .GenerateKey (rand .Reader , 2048 )
110110 fc := clock .NewFake ()
111- checker := newChecker (saDbMap , fc , pa , kp , time .Hour , testValidityDurations , nil , blog .NewMock ())
111+ checker := newChecker (saDbMap , fc , pa , kp , time .Hour , testValidityDurations , nil , nil , linter. Config {}, blog .NewMock ())
112112 issued := checker .clock .Now ().Add (- time .Minute )
113113 goodExpiry := issued .Add (testValidityDuration - time .Second )
114114 serial := big .NewInt (1337 )
@@ -151,7 +151,7 @@ func TestCheckCertReturnsSANs(t *testing.T) {
151151 defer func () {
152152 saCleanup ()
153153 }()
154- checker := newChecker (saDbMap , clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , blog .NewMock ())
154+ checker := newChecker (saDbMap , clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , nil , linter. Config {}, blog .NewMock ())
155155
156156 certPEM , err := os .ReadFile ("testdata/quite_invalid.pem" )
157157 if err != nil {
@@ -218,7 +218,7 @@ func TestCheckCert(t *testing.T) {
218218 t .Run (tc .name , func (t * testing.T ) {
219219 testKey , _ := tc .key .genKey ()
220220
221- checker := newChecker (saDbMap , clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , blog .NewMock ())
221+ checker := newChecker (saDbMap , clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , nil , linter. Config {}, blog .NewMock ())
222222
223223 // Create a RFC 7633 OCSP Must Staple Extension.
224224 // OID 1.3.6.1.5.5.7.1.24
@@ -340,7 +340,7 @@ func TestGetAndProcessCerts(t *testing.T) {
340340 fc .Set (fc .Now ().Add (time .Hour ))
341341
342342 mocklog := blog .NewMock ()
343- checker := newChecker (saDbMap , fc , pa , kp , time .Hour , testValidityDurations , nil , mocklog )
343+ checker := newChecker (saDbMap , fc , pa , kp , time .Hour , testValidityDurations , nil , nil , linter. Config {}, mocklog )
344344 sa , err := sa .NewSQLStorageAuthority (saDbMap , saDbMap , nil , 0 , fc , blog .NewMock (), metrics .NoopRegisterer )
345345 test .AssertNotError (t , err , "Couldn't create SA to insert certificates" )
346346 saCleanUp := test .ResetBoulderTestDatabase (t )
@@ -426,7 +426,7 @@ func (db mismatchedCountDB) SelectOne(_ context.Context, holder any, _ string, _
426426func TestGetCertsEmptyResults (t * testing.T ) {
427427 saDbMap , err := sa .DBMapForTest (vars .DBConnSA )
428428 test .AssertNotError (t , err , "Couldn't connect to database" )
429- checker := newChecker (saDbMap , clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , blog .NewMock ())
429+ checker := newChecker (saDbMap , clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , nil , linter. Config {}, blog .NewMock ())
430430 checker .dbMap = mismatchedCountDB {}
431431
432432 batchSize = 3
@@ -453,7 +453,7 @@ func (db emptyDB) SelectOne(_ context.Context, holder any, _ string, _ ...any) e
453453// expected if the DB finds no certificates to match the SELECT query and
454454// should return an error.
455455func TestGetCertsNullResults (t * testing.T ) {
456- checker := newChecker (emptyDB {}, clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , blog .NewMock ())
456+ checker := newChecker (emptyDB {}, clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , nil , linter. Config {}, blog .NewMock ())
457457
458458 err := checker .getCerts (context .Background ())
459459 test .AssertError (t , err , "Should have gotten error from empty DB" )
@@ -499,7 +499,7 @@ func TestGetCertsLate(t *testing.T) {
499499 clk := clock .NewFake ()
500500 db := & lateDB {issuedTime : clk .Now ().Add (- time .Hour )}
501501 checkPeriod := 24 * time .Hour
502- checker := newChecker (db , clk , pa , kp , checkPeriod , testValidityDurations , nil , blog .NewMock ())
502+ checker := newChecker (db , clk , pa , kp , checkPeriod , testValidityDurations , nil , nil , linter. Config {}, blog .NewMock ())
503503
504504 err := checker .getCerts (context .Background ())
505505 test .AssertNotError (t , err , "getting certs" )
@@ -560,7 +560,7 @@ func TestIgnoredLint(t *testing.T) {
560560 err = loglist .InitLintList ("../../test/ct-test-srv/log_list.json" , false )
561561 test .AssertNotError (t , err , "failed to load ct log list" )
562562 testKey , _ := rsa .GenerateKey (rand .Reader , 2048 )
563- checker := newChecker (saDbMap , clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , blog .NewMock ())
563+ checker := newChecker (saDbMap , clock .NewFake (), pa , kp , time .Hour , testValidityDurations , nil , nil , linter. Config {}, blog .NewMock ())
564564 serial := big .NewInt (1337 )
565565
566566 x509OID , err := x509 .OIDFromInts ([]uint64 {1 , 2 , 3 })
@@ -642,7 +642,7 @@ func TestIgnoredLint(t *testing.T) {
642642}
643643
644644func TestPrecertCorrespond (t * testing.T ) {
645- checker := newChecker (nil , clock .New (), pa , kp , time .Hour , testValidityDurations , nil , blog .NewMock ())
645+ checker := newChecker (nil , clock .New (), pa , kp , time .Hour , testValidityDurations , nil , nil , linter. Config {}, blog .NewMock ())
646646 checker .getPrecert = func (_ context.Context , _ string ) ([]byte , error ) {
647647 return []byte ("hello" ), nil
648648 }
0 commit comments