(t *testing.T)
| 36 | } |
| 37 | |
| 38 | func TestCreateFlagsDoNotRequireDisk(t *testing.T) { |
| 39 | cmd := &cobra.Command{} |
| 40 | cmd.Flags().String("gpu", "", "") |
| 41 | cmd.Flags().String("template", "", "") |
| 42 | cmd.Flags().String("snapshot", "", "") |
| 43 | cmd.Flags().Int("num-gpus", 0, "") |
| 44 | cmd.Flags().Int("vcpus", 0, "") |
| 45 | cmd.Flags().Int("disk", 0, "") |
| 46 | cmd.Flags().Int("disk-size-gb", 0, "") |
| 47 | |
| 48 | require.NoError(t, cmd.Flags().Set("gpu", "h100")) |
| 49 | require.NoError(t, cmd.Flags().Set("template", "base")) |
| 50 | require.NoError(t, cmd.Flags().Set("num-gpus", "4")) |
| 51 | |
| 52 | assert.Empty(t, missingCreateFlags(cmd)) |
| 53 | } |
| 54 | |
| 55 | // TestValidateCreateConfig provides comprehensive validation testing for instance |
| 56 | // creation configurations, covering routed 1/2 and 4/8 GPU counts with various |
nothing calls this directly
no test coverage detected