package scheduler

import "testing"

func TestEventForStatus(t *testing.T) {
	cases := map[string]string{
		"up":                "marked_up",
		"draining":          "draining",
		"blocked_suspect":   "blocked_suspect",
		"blocked_confirmed": "blocked_confirmed",
		"destroyed":         "destroyed",
		"probing":           "provisioned",
		"provisioning":      "provisioned",
		"down":              "", // no event enum → skip writing an event row
		"bogus":             "",
	}
	for status, want := range cases {
		if got := eventForStatus(status); got != want {
			t.Errorf("eventForStatus(%q) = %q, want %q", status, got, want)
		}
	}
}
