-
Notifications
You must be signed in to change notification settings - Fork 247
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
feat(synthetics): add labels resource #407
Conversation
851cee2
to
726f850
Compare
726f850
to
8929243
Compare
return nil | ||
} | ||
|
||
func expandSyntheticsLabel(d *schema.ResourceData) *synthetics.MonitorLabel { |
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.
Not a blocker, but could potentially put these into the structures_{resource}.go pattern and add some a couple unit tests for expand and flatten.
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.
however, I see that they are the top-level scenario that we talked about before, so maybe no big deal.
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 left them here since there was no data source that needed to share them.
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 makes sense though, I'll make it so.
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.
@sanderblue that's right, seems like there is no good way to unit test at the top level since the expand and flatten functions depend on an instace of schema.ResourceData
. I will leave this as-is after all.
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.
🚚
* feat(synthetics): add labels resource * docs(synthetics) add website docs for synthetics labels resource * chore: vendor modules
Resolves #164.
This PR adds a new synthetics labels resource, following existing patterns.