package operator_test import ( "testing" "testing/synctest" "tangled.org/guid.foo/simmer/cluster" "tangled.org/guid.foo/simmer/internal/world" ) // A Console is a person's own, so a pass deploys it even while a Stop // holds every Mandate. func TestAPassDeploysAConsoleWhileSimmerIsStopped(t *testing.T) { synctest.Test(t, func(t *testing.T) { r := start(t) r.w.Put(cluster.Stops, world.Stop("halt", "testing")) r.w.Put(cluster.Consoles, world.Console("consoles", "personal")) synctest.Wait() r.pass(t) d, ok := world.Get[cluster.Deployment](r.w, cluster.Deployments, "consoles", "personal") if !ok || d.Spec.Template.Spec.Containers[0].Image != "claude:1" { t.Errorf("the Console's Deployment is %v, %+v; want one that runs the session image", ok, d.Spec.Template.Spec.Containers) } }) }