forked from TrueCloudLab/certificates
Remove debug statements.
This commit is contained in:
parent
67c79fd014
commit
f17d2d9694
3 changed files with 0 additions and 7 deletions
|
@ -3,7 +3,6 @@ package provisioner
|
|||
import (
|
||||
"crypto/x509"
|
||||
"errors"
|
||||
"fmt"
|
||||
"strings"
|
||||
"testing"
|
||||
"time"
|
||||
|
@ -178,7 +177,6 @@ func TestJWK_AuthorizeRenewal(t *testing.T) {
|
|||
p2, err := generateJWK()
|
||||
assert.FatalError(t, err)
|
||||
|
||||
fmt.Printf("%#v\n", *p1.Claims.DisableRenewal)
|
||||
// disable renewal
|
||||
disable := true
|
||||
p2.Claims = &Claims{
|
||||
|
@ -186,8 +184,6 @@ func TestJWK_AuthorizeRenewal(t *testing.T) {
|
|||
DisableRenewal: &disable,
|
||||
}
|
||||
|
||||
fmt.Printf("%#v\n", *p1.Claims.DisableRenewal)
|
||||
|
||||
type args struct {
|
||||
cert *x509.Certificate
|
||||
}
|
||||
|
|
|
@ -113,7 +113,6 @@ func Test_keyStore_Get(t *testing.T) {
|
|||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
println(tt.name)
|
||||
if gotKeys := tt.ks.Get(tt.args.kid); !reflect.DeepEqual(gotKeys, tt.wantKeys) {
|
||||
t.Errorf("keyStore.Get() = %v, want %v", gotKeys, tt.wantKeys)
|
||||
}
|
||||
|
|
|
@ -4,7 +4,6 @@ import (
|
|||
"crypto"
|
||||
"encoding/hex"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"net/http"
|
||||
"net/http/httptest"
|
||||
"time"
|
||||
|
@ -290,7 +289,6 @@ func generateJWKServer(n int) *httptest.Server {
|
|||
writeJSON(w, hits)
|
||||
case "/random":
|
||||
keySet := must(generateJSONWebKeySet(2))[0].(jose.JSONWebKeySet)
|
||||
fmt.Println(keySet)
|
||||
w.Header().Add("Cache-Control", "max-age=5")
|
||||
writeJSON(w, keySet)
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue