Skip to content

Commit

Permalink
Fake pollers accept more status codes (#1436)
Browse files Browse the repository at this point in the history
The underlying pollers in azcore always accept 200 and possible 204 as
valid HTTP responses. While services should model this, some only model
the status code for the initial HTTP response.
Updated fakes to emulate the behavior in azcore.
  • Loading branch information
jhendrixMSFT authored Oct 4, 2024
1 parent 2a6635a commit 92ddf80
Show file tree
Hide file tree
Showing 56 changed files with 453 additions and 429 deletions.
4 changes: 4 additions & 0 deletions packages/autorest.go/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@
* Fake servers will honor the caller's context in the `*http.Request`.
* Add missing error check when parsing multipart/form content in fakes.

### Other Fixes

* Fake pollers will always include `http.StatusOK` as an acceptible status code, and `http.StatusNoContent` for operations that don't return a body.

## 4.0.0-preview.67 (2024-07-30)

### Bugs Fixed
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 92ddf80

Please sign in to comment.