@@ -26,9 +26,9 @@ func GetEntriesInRefSpec(ctx context.Context, urlStr string) func(c convey.C) {
26
26
_ = createRepo (ctx , client , repoName , false )
27
27
_ = createBranch (ctx , client , userName , repoName , "main" , branchName )
28
28
_ = createWip (ctx , client , userName , repoName , branchName )
29
- _ = uploadObject (ctx , client , userName , repoName , branchName , "m.dat" )
30
- _ = uploadObject (ctx , client , userName , repoName , branchName , "g/x.dat" )
31
- _ = uploadObject (ctx , client , userName , repoName , branchName , "g/m.dat" )
29
+ _ = uploadObject (ctx , client , userName , repoName , branchName , "m.dat" , true )
30
+ _ = uploadObject (ctx , client , userName , repoName , branchName , "g/x.dat" , true )
31
+ _ = uploadObject (ctx , client , userName , repoName , branchName , "g/m.dat" , true )
32
32
})
33
33
34
34
c .Convey ("get wip entries" , func (c convey.C ) {
@@ -230,8 +230,8 @@ func GetEntriesInRefSpec(ctx context.Context, urlStr string) func(c convey.C) {
230
230
231
231
c .Convey ("prepare data for commit test" , func (_ convey.C ) {
232
232
createWip (ctx , client , userName , repoName , "main" )
233
- uploadObject (ctx , client , userName , repoName , "main" , "a.dat" ) //delete\
234
- uploadObject (ctx , client , userName , repoName , "main" , "g/m.dat" ) //modify
233
+ uploadObject (ctx , client , userName , repoName , "main" , "a.dat" , true ) //delete\
234
+ uploadObject (ctx , client , userName , repoName , "main" , "g/m.dat" , true ) //modify
235
235
_ = commitWip (ctx , client , userName , repoName , "main" , "test" )
236
236
})
237
237
@@ -389,21 +389,21 @@ func GetCommitChangesSpec(ctx context.Context, urlStr string) func(c convey.C) {
389
389
loginAndSwitch (ctx , client , userName , false )
390
390
createRepo (ctx , client , repoName , false )
391
391
createWip (ctx , client , userName , repoName , "main" )
392
- uploadObject (ctx , client , userName , repoName , "main" , "m.dat" )
392
+ uploadObject (ctx , client , userName , repoName , "main" , "m.dat" , true )
393
393
_ = commitWip (ctx , client , userName , repoName , "main" , "test" )
394
394
395
- uploadObject (ctx , client , userName , repoName , "main" , "g/x.dat" )
395
+ uploadObject (ctx , client , userName , repoName , "main" , "g/x.dat" , true )
396
396
_ = commitWip (ctx , client , userName , repoName , "main" , "test" )
397
397
398
398
//delete
399
399
deleteObject (ctx , client , userName , repoName , "main" , "g/x.dat" )
400
400
401
401
//modify
402
402
deleteObject (ctx , client , userName , repoName , "main" , "m.dat" )
403
- uploadObject (ctx , client , userName , repoName , "main" , "m.dat" )
403
+ uploadObject (ctx , client , userName , repoName , "main" , "m.dat" , true )
404
404
405
405
//insert
406
- uploadObject (ctx , client , userName , repoName , "main" , "g/m.dat" )
406
+ uploadObject (ctx , client , userName , repoName , "main" , "g/m.dat" , true )
407
407
_ = commitWip (ctx , client , userName , repoName , "main" , "test" )
408
408
409
409
})
0 commit comments