Rename experimental Void image to void
Replace the old `void-exp` repository defaults with `void` so the Make targets, registration helper, example config, verification messaging, and sample test fixtures all line up with the new managed image name. Keep the scope to repo-facing naming only: config overrides, helper output, and test fixtures now expect `void`, while runtime compatibility for existing local `void-exp` VMs remains an operational concern outside this commit. Validation: go test ./..., make build, and a local `banger vm create --image void` smoke boot with ssh and opencode ports up.
This commit is contained in:
parent
70bc6d07d0
commit
497e6dca3d
8 changed files with 14 additions and 14 deletions
|
|
@ -82,7 +82,7 @@ func TestDashboardPageRendersSummaryAndTables(t *testing.T) {
|
|||
},
|
||||
},
|
||||
vms: []model.VMRecord{{ID: "vm-1", Name: "smth", State: model.VMStateRunning, CreatedAt: model.Now(), Runtime: model.VMRuntime{GuestIP: "172.16.0.2"}, Spec: model.VMSpec{VCPUCount: 2, MemoryMiB: 1024, WorkDiskSizeBytes: 8 << 30}}},
|
||||
images: []model.Image{{ID: "img-1", Name: "void-exp", Managed: true, RootfsPath: "/tmp/rootfs.ext4", CreatedAt: model.Now()}},
|
||||
images: []model.Image{{ID: "img-1", Name: "void", Managed: true, RootfsPath: "/tmp/rootfs.ext4", CreatedAt: model.Now()}},
|
||||
}
|
||||
|
||||
req := httptest.NewRequest(http.MethodGet, "/", nil)
|
||||
|
|
@ -93,7 +93,7 @@ func TestDashboardPageRendersSummaryAndTables(t *testing.T) {
|
|||
t.Fatalf("status = %d, want 200", rec.Code)
|
||||
}
|
||||
body := rec.Body.String()
|
||||
for _, want := range []string{"vCPU", "2 / 8", "1G / 16G", "8G / 20G", "9G free", "smth", "void-exp", "Create VM"} {
|
||||
for _, want := range []string{"vCPU", "2 / 8", "1G / 16G", "8G / 20G", "9G free", "smth", "void", "Create VM"} {
|
||||
if !strings.Contains(body, want) {
|
||||
t.Fatalf("body missing %q\n%s", want, body)
|
||||
}
|
||||
|
|
@ -174,7 +174,7 @@ func TestVMShowPageRendersRunningActions(t *testing.T) {
|
|||
WorkDiskBytes: 32 << 20,
|
||||
},
|
||||
},
|
||||
image: model.Image{ID: "img-1", Name: "void-exp"},
|
||||
image: model.Image{ID: "img-1", Name: "void"},
|
||||
ports: api.VMPortsResult{
|
||||
Name: "smth",
|
||||
Ports: []api.VMPort{
|
||||
|
|
@ -211,7 +211,7 @@ func TestVMListShowsImageNameAndLink(t *testing.T) {
|
|||
{ID: "vm-1", Name: "smth", ImageID: "img-1", State: model.VMStateRunning, CreatedAt: model.Now(), Spec: model.VMSpec{VCPUCount: 2, MemoryMiB: 1024, WorkDiskSizeBytes: 8 << 30}},
|
||||
},
|
||||
images: []model.Image{
|
||||
{ID: "img-1", Name: "void-exp"},
|
||||
{ID: "img-1", Name: "void"},
|
||||
},
|
||||
}
|
||||
|
||||
|
|
@ -223,7 +223,7 @@ func TestVMListShowsImageNameAndLink(t *testing.T) {
|
|||
t.Fatalf("status = %d, want 200", rec.Code)
|
||||
}
|
||||
body := rec.Body.String()
|
||||
for _, want := range []string{">void-exp</a>", "href=\"/images/img-1\""} {
|
||||
for _, want := range []string{">void</a>", "href=\"/images/img-1\""} {
|
||||
if !strings.Contains(body, want) {
|
||||
t.Fatalf("body missing %q\n%s", want, body)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue