(t *testing.T)
| 388 | } |
| 389 | |
| 390 | func TestCreateConfigA100Alias(t *testing.T) { |
| 391 | config := &tui.CreateConfig{ |
| 392 | GPUType: "A100", |
| 393 | VCPUs: 8, |
| 394 | Template: "ubuntu-22.04", |
| 395 | DiskSizeGB: 100, |
| 396 | } |
| 397 | |
| 398 | templates := []api.TemplateEntry{ |
| 399 | tmplEntry("ubuntu-22.04", "Ubuntu 22.04"), |
| 400 | } |
| 401 | |
| 402 | err := validateCreateConfig(config, templates, []api.Snapshot{}, false, testSpecStore()) |
| 403 | require.NoError(t, err) |
| 404 | |
| 405 | assert.Equal(t, "a100xl", config.GPUType) |
| 406 | } |
| 407 | |
| 408 | // TestCreateConfigTemplateCaseInsensitive verifies that template matching |
| 409 | // is case-insensitive when comparing with display names. |
nothing calls this directly
no test coverage detected