On desktop, we need a password-less keyring for autopilot tests

Bug #1338714 reported by Leo Arias on 2014-07-07
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Ubuntu CI Services
Undecided
Unassigned
unity-scope-click (Ubuntu)
Low
Unassigned

Bug Description

When we try to add credentials to online accounts on the desktop, the keyring dialog will be opened asking for a password. We need to find a way to work this around.

Related branches

Revision history for this message
Leo Arias (elopio) wrote :

Because of this bug, the online accounts tests are not running on utopic, and we are not able to add the download test for the click scope.

tags: added: elopio
Changed in ubuntu-system-settings-online-accounts:
status: New → Confirmed
tags: added: qa-removed-test
Revision history for this message
Leo Arias (elopio) wrote :

Comment from dobey:

You can just create an empty keyring with no password and shove it in
place of the default keyring file. Not sure how the Jenkins instances
are being set up, but with puppet we'd just include it in the base
config and have puppet copy the file in when the instance is built.

You DO NOT want to just have the tests copy a keyring file to the user's
keyring directory and overwriting their keyring though. That would be
VERY BAD for anyone running the tests on their live system. :)

Revision history for this message
Leo Arias (elopio) wrote :
Revision history for this message
Leo Arias (elopio) wrote :
Revision history for this message
Leo Arias (elopio) wrote :

The two files attached need to be saved at ~/.local/share/keyrings

Revision history for this message
Leo Arias (elopio) wrote :

Just rerun the tests in the attached branch. When they pass, it means that the passwordless keyring is working.
When they fail because the credentials time out, that means is not yet working.

Changed in ubuntu-ci-services-itself:
status: New → Confirmed
Revision history for this message
Alberto Mardegan (mardy) wrote :

Removing the online-accounts project from this bug, given that no action seems to be required from us.

no longer affects: ubuntu-system-settings-online-accounts
Changed in unity-scope-click (Ubuntu):
importance: Undecided → Medium
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in unity-scope-click (Ubuntu):
status: New → Confirmed
Revision history for this message
dobey (dobey) wrote :

Looking through the click scope bugs and came across this again. I think rather than having a keyring without a password, what we will need is a fixture in autopilot which uses dbusmock to provide a faked keyring service, and having all autopilot tests run under the dbusmock private session, rather than interacting with a live system. This will allow the tests to be run more reliably in a contained environment, when running the tests during normal development and CI processes, and should be able to provide a way to have the tests run against live services as well, when we need to run things on a live device image.

Changed in unity-scope-click (Ubuntu):
importance: Medium → Low
status: Confirmed → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints