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

oauth2server: test fix #3379

Closed

Conversation

crepererum
Copy link
Contributor

  • Fixes oauth2server test.

Signed-off-by: Marco Neumann marco@crepererum.net

@@ -231,7 +231,7 @@ def test_invalid_authorize_requests(self):
))
self.assertStatus(r, 302)
next_url, data = self.parse_redirect(r.location)
self.assertEqual(data['error'], 'unauthorized_client')
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO you should not change the test. (cc @lnielsen)

@jirikuncar jirikuncar added this to the v2.2.0 milestone Jul 20, 2015
* Fixes oauth2server test.

Signed-off-by: Marco Neumann <marco@crepererum.net>
@crepererum
Copy link
Contributor Author

OK, so @hachreak tracked down the issue: oauthlib released a new version which is not compatible with our tests. Because this lib is a second order requirement through Flask-OAuthlib, our minimal version generator does not work and all 3 test levels are failing. We now have the following options:

  1. skip the tests and fix it later (again: the tests seem to be broken, not the lib)
  2. add oauthlib to setup.py and put a constraint on it.

This is also related to #2158 which suggest that we should not constraint the version but rather get our tests fixed and finally do the upgrade for Flask-OAuthlib as well.

@jirikuncar
Copy link
Member

  1. add oauthlib to setup.py and put a constraint on it.

I would go for number two. WDYT @lnielsen

@lnielsen
Copy link
Member

I vote for option 2 as well, unless someone wants to upgrade Flask-OAuthlib. Disabling the test is not an option in my opinion.

Btw, "Fixes oauth2server test." is quite misleading when in fact it's disabling the test ;-)

hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 21, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 21, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 21, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 21, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 22, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 22, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 22, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 22, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 22, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 22, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 22, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
hachreak pushed a commit to hachreak/invenio that referenced this pull request Jul 23, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
jirikuncar pushed a commit to jirikuncar/invenio that referenced this pull request Sep 3, 2015
* Fixes a maximum version requirement for oauthlib. (closes inveniosoftware#3379)

* Cherry-picked from a3f9db0.

Signed-off-by: Leonardo Rossi <leonardo.r@cern.ch>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants