@@ -41,7 +41,7 @@ func (s *workflowRunIntegrationTestSuite) TestList() {
4141 // Create a finished run
4242 finishedRun , err := s .WorkflowRun .Create (context .Background (),
4343 & biz.WorkflowRunCreateOpts {
44- WorkflowID : s .workflowOrg2 .ID .String (), RobotaccountID : s . robotAccount . ID . String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
44+ WorkflowID : s .workflowOrg2 .ID .String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
4545 })
4646 s .NoError (err )
4747 err = s .WorkflowRun .MarkAsFinished (context .Background (), finishedRun .ID .String (), biz .WorkflowRunSuccess , "" )
@@ -119,7 +119,7 @@ func (s *workflowRunIntegrationTestSuite) TestSaveAttestation() {
119119
120120 s .T ().Run ("valid workflowRun" , func (t * testing.T ) {
121121 run , err := s .WorkflowRun .Create (ctx , & biz.WorkflowRunCreateOpts {
122- WorkflowID : s .workflowOrg1 .ID .String (), RobotaccountID : s . robotAccount . ID . String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
122+ WorkflowID : s .workflowOrg1 .ID .String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
123123 })
124124 assert .NoError (err )
125125
@@ -241,7 +241,7 @@ func (s *workflowRunIntegrationTestSuite) TestCreate() {
241241
242242 s .T ().Run ("valid workflowRun" , func (t * testing.T ) {
243243 run , err := s .WorkflowRun .Create (ctx , & biz.WorkflowRunCreateOpts {
244- WorkflowID : s .workflowOrg1 .ID .String (), RobotaccountID : s . robotAccount . ID . String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
244+ WorkflowID : s .workflowOrg1 .ID .String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
245245 RunnerType : "runnerType" , RunnerRunURL : "runURL" ,
246246 })
247247 assert .NoError (err )
@@ -263,7 +263,7 @@ func (s *workflowRunIntegrationTestSuite) TestContractInformation() {
263263 ctx := context .Background ()
264264 s .Run ("if it's the first revision of the contract it matches" , func () {
265265 run , err := s .WorkflowRun .Create (ctx , & biz.WorkflowRunCreateOpts {
266- WorkflowID : s .workflowOrg1 .ID .String (), RobotaccountID : s . robotAccount . ID . String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
266+ WorkflowID : s .workflowOrg1 .ID .String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
267267 RunnerType : "runnerType" , RunnerRunURL : "runURL" ,
268268 })
269269 s .NoError (err )
@@ -281,7 +281,7 @@ func (s *workflowRunIntegrationTestSuite) TestContractInformation() {
281281 updatedContractRevision .Version = s .contractVersion .Version
282282
283283 run , err := s .WorkflowRun .Create (ctx , & biz.WorkflowRunCreateOpts {
284- WorkflowID : s .workflowOrg1 .ID .String (), RobotaccountID : s . robotAccount . ID . String (), ContractRevision : updatedContractRevision , CASBackendID : s .casBackend .ID ,
284+ WorkflowID : s .workflowOrg1 .ID .String (), ContractRevision : updatedContractRevision , CASBackendID : s .casBackend .ID ,
285285 RunnerType : "runnerType" , RunnerRunURL : "runURL" ,
286286 })
287287 s .NoError (err )
@@ -307,7 +307,6 @@ type workflowRunTestData struct {
307307 casBackend * biz.CASBackend
308308 workflowOrg1 , workflowOrg2 , workflowPublicOrg2 * biz.Workflow
309309 runOrg1 , runOrg2 , runOrg2Public * biz.WorkflowRun
310- robotAccount * biz.RobotAccount
311310 contractVersion * biz.WorkflowContractWithVersion
312311 digestAtt1 , digestAttOrg2 , digestAttPublic string
313312}
@@ -340,10 +339,6 @@ func setupWorkflowRunTestData(t *testing.T, suite *testhelpers.TestingUseCases,
340339 s .workflowPublicOrg2 , err = suite .Workflow .Create (ctx , & biz.WorkflowCreateOpts {Name : "test-public-workflow" , OrgID : s .org2 .ID , Public : true })
341340 assert .NoError (err )
342341
343- // Robot account
344- s .robotAccount , err = suite .RobotAccount .Create (ctx , "name" , s .org .ID , s .workflowOrg1 .ID .String ())
345- assert .NoError (err )
346-
347342 // Find contract revision
348343 s .contractVersion , err = suite .WorkflowContract .Describe (ctx , s .org .ID , s .workflowOrg1 .ContractID .String (), 0 )
349344 assert .NoError (err )
@@ -354,7 +349,7 @@ func setupWorkflowRunTestData(t *testing.T, suite *testhelpers.TestingUseCases,
354349 // Let's create 3 runs, one in org1 and 2 in org2 (one public)
355350 s .runOrg1 , err = suite .WorkflowRun .Create (ctx ,
356351 & biz.WorkflowRunCreateOpts {
357- WorkflowID : s .workflowOrg1 .ID .String (), RobotaccountID : s . robotAccount . ID . String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
352+ WorkflowID : s .workflowOrg1 .ID .String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
358353 })
359354 assert .NoError (err )
360355 s .digestAtt1 , err = suite .WorkflowRun .SaveAttestation (ctx , s .runOrg1 .ID .String (), testEnvelope (t , "testdata/attestations/full.json" ))
@@ -363,15 +358,15 @@ func setupWorkflowRunTestData(t *testing.T, suite *testhelpers.TestingUseCases,
363358
364359 s .runOrg2 , err = suite .WorkflowRun .Create (ctx ,
365360 & biz.WorkflowRunCreateOpts {
366- WorkflowID : s .workflowOrg2 .ID .String (), RobotaccountID : s . robotAccount . ID . String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
361+ WorkflowID : s .workflowOrg2 .ID .String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
367362 })
368363 assert .NoError (err )
369364 s .digestAttOrg2 , err = suite .WorkflowRun .SaveAttestation (ctx , s .runOrg2 .ID .String (), testEnvelope (t , "testdata/attestations/empty.json" ))
370365 assert .NoError (err )
371366
372367 s .runOrg2Public , err = suite .WorkflowRun .Create (ctx ,
373368 & biz.WorkflowRunCreateOpts {
374- WorkflowID : s .workflowPublicOrg2 .ID .String (), RobotaccountID : s . robotAccount . ID . String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
369+ WorkflowID : s .workflowPublicOrg2 .ID .String (), ContractRevision : s .contractVersion , CASBackendID : s .casBackend .ID ,
375370 })
376371 assert .NoError (err )
377372 s .digestAttPublic , err = suite .WorkflowRun .SaveAttestation (ctx , s .runOrg2Public .ID .String (), testEnvelope (t , "testdata/attestations/with-string.json" ))
0 commit comments