mirror of
https://github.com/hanzoai/status.git
synced 2026-10-30 18:21:48 +00:00
White-labelable status monitoring service with all Gatus branding removed. Defaults to neutral "Status" text. Branding is driven entirely by the ui section in config YAML. - Pure Go build (CGO_ENABLED=0, modernc.org/sqlite) - Multi-stage Dockerfile (node frontend + go backend + alpine runtime) - K8s kustomize overlays for hanzo and lux deployments - GitHub Actions CI for GHCR image push - Pre-built Vue frontend with zero upstream branding
20 lines
449 B
Go
20 lines
449 B
Go
package endpoint
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func TestNewEndpointStatus(t *testing.T) {
|
|
ep := &Endpoint{Name: "name", Group: "group"}
|
|
status := NewStatus(ep.Group, ep.Name)
|
|
if status.Name != ep.Name {
|
|
t.Errorf("expected %s, got %s", ep.Name, status.Name)
|
|
}
|
|
if status.Group != ep.Group {
|
|
t.Errorf("expected %s, got %s", ep.Group, status.Group)
|
|
}
|
|
if status.Key != "group_name" {
|
|
t.Errorf("expected %s, got %s", "group_name", status.Key)
|
|
}
|
|
}
|