2016-01-26 11:14:10 +00:00
|
|
|
package acme
|
|
|
|
|
|
|
|
import (
|
|
|
|
"testing"
|
|
|
|
|
|
|
|
"github.com/stretchr/testify/assert"
|
|
|
|
)
|
|
|
|
|
|
|
|
func TestNewDNSProviderDNSimpleValid(t *testing.T) {
|
|
|
|
_, err := NewDNSProviderDNSimple("example@example.com", "123")
|
|
|
|
assert.NoError(t, err)
|
|
|
|
}
|
2016-01-26 11:25:51 +00:00
|
|
|
|
|
|
|
func TestNewDNSProviderDNSimpleMissingCredErr(t *testing.T) {
|
|
|
|
_, err := NewDNSProviderDNSimple("", "")
|
|
|
|
assert.EqualError(t, err, "DNSimple credentials missing")
|
|
|
|
}
|