Delete blob + pool
This commit is contained in:
parent
92b7a30540
commit
a80a63f3aa
2 changed files with 1 additions and 12 deletions
|
|
@ -488,10 +488,9 @@ func getRepoSuggestions(ctx context.Context, apiClient apiClient, partialSearch
|
|||
|
||||
// buildDisplayName returns display name to be used in the machine survey prompt.
|
||||
// prebuildAvailability will be migrated to use enum values: "none", "ready", "in_progress" before Prebuild GA
|
||||
// Enum values "blob" and "pool" will be deprecated soon.
|
||||
func buildDisplayName(displayName string, prebuildAvailability string) string {
|
||||
switch prebuildAvailability {
|
||||
case "blob", "pool", "ready":
|
||||
case "ready":
|
||||
return displayName + " (Prebuild ready)"
|
||||
case "in_progress":
|
||||
return displayName + " (Prebuild in progress)"
|
||||
|
|
|
|||
|
|
@ -490,16 +490,6 @@ func TestBuildDisplayName(t *testing.T) {
|
|||
prebuildAvailability string
|
||||
expectedDisplayName string
|
||||
}{
|
||||
{
|
||||
name: "prebuild availability is pool",
|
||||
prebuildAvailability: "pool",
|
||||
expectedDisplayName: "4 cores, 8 GB RAM, 32 GB storage (Prebuild ready)",
|
||||
},
|
||||
{
|
||||
name: "prebuild availability is blob",
|
||||
prebuildAvailability: "blob",
|
||||
expectedDisplayName: "4 cores, 8 GB RAM, 32 GB storage (Prebuild ready)",
|
||||
},
|
||||
{
|
||||
name: "prebuild availability is none",
|
||||
prebuildAvailability: "none",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue