Share a photo from the gallery with Facebook

Bug #1322080 reported by Brendan Donegan
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ubuntu Autopilot Tests
In Progress
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)
Changed in ubuntu-autopilot-tests:
status: New → In Progress
Víctor R. Ruiz (vrruiz)
description: updated
Changed in ubuntu-autopilot-tests:
assignee: nobody → Víctor R. Ruiz (vrruiz)
Revision history for this message
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  
Everyone can see this information.

Other bug subscribers

Related blueprints

Remote bug watches

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