lego/acme/dns_challenge_dnsimple_test.go
2016-01-26 12:25:51 +01:00

17 lines
385 B
Go

package acme
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestNewDNSProviderDNSimpleValid(t *testing.T) {
_, err := NewDNSProviderDNSimple("example@example.com", "123")
assert.NoError(t, err)
}
func TestNewDNSProviderDNSimpleMissingCredErr(t *testing.T) {
_, err := NewDNSProviderDNSimple("", "")
assert.EqualError(t, err, "DNSimple credentials missing")
}