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