11package dvls
22
33import (
4- "fmt"
54 "io"
65 "os"
76 "reflect"
@@ -35,9 +34,9 @@ func Test_EntryCertificate(t *testing.T) {
3534 expiration := time .Date (2099 , 1 , 1 , 0 , 0 , 0 , 0 , location )
3635 testCertificateEntry .Expiration = expiration
3736
38- t .Run ("GetEntry" , test_GetCertificateEntry )
3937 t .Run ("NewCertificateFile" , test_NewCertificateEntryFile )
4038 t .Run ("NewCertificateURL" , test_NewCertificateEntryURL )
39+ t .Run ("GetEntry" , test_GetCertificateEntry )
4140 t .Run ("UpdateEntry" , test_UpdateCertificateEntry )
4241 t .Run ("DeleteEntry" , test_DeleteCertificateEntry )
4342}
@@ -151,6 +150,7 @@ func test_NewCertificateEntryURL(t *testing.T) {
151150 if ! reflect .DeepEqual (entry , newEntry ) {
152151 t .Fatalf ("fetched entry did not match test entry. Expected %#v, got %#v" , entry , newEntry )
153152 }
153+ testCertificateEntry = entry
154154}
155155
156156func test_UpdateCertificateEntry (t * testing.T ) {
@@ -177,8 +177,6 @@ func test_UpdateCertificateEntry(t *testing.T) {
177177}
178178
179179func test_DeleteCertificateEntry (t * testing.T ) {
180- fmt .Println (testNewCertificateEntryURL .ID )
181- fmt .Println (testNewCertificateEntryFile .ID )
182180 err := testClient .Entries .Certificate .Delete (testNewCertificateEntryURL .ID )
183181 if err != nil {
184182 t .Fatal (err )
0 commit comments