@@ -200,7 +200,7 @@ func (s *workflowIntegrationTestSuite) TestUpdate() {
200200 })
201201
202202 s .Run ("can't update a workflow in another org" , func () {
203- got , err := s .Workflow .Update (ctx , org2 .ID , workflow .ID .String (), & biz.WorkflowUpdateOpts {Name : toPtrS ("new-name " )})
203+ got , err := s .Workflow .Update (ctx , org2 .ID , workflow .ID .String (), & biz.WorkflowUpdateOpts {Description : toPtrS ("new description " )})
204204 s .True (biz .IsNotFound (err ))
205205 s .Error (err )
206206 s .Nil (got )
@@ -218,37 +218,26 @@ func (s *workflowIntegrationTestSuite) TestUpdate() {
218218 {
219219 name : "non existing workflow" ,
220220 id : uuid .Generate ().String (),
221- updates : & biz.WorkflowUpdateOpts {Name : toPtrS ("new-name " )},
221+ updates : & biz.WorkflowUpdateOpts {Description : toPtrS ("new description " )},
222222 wantErr : true ,
223223 },
224224 {
225225 name : "invalid uuid" ,
226226 id : "deadbeef" ,
227- updates : & biz.WorkflowUpdateOpts {Name : toPtrS ("new-name " )},
227+ updates : & biz.WorkflowUpdateOpts {Description : toPtrS ("new description " )},
228228 wantErr : true ,
229229 },
230230 {
231231 name : "no updates" ,
232232 wantErr : true ,
233233 wantErrMsg : "no updates provided" ,
234234 },
235- {
236- name : "invalid name" ,
237- wantErr : true ,
238- wantErrMsg : "RFC 1123" ,
239- updates : & biz.WorkflowUpdateOpts {Name : toPtrS (" no no " )},
240- },
241235 {
242236 name : "invalid Project" ,
243237 wantErr : true ,
244238 wantErrMsg : "RFC 1123" ,
245239 updates : & biz.WorkflowUpdateOpts {Project : toPtrS (" no no " )},
246240 },
247- {
248- name : "update name" ,
249- updates : & biz.WorkflowUpdateOpts {Name : toPtrS ("new-name" )},
250- want : & biz.Workflow {Name : "new-name" , Description : description , Team : team , Project : project , Public : false },
251- },
252241 {
253242 name : "update description" ,
254243 updates : & biz.WorkflowUpdateOpts {Description : toPtrS ("new description" )},
@@ -261,13 +250,8 @@ func (s *workflowIntegrationTestSuite) TestUpdate() {
261250 },
262251 {
263252 name : "update all options" ,
264- updates : & biz.WorkflowUpdateOpts {Name : toPtrS ("new-name-2" ), Project : toPtrS ("new-project" ), Team : toPtrS ("new team" ), Public : toPtrBool (true )},
265- want : & biz.Workflow {Name : "new-name-2" , Description : description , Team : "new team" , Project : "new-project" , Public : true },
266- },
267- {
268- name : "name can't be emptied" ,
269- updates : & biz.WorkflowUpdateOpts {Name : toPtrS ("" )},
270- wantErr : true ,
253+ updates : & biz.WorkflowUpdateOpts {Project : toPtrS ("new-project" ), Team : toPtrS ("new team" ), Public : toPtrBool (true )},
254+ want : & biz.Workflow {Description : description , Team : "new team" , Project : "new-project" , Public : true },
271255 },
272256 {
273257 name : "can update contract" ,
0 commit comments