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

new resource quota rules #234

Merged
merged 4 commits into from
Jul 18, 2024

Conversation

suhasbshekar
Copy link
Contributor

@suhasbshekar suhasbshekar linked an issue Jun 18, 2024 that may be closed by this pull request
resource.Test(t, resource.TestCase{
PreCheck: func() { ntest.TestAccPreCheck(t) },
ProtoV6ProviderFactories: ntest.TestAccProtoV6ProviderFactories,
Steps: []resource.TestStep{
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we have a test with the required parameters only if it makes sense?

Copy link
Contributor Author

@suhasbshekar suhasbshekar Jun 27, 2024

Choose a reason for hiding this comment

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

the current test covers all scenarios, so it should be fine I think

Copy link
Contributor

Choose a reason for hiding this comment

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

ok. I just want to make sure if the user provides only required, very limited basic parameters and it should work.

@suhasbshekar suhasbshekar requested a review from chuyich June 27, 2024 18:31
}
data.Files = objectValue
data.ID = types.StringValue(restInfo.UUID)

Copy link
Contributor

Choose a reason for hiding this comment

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

Is 'user' missing?

Copy link
Contributor Author

@suhasbshekar suhasbshekar Jun 28, 2024

Choose a reason for hiding this comment

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

Nope, not required here, I tested it again, its good, successfully creating, modifying, deleting and updating the state file

Copy link
Contributor

Choose a reason for hiding this comment

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

Is user not returned then?

Copy link
Contributor Author

@suhasbshekar suhasbshekar Jun 28, 2024

Choose a reason for hiding this comment

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

user can be added only through input and when used as input state is updated, if not, its always empty and its not modifiable too

@suhasbshekar suhasbshekar requested a review from wenjun666 July 15, 2024 23:05
@suhasbshekar suhasbshekar merged commit ed72bd0 into integration/main Jul 18, 2024
9 checks passed
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.

[New Resource]: /storage/quota/rules
4 participants