-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
azurerm_log_analytics_saved_search
- update validation for azurerm_log_analytics_saved_search
#26701
azurerm_log_analytics_saved_search
- update validation for azurerm_log_analytics_saved_search
#26701
Conversation
…log_analytics_saved_search`
|
||
category = "Saved Search Test Category" | ||
display_name = "Create or Update Saved Search Test" | ||
query = "Heartbeat | summarize Count() by Computer | take a" |
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.
query = "Heartbeat | summarize Count() by Computer | take a" | |
query = "Heartbeat | summarize Count() by Computer | take 1" |
@@ -52,7 +52,7 @@ The following arguments are supported: | |||
|
|||
* `function_alias` - (Optional) The function alias if the query serves as a function. Changing this forces a new resource to be created. | |||
|
|||
* `function_parameters` - (Optional) The function parameters if the query serves as a function. Changing this forces a new resource to be created. | |||
* `function_parameters` - (Optional) The function parameters if the query serves as a function. Changing this forces a new resource to be created. For more examples and proper syntax please refer to [this document](https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/functions/user-defined-functions) |
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.
* `function_parameters` - (Optional) The function parameters if the query serves as a function. Changing this forces a new resource to be created. For more examples and proper syntax please refer to [this document](https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/functions/user-defined-functions) | |
* `function_parameters` - (Optional) The function parameters if the query serves as a function. Changing this forces a new resource to be created. For more examples and proper syntax please refer to [this document](https://learn.microsoft.com/en-us/azure/data-explorer/kusto/query/functions/user-defined-functions). |
log_analytics_workspace_id = azurerm_log_analytics_workspace.test.id | ||
|
||
category = "Saved Search Test Category" | ||
display_name = "Create or Update Saved Search Test" |
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.
display_name = "Create or Update Saved Search Test" | |
display_name = "SavedSearchTest" |
name = "acctestLASS-%d" | ||
log_analytics_workspace_id = azurerm_log_analytics_workspace.test.id | ||
|
||
category = "Saved Search Test Category" |
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 sure if spaces are allowed here
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.
per the testing result it should be fine
), | ||
}, | ||
data.ImportStep(), | ||
{ |
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.
ideally a test case should be added that verifies multiple parameters as well, perhaps in 2-3 different forms, just to test the repetitive part of the regex
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.
multiple parameters are tested in the TestAccLogAnalyticsSavedSearch_complete
test case
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.
Sorry for the delay, just updated |
lgtm since the tests pass |
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.
Thanks @ziyeqf LGTM 👍
I'm going to lock this pull request because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active contributions. |
Community Note
Description
These validation regxp might be out of date, can not validate some format of parameters. The expression was provided on #26685, Thanks to @Folling
PR Checklist
For example: “
resource_name_here
- description of change e.g. adding propertynew_property_name_here
”Changes to existing Resource / Data Source
Testing
Change Log
Below please provide what should go into the changelog (if anything) conforming to the Changelog Format documented here.
azurerm_log_analytics_saved_search
- pdate validation forazurerm_log_analytics_saved_search
[azurerm_log_analytics_saved_search
- update validation forazurerm_log_analytics_saved_search
#26701]This is a (please select all that apply):
Related Issue(s)
Fixes #26685
Note
If this PR changes meaningfully during the course of review please update the title and description as required.