ipn/ipnlocal: add optional support for ACME Renewal Info (ARI) (#8599)

This commit is contained in:
Andrew Lytvynov
2023-07-13 14:29:59 -07:00
committed by GitHub
parent 354885a08d
commit 7a82fd8dbe
7 changed files with 88 additions and 36 deletions
+2 -1
View File
@@ -173,11 +173,12 @@ func TestShouldStartDomainRenewal(t *testing.T) {
want: false,
},
}
b := new(LocalBackend)
for _, tt := range testCases {
t.Run(tt.name, func(t *testing.T) {
reset()
ret, err := shouldStartDomainRenewal("example.com", now, mustMakePair(&x509.Certificate{
ret, err := b.shouldStartDomainRenewalByExpiry(now, mustMakePair(&x509.Certificate{
SerialNumber: big.NewInt(2019),
Subject: subject,
NotBefore: tt.notBefore,