@@ -11,7 +11,6 @@ import (
11
11
"testing"
12
12
"time"
13
13
14
- "golang.org/x/crypto/ocsp"
15
14
"google.golang.org/grpc"
16
15
"google.golang.org/protobuf/types/known/emptypb"
17
16
"google.golang.org/protobuf/types/known/timestamppb"
@@ -25,6 +24,7 @@ import (
25
24
"github.com/letsencrypt/boulder/issuance"
26
25
blog "github.com/letsencrypt/boulder/log"
27
26
"github.com/letsencrypt/boulder/metrics"
27
+ "github.com/letsencrypt/boulder/revocation"
28
28
sapb "github.com/letsencrypt/boulder/sa/proto"
29
29
"github.com/letsencrypt/boulder/test"
30
30
)
@@ -278,7 +278,7 @@ func TestUpdateShard(t *testing.T) {
278
278
entries : []* corepb.CRLEntry {
279
279
{
280
280
Serial : "0311b5d430823cfa25b0fc85d14c54ee35" ,
281
- Reason : int32 (ocsp .KeyCompromise ),
281
+ Reason : int32 (revocation .KeyCompromise ),
282
282
RevokedAt : now ,
283
283
},
284
284
},
@@ -287,17 +287,17 @@ func TestUpdateShard(t *testing.T) {
287
287
entries : []* corepb.CRLEntry {
288
288
{
289
289
Serial : "0311b5d430823cfa25b0fc85d14c54ee35" ,
290
- Reason : int32 (ocsp .KeyCompromise ),
290
+ Reason : int32 (revocation .KeyCompromise ),
291
291
RevokedAt : now ,
292
292
},
293
293
{
294
294
Serial : "037d6a05a0f6a975380456ae605cee9889" ,
295
- Reason : int32 (ocsp .AffiliationChanged ),
295
+ Reason : int32 (revocation .AffiliationChanged ),
296
296
RevokedAt : now ,
297
297
},
298
298
{
299
299
Serial : "03aa617ab8ee58896ba082bfa25199c884" ,
300
- Reason : int32 (ocsp .Unspecified ),
300
+ Reason : int32 (revocation .Unspecified ),
301
301
RevokedAt : now ,
302
302
},
303
303
},
@@ -310,9 +310,9 @@ func TestUpdateShard(t *testing.T) {
310
310
test .AssertNotError (t , err , "updateShard" )
311
311
312
312
expectedEntries := map [string ]int32 {
313
- "0311b5d430823cfa25b0fc85d14c54ee35" : int32 (ocsp .KeyCompromise ),
314
- "037d6a05a0f6a975380456ae605cee9889" : int32 (ocsp .AffiliationChanged ),
315
- "03aa617ab8ee58896ba082bfa25199c884" : int32 (ocsp .Unspecified ),
313
+ "0311b5d430823cfa25b0fc85d14c54ee35" : int32 (revocation .KeyCompromise ),
314
+ "037d6a05a0f6a975380456ae605cee9889" : int32 (revocation .AffiliationChanged ),
315
+ "03aa617ab8ee58896ba082bfa25199c884" : int32 (revocation .Unspecified ),
316
316
}
317
317
for r := range bytes .SplitSeq (recordingUploader .crlBody , []byte ("\n " )) {
318
318
if len (r ) == 0 {
@@ -580,25 +580,25 @@ func TestAddFromStream(t *testing.T) {
580
580
yesterday := now .Add (- 24 * time .Hour )
581
581
simpleEntry := & corepb.CRLEntry {
582
582
Serial : "abcdefg" ,
583
- Reason : ocsp .CessationOfOperation ,
583
+ Reason : int32 ( revocation .CessationOfOperation ) ,
584
584
RevokedAt : timestamppb .New (yesterday ),
585
585
}
586
586
587
587
reRevokedEntry := & corepb.CRLEntry {
588
588
Serial : "abcdefg" ,
589
- Reason : ocsp .KeyCompromise ,
589
+ Reason : int32 ( revocation .KeyCompromise ) ,
590
590
RevokedAt : timestamppb .New (now ),
591
591
}
592
592
593
593
reRevokedEntryOld := & corepb.CRLEntry {
594
594
Serial : "abcdefg" ,
595
- Reason : ocsp .KeyCompromise ,
595
+ Reason : int32 ( revocation .KeyCompromise ) ,
596
596
RevokedAt : timestamppb .New (now .Add (- 48 * time .Hour )),
597
597
}
598
598
599
599
reRevokedEntryBadReason := & corepb.CRLEntry {
600
600
Serial : "abcdefg" ,
601
- Reason : ocsp .AffiliationChanged ,
601
+ Reason : int32 ( revocation .AffiliationChanged ) ,
602
602
RevokedAt : timestamppb .New (now ),
603
603
}
604
604
@@ -691,12 +691,12 @@ func TestAddFromStreamDisallowedSerialPrefix(t *testing.T) {
691
691
input := []* corepb.CRLEntry {
692
692
{
693
693
Serial : "abcdefg" ,
694
- Reason : ocsp .CessationOfOperation ,
694
+ Reason : int32 ( revocation .CessationOfOperation ) ,
695
695
RevokedAt : timestamppb .New (yesterday ),
696
696
},
697
697
{
698
698
Serial : "01020304" ,
699
- Reason : ocsp .CessationOfOperation ,
699
+ Reason : int32 ( revocation .CessationOfOperation ) ,
700
700
RevokedAt : timestamppb .New (yesterday ),
701
701
},
702
702
}
0 commit comments