Skip to content

chore(redis): remove deprecated ioutil package #2234

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions scaleway/resource_redis_cluster.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package scaleway
import (
"context"
"fmt"
"io/ioutil"
"io"
"strings"
"time"

Expand Down Expand Up @@ -324,7 +324,7 @@ func resourceScalewayRedisClusterRead(ctx context.Context, d *schema.ResourceDat
return diag.FromErr(fmt.Errorf("failed to fetch cluster certificate: %w", err))
}

certificateContent, err := ioutil.ReadAll(certificate.Content)
certificateContent, err := io.ReadAll(certificate.Content)
if err != nil {
return diag.FromErr(fmt.Errorf("failed to read cluster certificate: %w", err))
}
Expand Down
763 changes: 319 additions & 444 deletions scaleway/testdata/data-source-redis-cluster-basic.cassette.yaml

Large diffs are not rendered by default.

916 changes: 556 additions & 360 deletions scaleway/testdata/redis-cluster-acl.cassette.yaml

Large diffs are not rendered by default.

991 changes: 697 additions & 294 deletions scaleway/testdata/redis-cluster-basic.cassette.yaml

Large diffs are not rendered by default.

625 changes: 415 additions & 210 deletions scaleway/testdata/redis-cluster-certificate.cassette.yaml

Large diffs are not rendered by default.

874 changes: 504 additions & 370 deletions scaleway/testdata/redis-cluster-endpoints-cluster-mode.cassette.yaml

Large diffs are not rendered by default.

1,542 changes: 772 additions & 770 deletions scaleway/testdata/redis-cluster-endpoints-standalone.cassette.yaml

Large diffs are not rendered by default.

1,039 changes: 457 additions & 582 deletions scaleway/testdata/redis-cluster-migrate.cassette.yaml

Large diffs are not rendered by default.

442 changes: 175 additions & 267 deletions scaleway/testdata/redis-cluster-no-certificate.cassette.yaml

Large diffs are not rendered by default.

801 changes: 470 additions & 331 deletions scaleway/testdata/redis-cluster-settings.cassette.yaml

Large diffs are not rendered by default.