Comment 9 for bug 622732

Revision history for this message
Danny Tamez (zematynnad) wrote : Re: Let SCA client handle subscription progress UI

QA: Here is a way to test the api call that the desktop client is going to make.
Get https://bugs.launchpad.net/software-center-agent/+bug/622732 locally and run fab bootstrap.
Place the attached script in the root of the branch.

On staging find or create an application to purchase and make note of the architecture, distro and archive_id.
Initiate a purchase in your browser via:
https://sc.staging.ubuntu.com/subscriptions/en/ubuntu/maverick/+new/?archive_id=some_archive_id&arch=i386
replacing maverick with a different distro if necessary,
replacing some_archive_id with the actual app's archive_id,
replacing i386 if necessary with a different architecture (e.g. amd64)

After entering this url you will be redirected to enter payment information. Enter standard dummy payment info (VISA 4111111111111111 and similar).

You will then be redirected to SCA.
Open up your browser's debugger (e.g. in firefox - press F12) and then open up the tab for console output.
You will see a string of json printed out in the console. Copy this to your clipboard.

Go back to your terminal and the sca branch mentioned above with the attached script. Run the script as follows:
$./test_api.py 'a bunch of json goes here between single quotes'
this will make the same authenticated call that the desktop client will make and will print out the subscription state every second.