Autopilot tests fail to create fake account on device

Bug #1347905 reported by Nicholas Skaggs
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Notes app
Fix Released
Critical
Nicholas Skaggs
reminders-app (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

On the device, the code to create a fake account fails. This short snippet of python runs properly on a desktop, creating an account. On a phablet device, the same code fails, leaving the account object null with nothing to print.

from pprint import pprint
from gi.repository import Accounts, GLib, Signon
manager = Accounts.Manager.new()
account = manager.create_account('evernote-sandbox')
pprint(account.get_settings_dict())

Related branches

Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

Althought this is upstream code; I'm not sure who to place the bug against.

no longer affects: account-plugins
Revision history for this message
David Planella (dpm) wrote :

I'd recommend to talk to mardy on this one.

David Planella (dpm)
Changed in reminders-app:
status: New → Triaged
importance: Undecided → Critical
Leo Arias (elopio)
tags: added: qa-removed-test
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:reminders-app at revision 199, scheduled for release in reminders-app, milestone 0.4

Changed in reminders-app:
status: Triaged → Fix Committed
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

The workaround just disables these tests; the real problem still exists.

Changed in reminders-app:
status: Fix Committed → Confirmed
Revision history for this message
Nicholas Skaggs (nskaggs) wrote :

I think the answer to this is rather simple.. Evernote works, but evernote-sandbox does not:

>>> account = manager.create_account('evernote')
>>> pprint(account.get_settings_dict())
{'auth/mechanism': 'HMAC-SHA1',
 'auth/method': 'oauth2',
 'auth/oauth2/HMAC-SHA1/AuthorizationEndpoint': 'https://www.evernote.com/OAuth.action',
 'auth/oauth2/HMAC-SHA1/Callback': 'https://wiki.ubuntu.com/',
 'auth/oauth2/HMAC-SHA1/ConsumerKey': 'canonicalis',
 'auth/oauth2/HMAC-SHA1/ConsumerSecret': '174a72ce5bffbcad',
 'auth/oauth2/HMAC-SHA1/HostName': 'www.evernote.com',
 'auth/oauth2/HMAC-SHA1/RequestEndpoint': 'https://www.evernote.com/oauth',
 'auth/oauth2/HMAC-SHA1/TokenEndpoint': 'https://www.evernote.com/oauth'}

David Planella (dpm)
Changed in reminders-app:
status: Confirmed → In Progress
assignee: nobody → Nicholas Skaggs (nskaggs)
Revision history for this message
Ubuntu Phone Apps Jenkins Bot (ubuntu-phone-apps-jenkins-bot) wrote :

Fix committed into lp:reminders-app at revision None, scheduled for release in reminders-app, milestone 0.4

Changed in reminders-app:
status: In Progress → Fix Committed
Changed in reminders-app:
status: Fix Committed → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :
Download full text (5.1 KiB)

This bug was fixed in the package reminders-app - 0.4+15.04.20141118-0ubuntu1

---------------
reminders-app (0.4+15.04.20141118-0ubuntu1) vivid; urgency=low

  [ Akiva Avraham ]
  * Updated library imports to qtquick-2.3.
  * Upgraded ubuntu.components to 1.1 Upgraded ubuntu.components.xxxx to
    1.0.

  [ Paolo Rotolo ]
  * Added Tags icon.

  [ Alan Pope ]
  * Fix incorrect email address.

  [ Michael Zanetti ]
  * Add count properties to models.
  * add API to save notebooks.
  * correctly update the model when a notebook changes.
  * Some performance optimizations when having many, big notes
  * improve startup sequence
  * suppress some warnings. (LP: #1316800)
  * Add support for tags. (LP: #1379747)
  * Fixed bug 1378014 - Notes should be sorted by modification date by
    default Fixed bug 1380255 - Add day of the month to the notes
    preview. (LP: #1378014, #1380255)
  * Fixed change accounts page. (LP: #1379751)
  * Split the actual evernote code out from the QML plugin into a
    libqtevernote. (LP: #1385994)
  * Improve reminders delegate. (LP: #1318054)
  * fix pulldown positioning. (LP: #1368548)
  * split loading of notes into chunks
  * Don't reload the note's content when reloading a note for its
    resources. (LP: #1380987)
  * improve sorting by falling back on title if the first sortrole is
    equal. (LP: #1380987)
  * add gif support
  * Improve handling of connection errors.
  * include tags when cloning a note.
  * add scrollbars to listviews.
  * Don't always build translations
  * implement full note caching
  * improve note edit view. (LP: #1391410, #1316947)
  * small fixes in the new edit mode
  * Created URI handlers to load the app from the scope. (LP: #1391689,
    #1385995)

  [ Víctor R. Ruiz ]
  * "Search notes" unstranslated. Update to the code and template. (LP:
    #1356944)
  * Another batch of untranslated strings. Updated template. (LP:
    #1356944)

  [ Riccardo Padovani ]
  * Fixed #1340644 - Notes go in default notebook when edited. (LP:
    #1340644)
  * Upgraded the WebView to Oxide. (LP: #1317580)
  * Fixed #1340686 - Selecting a notebook then add a note doesn't
    default the note to the notebook. (LP: #1340686)
  * Added a couple of new i18n.tr, updated the translations template.
  * Updated the camera confirm page to have buttons again Added a check
    to be sure to delete previous temp picture. (LP: #1342249)
  * Update string for no account advice, removed reference to add
    reminder button. (LP: #1340635)
  * Fixed pull down to refresh behavior.
  * Implemented fronted to change notebooks name. (LP: #1340640)
  * Implemented bottomEdge.
  * Added a bouncing ProgressBar. (LP: #1372420)
  * Fix #1379886 - First time reminders tab is shown, the list is offset
    from the top. (LP: #1379886)
  * Fixed #1382730 - Unable to create new notes. (LP: #1382730)
  * Enabled automatic orientation. (LP: #1385429)
  * Fixed bug 1378014 - Notes should be sorted by modification date by
    default Fixed bug 1380255 - Add day of the month to the notes
    preview. (LP: #1378014, #1380255)
  * Fixed change accounts page. (LP: #1379751)
  * Created URI handlers to load the app from the scope. (LP: #...

Read more...

Changed in reminders-app (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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