internal/honeypot/dns/dns_test.go

package dns

import (
	"testing"

	"honeypot/internal/types"
)

func TestDNSHoneypotBasics(t *testing.T) {
	hp := New(Config{
		ListenAddr: "127.0.0.1",
		Ports:      []uint16{1053},
	})

	if hp.Name() != types.HoneypotTypeDNS {
		t.Errorf("expected name %s, got %s", types.HoneypotTypeDNS, hp.Name())
	}

	if hp.Label() != "DNS" {
		t.Errorf("expected label DNS, got %s", hp.Label())
	}
}