Remove debug statements.

This commit is contained in:
Mariano Cano 2019-03-08 17:29:18 -08:00
parent 67c79fd014
commit f17d2d9694
3 changed files with 0 additions and 7 deletions

View file

@ -3,7 +3,6 @@ package provisioner
import ( import (
"crypto/x509" "crypto/x509"
"errors" "errors"
"fmt"
"strings" "strings"
"testing" "testing"
"time" "time"
@ -178,7 +177,6 @@ func TestJWK_AuthorizeRenewal(t *testing.T) {
p2, err := generateJWK() p2, err := generateJWK()
assert.FatalError(t, err) assert.FatalError(t, err)
fmt.Printf("%#v\n", *p1.Claims.DisableRenewal)
// disable renewal // disable renewal
disable := true disable := true
p2.Claims = &Claims{ p2.Claims = &Claims{
@ -186,8 +184,6 @@ func TestJWK_AuthorizeRenewal(t *testing.T) {
DisableRenewal: &disable, DisableRenewal: &disable,
} }
fmt.Printf("%#v\n", *p1.Claims.DisableRenewal)
type args struct { type args struct {
cert *x509.Certificate cert *x509.Certificate
} }

View file

@ -113,7 +113,6 @@ func Test_keyStore_Get(t *testing.T) {
} }
for _, tt := range tests { for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) { t.Run(tt.name, func(t *testing.T) {
println(tt.name)
if gotKeys := tt.ks.Get(tt.args.kid); !reflect.DeepEqual(gotKeys, tt.wantKeys) { if gotKeys := tt.ks.Get(tt.args.kid); !reflect.DeepEqual(gotKeys, tt.wantKeys) {
t.Errorf("keyStore.Get() = %v, want %v", gotKeys, tt.wantKeys) t.Errorf("keyStore.Get() = %v, want %v", gotKeys, tt.wantKeys)
} }

View file

@ -4,7 +4,6 @@ import (
"crypto" "crypto"
"encoding/hex" "encoding/hex"
"encoding/json" "encoding/json"
"fmt"
"net/http" "net/http"
"net/http/httptest" "net/http/httptest"
"time" "time"
@ -290,7 +289,6 @@ func generateJWKServer(n int) *httptest.Server {
writeJSON(w, hits) writeJSON(w, hits)
case "/random": case "/random":
keySet := must(generateJSONWebKeySet(2))[0].(jose.JSONWebKeySet) keySet := must(generateJSONWebKeySet(2))[0].(jose.JSONWebKeySet)
fmt.Println(keySet)
w.Header().Add("Cache-Control", "max-age=5") w.Header().Add("Cache-Control", "max-age=5")
writeJSON(w, keySet) writeJSON(w, keySet)
default: default: