-
Notifications
You must be signed in to change notification settings - Fork 7
DaVinci beta data sources #1174
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
base: DavinciApplicationKeyAndSecretResources
Are you sure you want to change the base?
DaVinci beta data sources #1174
Conversation
Including filled-out test template
spjwks_url should be sp_jwks_url
patrickcping
left a comment
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 minor things to review, but once done LGTM 🚀 🚀
| github.com/patrickcping/pingone-go-sdk-v2/risk v0.21.0 | ||
| github.com/patrickcping/pingone-go-sdk-v2/verify v0.10.0 | ||
| github.com/pingidentity/pingone-go-client v0.2.0 | ||
| github.com/pingidentity/pingone-go-client v0.3.1-0.20251117224159-0cf427981cb9 |
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.
++
| }, | ||
| "GetDavinciApplicationById", | ||
| framework.DefaultCustomError, | ||
| framework.DefaultRetryable, |
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.
DefaultCreateReadRetryable
internal/service/davinci/data_source_davinci_application_gen_test.go
Outdated
Show resolved
Hide resolved
| }, | ||
| Computed: true, | ||
| }, | ||
| "environment_id": schema.StringAttribute{ |
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.
++
| stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"), "Must be a valid UUID"), | ||
| }, | ||
| }, | ||
| "id": schema.StringAttribute{ |
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.
++
| }, | ||
| "GetConnectorInstances", | ||
| framework.DefaultCustomError, | ||
| framework.DefaultRetryable, |
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.
DefaultCreateReadRetryable
| }, | ||
| Computed: true, | ||
| }, | ||
| "environment_id": schema.StringAttribute{ |
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.
We have framework.Attr_LinkID for consistency
| stringvalidator.RegexMatches(regexp.MustCompile("^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$"), "Must be a valid UUID"), | ||
| }, | ||
| }, | ||
| "id": schema.StringAttribute{ |
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.
We have framework.Attr_ID for consistency
| }, | ||
| "GetConnectors", | ||
| framework.DefaultCustomError, | ||
| framework.DefaultRetryable, |
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.
DefaultCreateReadRetryable
|
|
||
| func() (any, *http.Response, error) { | ||
| fO, fR, fErr := r.Client.DaVinciConnectorsApi.GetConnectors(ctx, environmentIdUuid).Execute() | ||
| return framework.CheckEnvironmentExistsOnPermissionsError(ctx, r.Client, data.EnvironmentId.ValueString(), fO, fR, fErr) |
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.
I haven't pointed it out on any other reviews so far, but it occurs to me that the new SDK should now be fulfilling the role of framework.CheckEnvironmentExistsOnPermissionsError. Anything that exists on the new SDK could have this check removed (although it does not hurt to have it remain)
Change Description
Add various beta data sources for DaVinci:
pingone_davinci_applicationpingone_davinci_applicationspingone_davinci_connectorpingone_davinci_connectorspingone_davinci_connector_instancepingone_davinci_connector_instancesChange Characteristics
Checklist
All full (or complete) PRs that need review prior to merge should have the following box checked.
If contributing a partial or incomplete change (expecting the development team to complete the remaining work) please leave the box unchecked
Required SDK Upgrades
Testing
This PR has been tested with:
Shell Command(s)
Testing Results
Expand Results
End-to-end Tests Workflow Links