@@ -99,7 +99,7 @@ func Test_ImageUpdate(t *testing.T) {
9999 t .Run ("Change name" , core .Test (& core.TestConfig {
100100 BeforeFunc : createImage ("ImageName" ),
101101 Commands : GetCommands (),
102- Cmd : "scw instance image update image-id= {{ .ImageName.Image.ID }} name=foo" ,
102+ Cmd : "scw instance image update {{ .ImageName.Image.ID }} name=foo" ,
103103 Check : core .TestCheckCombine (
104104 func (t * testing.T , ctx * core.CheckFuncCtx ) {
105105 assert .Equal (t , "foo" , ctx .Result .(* instance.UpdateImageResponse ).Image .Name )
@@ -116,7 +116,7 @@ func Test_ImageUpdate(t *testing.T) {
116116 t .Run ("Change public from default false to true" , core .Test (& core.TestConfig {
117117 BeforeFunc : createImage ("ImagePub" ),
118118 Commands : GetCommands (),
119- Cmd : "scw instance image update image-id= {{ .ImagePub.Image.ID }} public=true" ,
119+ Cmd : "scw instance image update {{ .ImagePub.Image.ID }} public=true" ,
120120 Check : core .TestCheckCombine (
121121 func (t * testing.T , ctx * core.CheckFuncCtx ) {
122122 assert .Equal (t , true , ctx .Result .(* instance.UpdateImageResponse ).Image .Public )
@@ -137,7 +137,7 @@ func Test_ImageUpdate(t *testing.T) {
137137 createImage ("ImageExtraVol" ),
138138 ),
139139 Commands : GetCommands (),
140- Cmd : "scw instance image update image-id= {{ .ImageExtraVol.Image.ID }} extra-volumes.1.id={{ .SnapshotVol.ID }}" ,
140+ Cmd : "scw instance image update {{ .ImageExtraVol.Image.ID }} extra-volumes.1.id={{ .SnapshotVol.ID }}" ,
141141 Check : core .TestCheckCombine (
142142 func (t * testing.T , ctx * core.CheckFuncCtx ) {
143143 assert .Equal (t , "snapVol" , ctx .Result .(* instance.UpdateImageResponse ).Image .ExtraVolumes ["1" ].Name )
0 commit comments