Skip to content
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

Observer status code in V2FeedParser #374

Merged
merged 1 commit into from
Mar 16, 2016
Merged

Observer status code in V2FeedParser #374

merged 1 commit into from
Mar 16, 2016

Conversation

joelverhagen
Copy link
Member

There are three endpoints hit here with slightly different HTTP status code requirements.

  1. /api/v2/Search - expects only 200. Everything else should cause an exception. 404 is never expected.
  2. /api/v2/FindPackagesById - expects only 200. Everything else should cause an exception. 404 is never expected.
  3. /api/v2/Packages(Id='...',Version='...') - expects 200 for success and 404/204 for no match. Everything else should cause an exception.

Verified on NuGet.org functionality.

@zhili1208 @emgarten @johnataylor @yishaigalatzer

@joelverhagen joelverhagen changed the title Ob Observer status code in V2FeedParser Mar 15, 2016
@zhili1208
Copy link
Contributor

looks good, verified against ProGet and NuGet.Server, works well

@emgarten
Copy link
Member

Great tests and fix! 🚀

@joelverhagen joelverhagen merged commit df83b5d into dev Mar 16, 2016
@joelverhagen joelverhagen deleted the jver-statuscode branch March 16, 2016 00:02
@joelverhagen
Copy link
Member Author

Related: NuGet/Home#2298

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants