DescriptionUsable, if incomplete, deploy command
Notable missing bits are:
* --config (which depends on us implementing charm format 2, and some other
state stuff that hasn't yet been done; attempts to use --config will
currently panic)
* --constraints (which aren't implemented at all; we can't parse them,
and don't even expose a --constraints flag)
Please note that the charm store is not tested here. This is because the
actual charm store URL is hidden away inside the state package and (AIUI)
explicitly not intended to be changed or even changeable, leaving no route
that allows me to test it directly without either hitting the real charm
store in unit tests, or messing with /etc/hosts... either of which would be
a Bad Thing.
I submit that InferRepository is sufficiently well-tested within the charm
package, and so is the charm store; and that to write direct tests for
deploying charm store charms at this level is not necessary, because the
behavior with local URLs is sufficiently consistent with usage of
InferRepository that we can still have a high level of confidence in the
operation of the command as a whole. (For example, we verify that charm
bundles are not upgradeable; the source of the bundles should therefore not
be relevant).
When we have enough in place that we can have functional tests, we should
certainly verify the behaviour against the actual charm store.
https://code.launchpad.net/~fwereade/juju-core/usable-deploy-command/+merge/111068
(do not edit description out of merge proposal)
Patch Set 1 #Patch Set 2 : Usable, if incomplete, deploy command #
Total comments: 26
Patch Set 3 : Usable, if incomplete, deploy command #
Total comments: 2
Patch Set 4 : Usable, if incomplete, deploy command #
MessagesTotal messages: 5
|