aboutsummaryrefslogtreecommitdiff
path: root/provider_test.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-03-07 14:04:10 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-03-07 14:04:10 +0100
commit2d5b6fc0ca29c3821fc47d48005f7eb9e6769b56 (patch)
tree6d66ba03f503386443456e305401386c34a3e408 /provider_test.go
parentea97e1d5cae714efd5fc0352d6f83f8f9ef707dd (diff)
Remove not up-to-date tests
Diffstat (limited to 'provider_test.go')
-rw-r--r--provider_test.go33
1 files changed, 0 insertions, 33 deletions
diff --git a/provider_test.go b/provider_test.go
deleted file mode 100644
index a839aaf..0000000
--- a/provider_test.go
+++ /dev/null
@@ -1,33 +0,0 @@
-package acme
-
-import (
- "io"
- "net/http"
- "net/http/httptest"
- "testing"
-)
-
-func TestDialProvider(t *testing.T) {
- nonce := `whatever`
- handler := func(w http.ResponseWriter, r *http.Request) {
- w.Header().Set("Replay-Nonce", nonce)
- w.Header().Set("Content-Type", "application/json")
- io.WriteString(w, `{"new-authz":"/acme/new-authz",
- "new-cert":"/acme/new-cert",
- "new-reg":"/acme/new-reg",
- "revoke-cert":"/acme/revoke-cert"}`)
- }
- ts := httptest.NewServer(http.HandlerFunc(handler))
- defer ts.Close()
- pro, err := DialProvider(ts.URL)
- if err != nil {
- t.Error(err)
- }
- n, err := pro.Nonce()
- if err != nil {
- t.Error(err)
- }
- if n != nonce {
- t.Error("expected", nonce, "got", n)
- }
-}