+4
-6
lines changedFilter options
+4
-6
lines changed Original file line number Diff line number Diff line change
@@ -9,18 +9,16 @@ import (
9
9
"crypto/x509/pkix"
10
10
"encoding/asn1"
11
11
"encoding/pem"
12
-
"io/ioutil"
12
+
"os"
13
13
"testing"
14
14
15
15
"github.com/cloudflare/cfssl/errors"
16
16
"github.com/cloudflare/cfssl/helpers"
17
17
)
18
18
19
-
//TestNew validate the CertificateRequest created to return with a KeyRequest
20
-
//in KeyRequest field
21
-
19
+
// TestNew validate the CertificateRequest created to return with a KeyRequest
20
+
// in KeyRequest field
22
21
func TestNew(t *testing.T) {
23
-
24
22
if cr := New(); cr.KeyRequest == nil {
25
23
t.Fatalf("Should create a new, empty certificate request with KeyRequest")
26
24
}
@@ -755,7 +753,7 @@ func TestBadReGenerate(t *testing.T) {
755
753
var testECDSACertificateFile = "testdata/test-ecdsa-ca.pem"
756
754
757
755
func TestExtractCertificateRequest(t *testing.T) {
758
-
certPEM, err := ioutil.ReadFile(testECDSACertificateFile)
756
+
certPEM, err := os.ReadFile(testECDSACertificateFile)
759
757
if err != nil {
760
758
t.Fatal(err)
761
759
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4