File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,6 +14,10 @@ const (
1414 VideoModelVGA = "vga"
1515 VideoModelCirrus = "cirrus"
1616
17+ NICModelE1000 = "e1000"
18+ NICModelVirtio = "virtio"
19+ NICModelRTL8139 = "rtl8139"
20+
1721 StopTypeSoft = "soft"
1822 StopTypeHard = "hard"
1923
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ func TestUnmarshalServerDetails(t *testing.T) {
254254 assert .Len (t , serverDetails .IPAddresses , 3 )
255255 assert .Equal (t , "managedBy" , serverDetails .Labels [0 ].Key )
256256 assert .Equal (t , "upcloud-go-sdk-unit-test" , serverDetails .Labels [0 ].Value )
257- assert .Equal (t , "virtio" , serverDetails .NICModel )
257+ assert .Equal (t , NICModelVirtio , serverDetails .NICModel )
258258 assert .Len (t , serverDetails .StorageDevices , 1 )
259259 assert .Equal (t , "012580a1-32a1-466e-a323-689ca16f2d43" , serverDetails .StorageDevices [0 ].UUID )
260260 assert .Equal (t , "virtio:0" , serverDetails .StorageDevices [0 ].Address )
You can’t perform that action at this time.
0 commit comments