lego/acme/dns_challenge_dnsimple_test.go

18 lines
385 B
Go
Raw Normal View History

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")
}