~fabricematrat/charmworld/redirect-interfaces

Viewing all changes in revision 489.

  • Committer: Tarmac
  • Author(s): Brad Crittenden
  • Date: 2014-03-06 19:36:43 UTC
  • mfrom: (487.2.3 check-constraints-commas)
  • Revision ID: tarmac-20140306193643-4o4kknbe07l9ogoy
Make the proof API check constraints.

The proof API now uses charmworldlib to check the charm constraints specified
in a bundle (deployer file).

Errors returned from parse_constraints are returned as errors.  If
check_constraints indicates the constraints are comma-separated then a
deprecation warning is returned.

The previous API did not allow for warnings, so that mechanism was added.

There are a lot of drive-by cleanups too, mainly in the test.  Sorry for the
noise they introduce but I think the code is more consistent and the tests are
improved.

https://codereview.appspot.com/69980054/

R=makyo.

Approved by Juju Gui Bot.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: