feat: implement more Deployer
This commit is contained in:
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
npEmail "github.com/usual2970/certimate/internal/pkg/core/notifier/providers/email"
|
||||
provider "github.com/usual2970/certimate/internal/pkg/core/notifier/providers/email"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -64,7 +64,7 @@ func Test(t *testing.T) {
|
||||
fmt.Sprintf("RECEIVERADDRESS: %v", fReceiverAddress),
|
||||
}, "\n"))
|
||||
|
||||
notifier, err := npEmail.New(&npEmail.EmailNotifierConfig{
|
||||
notifier, err := provider.New(&provider.EmailNotifierConfig{
|
||||
SmtpHost: fSmtpHost,
|
||||
SmtpPort: int32(fSmtpPort),
|
||||
SmtpTLS: fSmtpTLS,
|
||||
|
||||
@@ -7,7 +7,7 @@ import (
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
npWebhook "github.com/usual2970/certimate/internal/pkg/core/notifier/providers/webhook"
|
||||
provider "github.com/usual2970/certimate/internal/pkg/core/notifier/providers/webhook"
|
||||
)
|
||||
|
||||
const (
|
||||
@@ -38,7 +38,7 @@ func Test(t *testing.T) {
|
||||
fmt.Sprintf("URL: %v", fUrl),
|
||||
}, "\n"))
|
||||
|
||||
notifier, err := npWebhook.New(&npWebhook.WebhookNotifierConfig{
|
||||
notifier, err := provider.New(&provider.WebhookNotifierConfig{
|
||||
Url: fUrl,
|
||||
})
|
||||
if err != nil {
|
||||
|
||||
Reference in New Issue
Block a user