-
Notifications
You must be signed in to change notification settings - Fork 178
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
fix: Marks project.region_usage_restrictions
as OptionalComputed to avoid provider upgrade errors
#2291
fix: Marks project.region_usage_restrictions
as OptionalComputed to avoid provider upgrade errors
#2291
Conversation
do we have an acceptance test for this? |
@marcosuma I have been investigating a bit, and we don't have ANY test running in |
11f5117
to
17591c0
Compare
…vider upgrade errors
81d47ae
to
2ba7f47
Compare
APIx bot: a message has been sent to Docs Slack channel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
{ | ||
ExternalProviders: acc.ExternalProviders("1.16.0"), | ||
Config: configGovSimple(orgID, projectName), | ||
Check: resource.ComposeTestCheckFunc( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: based on what we were discussing last Thurs, have you done a quick manual check to verify the test is actually failing if you write a wrong check assertion? It would help us make sure the test is actually set-up correctly.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I did it :D Next time, I'll try to check in the test before the fix so it can be seen in the CI too (test added push and then fix push) 🚀
Nice one! |
…tions_optional_only
Description
project.region_usage_restrictions
as OptionalComputed to avoid provider upgrade errorsTestAccGovProject_withProjectOwner
in CITestMigGovProject_regionUsageRestrictionsDefault
(also enabled in the CI, error reproduction)Link to any related issue(s): #2263 and CLOUDP-248517
Marking the attribute as Computed as earlier versions of the resource will have an empty state for this attribute.
Since the state is empty and the default server value depends on cloud-gov or not:
COMMERCIAL_FEDRAMP_REGIONS_ONLY
null
Example of error and solution:
After adding
Computed: true
Type of change:
Required Checklist:
Further comments