Skip to content

Commit a997836

Browse files
committed
update mocks & lint
Signed-off-by: bupd <bupdprasanth@gmail.com>
1 parent 12afc5c commit a997836

4 files changed

Lines changed: 21 additions & 3 deletions

File tree

src/controller/replication/execution.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ import (
2121
"time"
2222

2323
"github.com/gocraft/work"
24-
"github.com/goharbor/harbor/src/controller/jobmonitor"
2524

2625
"github.com/goharbor/harbor/src/controller/event/operator"
26+
"github.com/goharbor/harbor/src/controller/jobmonitor"
2727
"github.com/goharbor/harbor/src/controller/replication/flow"
2828
replicationmodel "github.com/goharbor/harbor/src/controller/replication/model"
2929
"github.com/goharbor/harbor/src/jobservice/job"
@@ -120,7 +120,6 @@ func (c *controller) Start(ctx context.Context, policy *replicationmodel.Policy,
120120
}
121121

122122
if policy.SkipIfRunning {
123-
log.Infof("kumar eh policy with ID %v skipped.", policy.ID)
124123
monitorClient, err := jobmonitor.JobServiceMonitorClient()
125124
if err != nil {
126125
return 0, errors.New(nil).WithCode(errors.PreconditionCode).WithMessagef("unable to get job monitor's client: %v", err)

src/jobservice/job/impl/replication/replication.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ package replication
1717
import (
1818
"encoding/json"
1919
"fmt"
20+
2021
"github.com/goharbor/harbor/src/controller/replication/transfer"
2122
// import chart transfer
2223
_ "github.com/goharbor/harbor/src/controller/replication/transfer/image"

src/server/v2.0/handler/replication.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ func convertReplicationPolicy(policy *repctlmodel.Policy) *models.ReplicationPol
454454
Speed: &policy.Speed,
455455
UpdateTime: strfmt.DateTime(policy.UpdateTime),
456456
CopyByChunk: &policy.CopyByChunk,
457-
SkipIfRunning: &policy.SkipIfRunning,
457+
SkipIfRunning: &policy.SkipIfRunning,
458458
}
459459
if policy.SrcRegistry != nil {
460460
p.SrcRegistry = convertRegistry(policy.SrcRegistry)

src/testing/pkg/task/execution_manager.go

Lines changed: 18 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)