chore: initialize containerized Go learning workbook (2026 DevOps/SRE)

This commit is contained in:
soda64 committed 2026-11-30 23:03:31 +01:00
commit 84be3e5d77
64 files changed
+1382

No files matched your search

@@ -0,0 +1,20 @@
package interfaces
import (
"reflect"
"testing"
)
func TestAlertService(t *testing.T) {
svc := AlertService{
Notifiers: []Notifier{
EmailNotifier{Address: "ops@example.com"},
SmsNotifier{Phone: "+48123456789"},
},
}
got := svc.Broadcast("Node down")
want := []string{"[email] Node down", "[sms] Node down"}
if !reflect.DeepEqual(got, want) {
t.Fatalf("got %v, want %v", got, want)
}
}