Skip to content
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

adds UpdateRule method #176

Closed
wants to merge 1 commit into from
Closed

adds UpdateRule method #176

wants to merge 1 commit into from

Conversation

greg-oc
Copy link
Contributor

@greg-oc greg-oc commented Jul 29, 2024

Adds an extra struct and method to address this issue RedisLabs/terraform-provider-rediscloud#547

@@ -391,6 +391,95 @@ func TestUpdateRedisRule(t *testing.T) {
require.NoError(t, err)
}

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nil_name_test.txt
Not sure a new model is needed, I got this test to pass (Name is nil, "name" is not present in output JSON)
Maybe I've completely missed the point though

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

redis_rules.UpdateRedisRuleRequest{
		RedisRule: redis.String("+@let-me-update-resources"),
}

This also works (same thing, bit neater than the explicit nil)

Copy link
Contributor

@JohnSharpe JohnSharpe left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approved but you might get away with no changes to this project

@JohnSharpe JohnSharpe closed this Aug 28, 2024
@JohnSharpe JohnSharpe deleted the fix_547_ACL_update branch August 28, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants