-
Notifications
You must be signed in to change notification settings - Fork 16
What if ... ImportBlockWithResourceIdentity #431
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
Conversation
|
||
// ImportStateBlockConfig, if non-empty, supplies declarative import | ||
// configuration. This is (?mutually exclusive of ImportStateID + ResourceName?). | ||
ImportStateBlockConfig string |
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.
If we can generate config on our first try, then the usefulness of this is secondary.
helper/resource/testing.go
Outdated
type ImportStateKind byte | ||
|
||
const ( | ||
TerraformImportCommand ImportStateKind = iota |
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.
Naming is ... naming.
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.
The thought is: we're expanding to 3 sub-modes of import testing. Make it explicit, not inferred.
TerraformImportCommand is what we do today & will be the compatibility default.
|
||
return testprovider.Resource{ | ||
CreateResponse: &resource.CreateResponse{ | ||
NewResourceIdentityData: tftypes.NewValue( |
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.
New and shiny!
helper/resource/testing.go
Outdated
type ImportStateKind byte | ||
|
||
const ( | ||
TerraformImportCommand ImportStateKind = iota |
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.
TerraformImportCommand ImportStateKind = iota | |
ImportCommandWithId ImportStateKind = iota |
Closing in favor of #442. |
Cross-ref #141
cc: @austinvalle