Skip to content

Commit

Permalink
Merge pull request linode#153 from sgmac/deprecate_method
Browse files Browse the repository at this point in the history
Remove deprecated method
  • Loading branch information
0xch4z authored Jun 10, 2020
2 parents a3fd67d + e30f45a commit 43b9113
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 238 deletions.
218 changes: 0 additions & 218 deletions test/integration/fixtures/TestRenameVolume.yaml

This file was deleted.

13 changes: 0 additions & 13 deletions test/integration/volumes_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,19 +31,6 @@ func TestCreateVolume(t *testing.T) {
}
}

func TestRenameVolume(t *testing.T) {
client, volume, teardown, err := setupVolume(t, "fixtures/TestRenameVolume")
defer teardown()
if err != nil {
t.Error(err)
}

volume, err = client.RenameVolume(context.Background(), volume.ID, "test-volume-renamed")
if err != nil || volume.Label != "test-volume-renamed" {
t.Errorf("Error renaming volume, %s", err)
}
}

func TestResizeVolume(t *testing.T) {
client, volume, teardown, err := setupVolume(t, "fixtures/TestResizeVolume")
defer teardown()
Expand Down
7 changes: 0 additions & 7 deletions volumes.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,13 +205,6 @@ func (c *Client) CreateVolume(ctx context.Context, createOpts VolumeCreateOption
return resp.Result().(*Volume), nil
}

// RenameVolume renames the label of a Linode volume
// DEPRECATED: use UpdateVolume
func (c *Client) RenameVolume(ctx context.Context, id int, label string) (*Volume, error) {
updateOpts := VolumeUpdateOptions{Label: label}
return c.UpdateVolume(ctx, id, updateOpts)
}

// UpdateVolume updates the Volume with the specified id
func (c *Client) UpdateVolume(ctx context.Context, id int, volume VolumeUpdateOptions) (*Volume, error) {
var body string
Expand Down

0 comments on commit 43b9113

Please sign in to comment.