Share a photo from the gallery with Facebook

Bug #1322080 reported by Brendan Donegan on 2014-05-22
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Autopilot Tests
Undecided
Víctor R. Ruiz

Bug Description

Pre-requisites: A photo in the gallery. A Facebook account in Facebook.

1. Open gallery-app.
2. Select the photo.
3. Share the photo with Facebook.
4. Check that the photo was shared.

Related branches

Víctor R. Ruiz (vrruiz) on 2014-06-02
Changed in ubuntu-autopilot-tests:
status: New → In Progress
Víctor R. Ruiz (vrruiz) on 2014-06-02
description: updated
Changed in ubuntu-autopilot-tests:
assignee: nobody → Víctor R. Ruiz (vrruiz)
Víctor R. Ruiz (vrruiz) wrote :

lp:~vrruiz/gallery-app/test-share-photo has the code which shares a photo with Facebook. The test mocks the friends-dispatcher service to capture the call to the Upload method, which is defined as:

    @dbus.service.method(DBUS_INTERFACE,
                         in_signature='sss',
                         out_signature='s',
                         async_callbacks=('success','failure'))
    def Upload(self, account_id, uri, description, success=STUB, failure=STUB):

When Friends calls to the Upload service, it does it asynchronously, expecting either success or failure functions to be called back after the photo has been posted. To mock the service, I've used python-dbusmock, which currently doesn't support callbacks, so the test doesn't work correctly.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers

Related blueprints