@@ -46,17 +46,18 @@ func TestList(t *testing.T) {
4646 Disk : 80 ,
4747 StorageType : hcloud .StorageTypeLocal ,
4848 Locations : []hcloud.ServerTypeLocation {
49- {Location : & hcloud.Location {ID : 1 , Name : "fsn1" }, DeprecatableResource : serverTypeDeprecation },
50- {Location : & hcloud.Location {ID : 2 , Name : "nbg1" }},
51- {Location : & hcloud.Location {ID : 3 , Name : "hel1" }},
49+ {Location : & hcloud.Location {ID : 1 , Name : "fsn1" }, Available : false , Recommended : false ,
50+ DeprecatableResource : serverTypeDeprecation },
51+ {Location : & hcloud.Location {ID : 2 , Name : "nbg1" }, Available : true , Recommended : false },
52+ {Location : & hcloud.Location {ID : 3 , Name : "hel1" }, Available : true , Recommended : true },
5253 },
5354 },
5455 }, nil )
5556
56- out , errOut , err := fx .Run (cmd , []string {})
57+ out , errOut , err := fx .Run (cmd , []string {"-o=columns=id,name,cores,cpu_type,architecture,memory,disk,location,location_available,location_recommended" })
5758
58- expOut := `ID NAME CORES CPU TYPE ARCHITECTURE MEMORY DISK LOCATION
59- 123 test 2 shared arm 8.0 GB 80 GB nbg1,hel1
59+ expOut := `ID NAME CORES CPU TYPE ARCHITECTURE MEMORY DISK LOCATION LOCATION AVAILABLE LOCATION RECOMMENDED
60+ 123 test 2 shared arm 8.0 GB 80 GB nbg1,hel1 nbg1,hel1 hel1
6061`
6162
6263 require .NoError (t , err )
0 commit comments