diff --git a/.github/workflows/linters.yaml b/.github/workflows/linters.yaml index cc151df..3380366 100644 --- a/.github/workflows/linters.yaml +++ b/.github/workflows/linters.yaml @@ -26,5 +26,5 @@ jobs: - name: golangci-lint uses: golangci/golangci-lint-action@v4 with: - version: v1.53 + version: latest skip-cache: true diff --git a/inttests/replication_test.go b/inttests/replication_test.go index ecbb64b..01812bb 100644 --- a/inttests/replication_test.go +++ b/inttests/replication_test.go @@ -73,7 +73,7 @@ func (suite *ReplicationTestSuite) TearDownSuite() { suite.T().Fail() } C.ModifyVolumeGroup(context.Background(), &gopowerstore.VolumeGroupModify{ProtectionPolicyID: ""}, suite.vg.ID) - C.RemoveMembersFromVolumeGroup(context.Background(), &gopowerstore.VolumeGroupMembers{VolumeIds: []string{suite.vol.ID}}, suite.vg.ID) + C.RemoveMembersFromVolumeGroup(context.Background(), &gopowerstore.VolumeGroupMembers{VolumeIDs: []string{suite.vol.ID}}, suite.vg.ID) C.ModifyVolume(context.Background(), &gopowerstore.VolumeModify{ProtectionPolicyID: ""}, suite.vol.ID) C.DeleteProtectionPolicy(context.Background(), suite.pp.ID) C.DeleteReplicationRule(context.Background(), suite.rr.ID) @@ -107,7 +107,7 @@ func getRemoteSystem(t *testing.T, suite *ReplicationTestSuite) (string, string) suite.pp, err = C.CreateProtectionPolicy(context.Background(), &gopowerstore.ProtectionPolicyCreate{ Name: "intcsi" + suite.randomString + "-pptst", - ReplicationRuleIds: []string{suite.rr.ID}, + ReplicationRuleIDs: []string{suite.rr.ID}, }) if err == nil { diff --git a/replication_test.go b/replication_test.go index bf476ab..84ff206 100644 --- a/replication_test.go +++ b/replication_test.go @@ -47,7 +47,7 @@ func TestClientIMPL_CreateProtectionPolicy(t *testing.T) { createReq := ProtectionPolicyCreate{ Name: "pp-test", Description: "pp-test", - ReplicationRuleIds: []string{"id"}, + ReplicationRuleIDs: []string{"id"}, } resp, err := C.CreateProtectionPolicy(context.Background(), &createReq) diff --git a/replication_types.go b/replication_types.go index e623df1..f0e09ff 100644 --- a/replication_types.go +++ b/replication_types.go @@ -109,9 +109,9 @@ type ProtectionPolicyCreate struct { // Policy description. Description string `json:"description,omitempty"` // IDs of replication rules - ReplicationRuleIds []string `json:"replication_rule_ids"` + ReplicationRuleIDs []string `json:"replication_rule_ids"` // IDs of snapshot rules - SnapshotRuleIds []string `json:"snapshot_rule_ids"` + SnapshotRuleIDs []string `json:"snapshot_rule_ids"` } // failover params create failover request diff --git a/volume_group_test.go b/volume_group_test.go index 2745d5b..1857fe3 100644 --- a/volume_group_test.go +++ b/volume_group_test.go @@ -46,7 +46,7 @@ func TestClientIMPL_CreateVolumeGroup(t *testing.T) { Name: "vg-test", Description: "vg-test", ProtectionPolicyID: volID, - VolumeIds: []string{volID2}, + VolumeIDs: []string{volID2}, } resp, err := C.CreateVolumeGroup(context.Background(), &createReq) @@ -224,7 +224,7 @@ func TestClientIMPL_RemoveMembersFromVolumeGroup(t *testing.T) { httpmock.NewStringResponder(201, respData)) createReq := VolumeGroupMembers{ - VolumeIds: []string{"id-1", "id-2"}, + VolumeIDs: []string{"id-1", "id-2"}, } resp, err := C.RemoveMembersFromVolumeGroup(context.Background(), &createReq, volID) diff --git a/volume_group_types.go b/volume_group_types.go index ee69b1d..c29dfc0 100644 --- a/volume_group_types.go +++ b/volume_group_types.go @@ -44,7 +44,7 @@ type VolumeGroupCreate struct { // All the volumes must be on the same Cyclone appliance and should not be part of another volume group. // If a list of volumes is not specified or if the specified list is empty, an // empty volume group of type Volume will be created. - VolumeIds []string `json:"volume_ids,omitempty"` + VolumeIDs []string `json:"volume_ids,omitempty"` } // VolumeGroup details about a volume groups. @@ -98,7 +98,7 @@ type VolumeGroups struct { } type VolumeGroupMembers struct { - VolumeIds []string `json:"volume_ids"` + VolumeIDs []string `json:"volume_ids"` } // VolumeGroupModify modifies existing Volume Group