terraform-provider-azurerm
terraform-provider-azurerm copied to clipboard
`automation`: remove or updat acctests contains replace cases
trafficstars
Community Note
- Please vote on this PR by adding a :thumbsup: reaction to the original PR to help the community and maintainers prioritize for review
- Please do not leave comments along the lines of "+1", "me too" or "any updates", they generate extra noise for PR followers and do not help prioritize for review
Description
Remove or update acctests contains replace cases of automation.
To update the Watcher, it must first be stopped; otherwise, the server will return an error as below. The original TestAccWatcher_update was a replacement rather than an actual update, which is why it appeared successful. I'm skipping the update case for now due to other issues and will create another PR to address it.
Watcher Name: "acctest-watcher-241018110129761686"): unexpected status 400
(400 Bad Request) with response:
{"code":"BadRequest","message":"{\"Message\":\"Watcher must be stopped before
updating.\"}"}
Test Result:
--- PASS: TestAccAutomationRunbook_withJobSchedule (298.70s)
--- PASS: TestAccPython3Package_complete (249.26s)