@@ -16,7 +16,7 @@ func Test_ServerVolumeUpdate(t *testing.T) {
1616t .Run ("simple block volume" , core .Test (& core.TestConfig {
1717Commands : GetCommands (),
1818BeforeFunc : core .BeforeFuncCombine (
19- createServer ("Server" ),
19+ createServerBionic ("Server" ),
2020createVolume ("Volume" , 10 , instance .VolumeVolumeTypeBSSD ),
2121),
2222Cmd : "scw instance server attach-volume server-id={{ .Server.ID }} volume-id={{ .Volume.ID }}" ,
@@ -33,7 +33,7 @@ func Test_ServerVolumeUpdate(t *testing.T) {
3333t .Run ("simple local volume" , core .Test (& core.TestConfig {
3434Commands : GetCommands (),
3535BeforeFunc : core .BeforeFuncCombine (
36- createServer ("Server" ),
36+ createServerBionic ("Server" ),
3737createVolume ("Volume" , 10 , instance .VolumeVolumeTypeLSSD ),
3838),
3939Cmd : "scw instance server attach-volume server-id={{ .Server.ID }} volume-id={{ .Volume.ID }}" ,
@@ -49,7 +49,7 @@ func Test_ServerVolumeUpdate(t *testing.T) {
4949
5050t .Run ("invalid volume UUID" , core .Test (& core.TestConfig {
5151Commands : GetCommands (),
52- BeforeFunc : createServer ("Server" ),
52+ BeforeFunc : createServerBionic ("Server" ),
5353Cmd : "scw instance server attach-volume server-id={{ .Server.ID }} volume-id=11111111-1111-1111-1111-111111111111" ,
5454Check : core .TestCheckCombine (
5555core .TestCheckGolden (),
@@ -79,7 +79,7 @@ func Test_ServerVolumeUpdate(t *testing.T) {
7979
8080t .Run ("invalid volume UUID" , core .Test (& core.TestConfig {
8181Commands : GetCommands (),
82- BeforeFunc : createServer ("Server" ),
82+ BeforeFunc : createServerBionic ("Server" ),
8383Cmd : "scw instance server detach-volume volume-id=11111111-1111-1111-1111-111111111111" ,
8484Check : core .TestCheckCombine (
8585core .TestCheckGolden (),
@@ -95,7 +95,7 @@ func Test_ServerUpdateCustom(t *testing.T) {
9595// IP cases.
9696t .Run ("Try to remove ip from server without ip" , core .Test (& core.TestConfig {
9797Commands : GetCommands (),
98- BeforeFunc : createServer ("Server" ),
98+ BeforeFunc : createServerBionic ("Server" ),
9999Cmd : "scw instance server update {{ .Server.ID }} ip=none" ,
100100Check : core .TestCheckCombine (
101101func (t * testing.T , ctx * core.CheckFuncCtx ) {
@@ -109,7 +109,7 @@ func Test_ServerUpdateCustom(t *testing.T) {
109109t .Run ("Update server ip from server without ip" , core .Test (& core.TestConfig {
110110Commands : GetCommands (),
111111BeforeFunc : core .BeforeFuncCombine (
112- createServer ("Server" ),
112+ createServerBionic ("Server" ),
113113createIP ("IP" ),
114114),
115115Cmd : "scw instance server update {{ .Server.ID }} ip={{ .IP.Address }}" ,
@@ -125,7 +125,7 @@ func Test_ServerUpdateCustom(t *testing.T) {
125125t .Run ("Update server ip from server with ip" , core .Test (& core.TestConfig {
126126Commands : GetCommands (),
127127BeforeFunc : core .BeforeFuncCombine (
128- createServer ("Server" ),
128+ createServerBionic ("Server" ),
129129createIP ("IP1" ),
130130createIP ("IP2" ),
131131
@@ -205,7 +205,7 @@ func Test_ServerUpdateCustom(t *testing.T) {
205205t .Run ("valid simple block volume" , core .Test (& core.TestConfig {
206206Commands : GetCommands (),
207207BeforeFunc : core .BeforeFuncCombine (
208- createServer ("Server" ),
208+ createServerBionic ("Server" ),
209209createVolume ("Volume" , 10 , instance .VolumeVolumeTypeBSSD ),
210210),
211211Cmd : `scw instance server update {{ .Server.ID }} volume-ids.0={{ (index .Server.Volumes "0").ID }} volume-ids.1={{ .Volume.ID }}` ,
0 commit comments