tests from CreateNewAccountTestCase are failing

Bug #1211818 reported by Leo Arias
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
u1-test-utils
Fix Committed
Low
Leo Arias

Bug Description

$ fab test:u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase
test_create_account_to_site_not_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase) ... FAIL
test_create_account_to_site_not_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase) ... FAIL
test_create_account_to_site_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase) ... FAIL
test_create_account_to_site_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase) ... FAIL
test_create_account_with_unexpected_site_not_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase) ... FAIL
test_create_account_with_unexpected_site_not_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase) ... FAIL

======================================================================
FAIL: test_create_account_to_site_not_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/selftests/acceptance/test_sst_helpers.py", line 332, in test_create_account_to_site_not_recognized
    sso_sst.create_new_account(user, is_site_recognized=False)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/__init__.py", line 46, in create_new_account
    create_account.create_ubuntu_sso_account(user)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 42, in inner
    return f(instance, *args, **kwargs)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/pages.py", line 168, in create_ubuntu_sso_account
    self._fill_new_account_form(user)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/pages.py", line 174, in _fill_new_account_form
    sst.actions.write_textfield('id_displayname', user.full_name)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/.env/lib/python2.7/site-packages/sst/actions.py", line 548, in write_textfield
    textfield = assert_textfield(id_or_elem)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/.env/lib/python2.7/site-packages/sst/actions.py", line 532, in assert_textfield
    elem = _get_elem(id_or_elem)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/.env/lib/python2.7/site-packages/sst/actions.py", line 906, in _get_elem
    _raise(msg)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/.env/lib/python2.7/site-packages/sst/actions.py", line 118, in _raise
    raise AssertionError(msg)
AssertionError: Element with id: 'id_displayname' does not exist

======================================================================
FAIL: test_create_account_to_site_not_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase)
----------------------------------------------------------------------
_StringException: traceback-1: {{{
Traceback (most recent call last):
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/selftests/acceptance/test_sst_helpers.py", line 332, in test_create_account_to_site_not_recognized
    sso_sst.create_new_account(user, is_site_recognized=False)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/__init__.py", line 45, in create_new_account
    create_account = log_in.go_to_create_new_account()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 42, in inner
    return f(instance, *args, **kwargs)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/pages.py", line 129, in go_to_create_new_account
    return CreateAccountFromRedirect()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/pages.py", line 135, in __init__
    super(PageWithAnonymousSubheader, self).__init__(open_page)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 76, in __init__
    self.assert_page_is_open()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 95, in assert_page_is_open
    self.assert_url_path()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 134, in assert_url_path
    self._assert_url_path_match()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 142, in _assert_url_path_match
    current_url_path, url_path_regexp)
AssertionError: The current URL path /tmp/tmpFqwfJ_/03228cc0-0427-11e3-9384-b8a3867093f3/+decide doesn't match /.*/\+new_account$
}}}

======================================================================
FAIL: test_create_account_to_site_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/selftests/acceptance/test_sst_helpers.py", line 325, in test_create_account_to_site_recognized
    sso_sst.create_new_account(user, is_site_recognized=True)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/__init__.py", line 46, in create_new_account
    create_account.create_ubuntu_sso_account(user)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 42, in inner
    return f(instance, *args, **kwargs)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/pages.py", line 168, in create_ubuntu_sso_account
    self._fill_new_account_form(user)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/pages.py", line 174, in _fill_new_account_form
    sst.actions.write_textfield('id_displayname', user.full_name)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/.env/lib/python2.7/site-packages/sst/actions.py", line 548, in write_textfield
    textfield = assert_textfield(id_or_elem)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/.env/lib/python2.7/site-packages/sst/actions.py", line 532, in assert_textfield
    elem = _get_elem(id_or_elem)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/.env/lib/python2.7/site-packages/sst/actions.py", line 906, in _get_elem
    _raise(msg)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/.env/lib/python2.7/site-packages/sst/actions.py", line 118, in _raise
    raise AssertionError(msg)
AssertionError: Element with id: 'id_displayname' does not exist

======================================================================
FAIL: test_create_account_to_site_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase)
----------------------------------------------------------------------
_StringException: traceback-1: {{{
Traceback (most recent call last):
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/selftests/acceptance/test_sst_helpers.py", line 325, in test_create_account_to_site_recognized
    sso_sst.create_new_account(user, is_site_recognized=True)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/__init__.py", line 45, in create_new_account
    create_account = log_in.go_to_create_new_account()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 42, in inner
    return f(instance, *args, **kwargs)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/pages.py", line 129, in go_to_create_new_account
    return CreateAccountFromRedirect()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/sst/pages.py", line 135, in __init__
    super(PageWithAnonymousSubheader, self).__init__(open_page)
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 76, in __init__
    self.assert_page_is_open()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 95, in assert_page_is_open
    self.assert_url_path()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 134, in assert_url_path
    self._assert_url_path_match()
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sst/__init__.py", line 142, in _assert_url_path_match
    current_url_path, url_path_regexp)
AssertionError: The current URL path /tmp/tmpokGKpQ/07db4e78-0427-11e3-9384-b8a3867093f3/+decide doesn't match /.*/\+new_account$
}}}

======================================================================
FAIL: test_create_account_with_unexpected_site_not_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase)
----------------------------------------------------------------------
_StringException: Traceback (most recent call last):
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/selftests/acceptance/test_sst_helpers.py", line 344, in test_create_account_with_unexpected_site_not_recognized
    'Please check that you are accessing SSO from a server that is '
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/logging.py", line 54, in assertLogLevelContains
    level, message, check_traceback=check_traceback))
  File "/usr/lib/python2.7/unittest/case.py", line 424, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true

======================================================================
FAIL: test_create_account_with_unexpected_site_not_recognized (u1testutils.sso.selftests.acceptance.test_sst_helpers.CreateNewAccountTestCase)
----------------------------------------------------------------------
_StringException: traceback-1: {{{
Traceback (most recent call last):
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/sso/selftests/acceptance/test_sst_helpers.py", line 344, in test_create_account_with_unexpected_site_not_recognized
    'Please check that you are accessing SSO from a server that is '
  File "/home/elopio/workspace/canonical/ubuntuone/u1-test-utils/trunk/u1testutils/logging.py", line 54, in assertLogLevelContains
    level, message, check_traceback=check_traceback))
  File "/usr/lib/python2.7/unittest/case.py", line 424, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true
}}}

----------------------------------------------------------------------
Ran 6 tests in 25.341s

FAILED (failures=6)
Totals: ran(6), skipped(0), errors(0), failures(6)

Fatal error: Tests failed.

Aborting.

Related branches

Changed in u1-test-utils:
status: Confirmed → Fix Committed
Dave Morley (davmor2)
Changed in u1-test-utils:
importance: Undecided → Low
tags: added: u1-on-dev
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.