Skip to content

Commit 13b813e

Browse files
jremy42protobuf-ci-cd
andauthored
fix(rdb): add pagination support for ACL rules (#3207)
updatte cassette Co-authored-by: protobuf-ci-cd <[email protected]>
1 parent bb17f97 commit 13b813e

File tree

3 files changed

+1756
-1119
lines changed

3 files changed

+1756
-1119
lines changed

internal/services/rdb/acl.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ func ResourceRdbACLRead(ctx context.Context, d *schema.ResourceData, m any) diag
122122
res, err := rdbAPI.ListInstanceACLRules(&rdb.ListInstanceACLRulesRequest{
123123
Region: region,
124124
InstanceID: instanceID,
125-
}, scw.WithContext(ctx))
125+
}, scw.WithAllPages(), scw.WithContext(ctx))
126126
if err != nil {
127127
if httperrors.Is404(err) {
128128
d.SetId("")

internal/services/rdb/testdata/acl-basic.cassette.yaml

Lines changed: 1049 additions & 706 deletions
Large diffs are not rendered by default.

internal/services/rdb/testdata/data-source-acl-basic.cassette.yaml

Lines changed: 706 additions & 412 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)