Skip to content

Commit cd0886c

Browse files
author
Ariel Kass
committed
fixing revive linter issues
Signed-off-by: Ariel Kass <[email protected]>
1 parent 66a1c0d commit cd0886c

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

pkg/client/replication-client_test.go

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ import (
2929
func TestEnableVolumeReplication(t *testing.T) {
3030
t.Parallel()
3131
mockedEnableReplication := &fake.ReplicationClient{
32-
EnableVolumeReplicationMock: func(volumeID, replicationID string, secrets, parameters map[string]string) (*replicationlib.EnableVolumeReplicationResponse, error) {
32+
EnableVolumeReplicationMock: func(_, _ string, _, _ map[string]string) (*replicationlib.EnableVolumeReplicationResponse, error) {
3333
return &replicationlib.EnableVolumeReplicationResponse{}, nil
3434
},
3535
}
@@ -40,7 +40,7 @@ func TestEnableVolumeReplication(t *testing.T) {
4040

4141
// return error
4242
mockedEnableReplication = &fake.ReplicationClient{
43-
EnableVolumeReplicationMock: func(volumeID, replicationID string, secrets, parameters map[string]string) (*replicationlib.EnableVolumeReplicationResponse, error) {
43+
EnableVolumeReplicationMock: func(_, _ string, _, _ map[string]string) (*replicationlib.EnableVolumeReplicationResponse, error) {
4444
return nil, errors.New("failed to enable mirroring")
4545
},
4646
}
@@ -53,7 +53,7 @@ func TestEnableVolumeReplication(t *testing.T) {
5353
func TestDisableVolumeReplication(t *testing.T) {
5454
t.Parallel()
5555
mockedDisableReplication := &fake.ReplicationClient{
56-
DisableVolumeReplicationMock: func(volumeID, replicationID string, secrets, parameters map[string]string) (*replicationlib.DisableVolumeReplicationResponse, error) {
56+
DisableVolumeReplicationMock: func(_, _ string, _, _ map[string]string) (*replicationlib.DisableVolumeReplicationResponse, error) {
5757
return &replicationlib.DisableVolumeReplicationResponse{}, nil
5858
},
5959
}
@@ -64,7 +64,7 @@ func TestDisableVolumeReplication(t *testing.T) {
6464

6565
// return error
6666
mockedDisableReplication = &fake.ReplicationClient{
67-
DisableVolumeReplicationMock: func(volumeID, replicationID string, secrets, parameters map[string]string) (*replicationlib.DisableVolumeReplicationResponse, error) {
67+
DisableVolumeReplicationMock: func(_, _ string, _, _ map[string]string) (*replicationlib.DisableVolumeReplicationResponse, error) {
6868
return nil, errors.New("failed to disable mirroring")
6969
},
7070
}
@@ -78,7 +78,7 @@ func TestPromoteVolume(t *testing.T) {
7878
t.Parallel()
7979
// return success response
8080
mockedPromoteVolume := &fake.ReplicationClient{
81-
PromoteVolumeMock: func(volumeID, replicationID string, force bool, secrets, parameters map[string]string) (*replicationlib.PromoteVolumeResponse, error) {
81+
PromoteVolumeMock: func(_, _ string, force bool, _, _ map[string]string) (*replicationlib.PromoteVolumeResponse, error) {
8282
return &replicationlib.PromoteVolumeResponse{}, nil
8383
},
8484
}
@@ -90,7 +90,7 @@ func TestPromoteVolume(t *testing.T) {
9090

9191
// return error
9292
mockedPromoteVolume = &fake.ReplicationClient{
93-
PromoteVolumeMock: func(volumeID, replicationID string, force bool, secrets, parameters map[string]string) (*replicationlib.PromoteVolumeResponse, error) {
93+
PromoteVolumeMock: func(_, _ string, force bool, _, _ map[string]string) (*replicationlib.PromoteVolumeResponse, error) {
9494
return nil, errors.New("failed to promote volume")
9595
},
9696
}
@@ -104,7 +104,7 @@ func TestDemoteVolume(t *testing.T) {
104104
t.Parallel()
105105
// return success response
106106
mockedDemoteVolume := &fake.ReplicationClient{
107-
DemoteVolumeMock: func(volumeID, replicationID string, secrets, parameters map[string]string) (*replicationlib.DemoteVolumeResponse, error) {
107+
DemoteVolumeMock: func(_, _ string, _, _ map[string]string) (*replicationlib.DemoteVolumeResponse, error) {
108108
return &replicationlib.DemoteVolumeResponse{}, nil
109109
},
110110
}
@@ -115,7 +115,7 @@ func TestDemoteVolume(t *testing.T) {
115115

116116
// return error
117117
mockedDemoteVolume = &fake.ReplicationClient{
118-
DemoteVolumeMock: func(volumeID, replicationID string, secrets, parameters map[string]string) (*replicationlib.DemoteVolumeResponse, error) {
118+
DemoteVolumeMock: func(_, _ string, _, _ map[string]string) (*replicationlib.DemoteVolumeResponse, error) {
119119
return nil, errors.New("failed to demote volume")
120120
},
121121
}
@@ -129,7 +129,7 @@ func TestResyncVolume(t *testing.T) {
129129
t.Parallel()
130130
// return success response
131131
mockedResyncVolume := &fake.ReplicationClient{
132-
ResyncVolumeMock: func(volumeID, replicationID string, secrets, parameters map[string]string) (*replicationlib.ResyncVolumeResponse, error) {
132+
ResyncVolumeMock: func(_, _ string, _, _ map[string]string) (*replicationlib.ResyncVolumeResponse, error) {
133133
return &replicationlib.ResyncVolumeResponse{}, nil
134134
},
135135
}
@@ -140,7 +140,7 @@ func TestResyncVolume(t *testing.T) {
140140

141141
// return error
142142
mockedResyncVolume = &fake.ReplicationClient{
143-
ResyncVolumeMock: func(volumeID, replicationID string, secrets, parameters map[string]string) (*replicationlib.ResyncVolumeResponse, error) {
143+
ResyncVolumeMock: func(_, _ string, _, _ map[string]string) (*replicationlib.ResyncVolumeResponse, error) {
144144
return nil, errors.New("failed to resync volume")
145145
},
146146
}

0 commit comments

Comments
 (0)