()
| 11 | ) |
| 12 | |
| 13 | func createTestSpecStore() *utils.SpecStore { |
| 14 | return utils.NewSpecStore(map[string]api.GpuSpecConfig{ |
| 15 | "h100_x1": {GpuCount: 1, VcpuOptions: []int{15}, StorageGB: api.StorageRange{Min: 100, Max: 500}}, |
| 16 | "h100_x2": {GpuCount: 2, VcpuOptions: []int{30}, StorageGB: api.StorageRange{Min: 100, Max: 1000}}, |
| 17 | "h100_x4": {GpuCount: 4, VcpuOptions: []int{60}, StorageGB: api.StorageRange{Min: 100, Max: 2000}}, |
| 18 | }) |
| 19 | } |
| 20 | |
| 21 | func TestCreateDefaultDiskSizeUsesFreeStoragePerGPU(t *testing.T) { |
| 22 | m := NewCreateModel(nil, createTestSpecStore()) |
no test coverage detected