#4262 Failing OpenID test

v1.0.0
closed
sf-2 (994)
General
2015-08-20
2012-05-22
Cory Johns
No
FAIL: allura.tests.functional.test_auth:TestAuth.test_openid
  vim +99 allura/tests/functional/test_auth.py  # test_openid
    assert '<form' in result.body
AssertionError:

From some further inspection, it's making a request to http://www.google.com/accounts/o8/id and getting the following error:

DiscoveryFailure('HTTP Response status from identity URL host is not 200. Got status 403',)

It would probably be best to mock out this discovery request for this test so that it doesn't rely on the state of a third-party server.

Discussion

  • Cory Johns - 2012-05-22

    allura:cj/4262

    I mocked out the 3rd party OpenID provider calls, and split the one large mess of a test into discrete cases. Should have better coverage now, too.

     
  • Cory Johns - 2012-05-22
    • status: open --> code-review
    • qa: Tim Van Steenburgh
     
    • status: code-review --> closed
     

Log in to post a comment.