~frankban/charms/precise/juju-gui/trusty-charm

Viewing all changes in revision 176.

  • Committer: Francesco Banconi
  • Date: 2014-04-09 18:04:05 UTC
  • mfrom: (175.1.5 support-default-charm-icon)
  • Revision ID: francesco.banconi@canonical.com-20140409180405-t3s36xdakjxin73l
Make the GUI server redirect to the default icon.

Create a specialized proxy handler for handling
Juju HTTP API requests. In this subclass, handle
the case a request is for a local charm icon 
that cannot be found on the Juju server.

Tests: `make unittest`.

QA:
- `juju bootstrap`;
- from the branch root, run `make deploy`;
- wait for the GUI service to be ready;
- switch to the trunk branch:
  `juju set juju-gui juju-gui-source=develop`
- wait for the GUI to be ready;
- deploy local charms including an icon:
  you should see the icons are correctly displayed in the
  service blocks and inspector header;
- deploy a local charm not including an icon:
  you should see the fallback icon displayed both in
  the service block and the inspector;
- destroy the environment, done.

R=bac
CC=
https://codereview.appspot.com/86100043

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: