forked from TrueCloudLab/lego
17 lines
385 B
Go
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")
|
|
}
|