-
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
security.watchitems
: updating to use hashicorp/go-azure-sdk
#21944
Conversation
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 looks good sans one test failure which is just a quick fix around id parsing.
=== CONT TestAccWatchlistItem_update
testcase.go:110: Step 3/6 error: Error running apply: exit status 1
Error: parsing "/subscriptions/*******/resourceGroups/acctestRG-sentinel-230526221130409583/providers/Microsoft.OperationalInsights/workspaces/acctest-workspace-230526221130409583/providers/Microsoft.SecurityInsights/watchlists/accTestWL-230526221130409583": parsing the WatchlistItem ID: the number of segments didn't match
Expected a WatchlistItem ID that matched (containing 14 segments):
> /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.OperationalInsights/workspaces/workspaceValue/providers/Microsoft.SecurityInsights/watchlists/watchlistAliasValue/watchlistItems/watchlistItemIdValue
However this value was provided (which was parsed into 0 segments):
> /subscriptions/*******/resourceGroups/acctestRG-sentinel-230526221130409583/providers/Microsoft.OperationalInsights/workspaces/acctest-workspace-230526221130409583/providers/Microsoft.SecurityInsights/watchlists/accTestWL-230526221130409583
@@ -184,29 +165,30 @@ func (r WatchlistItemResource) Update() sdk.ResourceFunc { | |||
return fmt.Errorf("decoding %+v", err) | |||
} | |||
|
|||
watchlistId, err := parse.WatchlistID(model.WatchlistID) | |||
watchlistId, err := watchlistitems.ParseWatchlistItemID(model.WatchlistID) |
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 causing a test failure. I think it wants to be:
watchlistId, err := watchlistitems.ParseWatchlistItemID(model.WatchlistID) | |
watchlistId, err := watchlistitems.ParseWatchlist(model.WatchlistID) |
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.
LGTM!
security.watchitems
: updating to use hashicorp/go-azure-sdk
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. |
No description provided.