add some tests

This commit is contained in:
mkelcik
2023-04-28 23:09:40 +02:00
parent 1ff6476b41
commit 50f8585d96
5 changed files with 165 additions and 4 deletions

View File

@@ -9,9 +9,9 @@ import (
"syscall"
"time"
"cloudflare-ddns/internal"
"cloudflare-ddns/public_resolvers"
"github.com/cloudflare/cloudflare-go"
"github.com/mkelcik/cloudflare-ddns-update/internal"
"github.com/mkelcik/cloudflare-ddns-update/public_resolvers"
)
type PublicIpResolver interface {
@@ -44,6 +44,8 @@ func main() {
log.Fatal(err)
}
log.Printf("Current public ip `%s`", currentPublicIP)
api, err := cloudflare.NewWithAPIToken(config.ApiToken)
if err != nil {
log.Fatal(err)