@@ -99,7 +99,7 @@ func Test_ImageUpdate(t *testing.T) {
99
99
t .Run ("Change name" , core .Test (& core.TestConfig {
100
100
BeforeFunc : createImage ("ImageName" ),
101
101
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" ,
103
103
Check : core .TestCheckCombine (
104
104
func (t * testing.T , ctx * core.CheckFuncCtx ) {
105
105
assert .Equal (t , "foo" , ctx .Result .(* instance.UpdateImageResponse ).Image .Name )
@@ -116,7 +116,7 @@ func Test_ImageUpdate(t *testing.T) {
116
116
t .Run ("Change public from default false to true" , core .Test (& core.TestConfig {
117
117
BeforeFunc : createImage ("ImagePub" ),
118
118
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" ,
120
120
Check : core .TestCheckCombine (
121
121
func (t * testing.T , ctx * core.CheckFuncCtx ) {
122
122
assert .Equal (t , true , ctx .Result .(* instance.UpdateImageResponse ).Image .Public )
@@ -137,7 +137,7 @@ func Test_ImageUpdate(t *testing.T) {
137
137
createImage ("ImageExtraVol" ),
138
138
),
139
139
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 }}" ,
141
141
Check : core .TestCheckCombine (
142
142
func (t * testing.T , ctx * core.CheckFuncCtx ) {
143
143
assert .Equal (t , "snapVol" , ctx .Result .(* instance.UpdateImageResponse ).Image .ExtraVolumes ["1" ].Name )
0 commit comments