MCPcopy Create free account
hub / github.com/Thunder-Compute/thunder-cli / TestCreateConfigA100Alias

Function TestCreateConfigA100Alias

cmd/create_test.go:390–406  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

388}
389
390func 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.

Callers

nothing calls this directly

Calls 3

tmplEntryFunction · 0.85
validateCreateConfigFunction · 0.85
testSpecStoreFunction · 0.70

Tested by

no test coverage detected