-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
move framework_validators.go
to new fwvalidators
package
#12268
move framework_validators.go
to new fwvalidators
package
#12268
Conversation
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 0 Click here to see the affected service packages
🔴 Errors occurred during REPLAYING mode. Please fix them to complete your PR. View the build log |
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.
Please update how we reference the validators in the fwprovider package now that they've been moved out of there; currently there are build errors:
google-beta/fwprovider/framework_provider.go:80:6: undefined: CredentialsValidator
odd that i didn't run into this error when building. Seemed to work just fine. Latest commit references explicitly from |
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 0 Click here to see the affected service packages
🔴 Errors occurred during REPLAYING mode. Please fix them to complete your PR. View the build log |
This comment was marked as outdated.
This comment was marked as outdated.
mmv1/third_party/terraform/fwvalidators/framework_validators.go
Outdated
Show resolved
Hide resolved
This comment was marked as duplicate.
This comment was marked as duplicate.
1 similar comment
This comment was marked as outdated.
This comment was marked as outdated.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment was marked as duplicate.
This comment was marked as duplicate.
This comment has been minimized.
This comment has been minimized.
This comment was marked as duplicate.
This comment was marked as duplicate.
123448a
to
8c0375c
Compare
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
This comment was marked as outdated.
1 similar comment
This comment was marked as outdated.
This comment was marked as outdated.
pushed the validator tests on top of your changes @SarahFrench just a heads-up! |
This comment was marked as outdated.
This comment was marked as outdated.
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
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.
Some final review comments - after this I think this PR would be ready to merge
mmv1/third_party/terraform/fwvalidators/framework_validators.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/fwvalidators/framework_validators.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/fwvalidators/framework_validators_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/fwvalidators/framework_validators.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/fwvalidators/framework_validators.go
Outdated
Show resolved
Hide resolved
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 0 Click here to see the affected service packages
🔴 Errors occurred during REPLAYING mode. Please fix them to complete your PR. View the build log |
// Non Negative Duration Validator | ||
type nonnegativedurationValidator struct { | ||
type nonnegativeBoundedDuration struct { | ||
} |
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.
Please revert the changes to this validator - it doesn't make assertions about the range/bounds a duration should be in so this name is misleading. My feedback previously was about your validator and showing how this validator's name indicated how it validated the duration.
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.
reverted.
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 4267 Click here to see the affected service packages
Action takenFound 4 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
mmv1/third_party/terraform/fwvalidators/framework_validators_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/fwvalidators/framework_validators_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/fwvalidators/framework_validators_test.go
Outdated
Show resolved
Hide resolved
mmv1/third_party/terraform/fwvalidators/framework_validators_test.go
Outdated
Show resolved
Hide resolved
🟢 Tests passed during RECORDING mode: 🟢 No issues found for passed tests after REPLAYING rerun. 🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
…est.go Co-authored-by: Sarah French <[email protected]>
…est.go Co-authored-by: Sarah French <[email protected]>
…est.go Co-authored-by: Sarah French <[email protected]>
…est.go Co-authored-by: Sarah French <[email protected]>
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
2 similar comments
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Hi there, I'm the Modular magician. I've detected the following information about your changes: Diff reportYour PR generated some diffs in downstreams - here they are.
|
Tests analyticsTotal tests: 4267 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
2 similar comments
Tests analyticsTotal tests: 4267 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
Tests analyticsTotal tests: 4267 Click here to see the affected service packages
Action takenFound 3 affected test(s) by replaying old test recordings. Starting RECORDING based on the most recent commit. Click here to see the affected tests
|
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
🔴 Tests failed during RECORDING mode: 🔴 Errors occurred during RECORDING mode. Please fix them to complete your PR. |
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
70bef40
into
GoogleCloudPlatform:FEATURE-BRANCH-ephemeral-resource
This PR would make it possible to add validators being used by EphemeralResources.
When attempting to move validators to
framework_provider.go
infwprovider
we end up getting animport cycle
because offwprovider
importingresourcemanager
in order to support ephermeral resources and data sources under plugin-framework.You can view how
service_account_token
ephemeral would look with this being merged hereThe validators can be seen being used in this resource where they are added in the same reosurce file itself instead of being placed in the validator file. #12140
When we merg this we can perform the following:
fwvalidators
to fiximport cycle
error BBBmau/magic-modules#24 intoservice_account_token
resource supprtephemeral
: addephemeral_google_service_account_token
#12140 - tests will be passing as i've ran locally with thefwvalidators
package. This would also allow other resources to add the necessary validators intofwvalidators
package.Release Note Template for Downstream PRs (will be copied)
See Write release notes for guidance.