-
Notifications
You must be signed in to change notification settings - Fork 7
pingone_davinci_flow_deploy and pingone_davinci_flow_enabled beta resources #1177
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: GeneratedDVFlowWithDraftClient
Are you sure you want to change the base?
pingone_davinci_flow_deploy and pingone_davinci_flow_enabled beta resources #1177
Conversation
…lse (#1180) * Implement workaround for boolean false values * Test creation from scratch with false value * Relax validation to support importing variables created via UI Allow string field to be used for all types except secret_string
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.
A few things to look at but once they're addressed, LGTM 🚀 🚀
| resp.Schema = schema.Schema{ | ||
| Description: "Resource to deploy a DaVinci flow.", | ||
| Attributes: map[string]schema.Attribute{ | ||
| "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.
There is 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"), | ||
| }, | ||
| }, | ||
| "flow_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.
This may be better as the DV custom type.
| stringplanmodifier.RequiresReplace(), | ||
| }, | ||
| }, | ||
| "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
| }, | ||
| "DeployFlow", | ||
| framework.DefaultCustomError, | ||
| framework.InsufficientPrivilegeRetryable, |
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.
Assuming this is new to the base branch of the PR, this should already be implemented as DefaultCreateReadRetryable
| }, | ||
| "GetFlowById", | ||
| framework.CustomErrorResourceNotFoundWarning, | ||
| framework.InsufficientPrivilegeRetryable, |
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.
As above
| }, | ||
| "GetFlowById", | ||
| framework.CustomErrorResourceNotFoundWarning, | ||
| framework.InsufficientPrivilegeRetryable, |
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.
This is probably doing the same job as DefaultCreateReadRetryable
Change Description
pingone_davinci_flow_deployresourcepingone_davinci_flow_enabledresource to control enabling and disabling flowspingone_davinci_flowresourceChange 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
Currently the broken deploy tests are failing due to a client issue - will be fixed by pingidentity/pingone-go-client#54. I pasted the local run of the enabled tests below, and will rely on the end-to-end tests linked below for the deploy test results, since they can take a long time to run due to the retries.
Expand Results
End-to-end Tests Workflow Links