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.

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/622732

Title:
  Let SCA client handle subscription progress UI

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to