Logic to upload formulas to an environment is necessary
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Medium
|
Kapil Thangavelu |
Bug Description
We need to implement some kind of formula.
1) Is initialized with an Environment instance
2) One or more formulas are added to it (e.g. publisher.
3) On publisher.
a) A verification is made to see which of the added formulas do not exist in the environment yet
b) All the unavailable formulas are sent to the FileStorage of the given environment
c) The new formulas are added to the Zookeeper filesystem, through the FormulaStateManager object (see bug #616481).
This logic would be used by the "deploy" command, but can also be used by an individual subcommand which is able to *just* upload the formula. Something like:
$ ensemble store-formula <formula name>
Related branches
- Gustavo Niemeyer: Approve
-
Diff: 579 lines (+462/-8)9 files modifiedensemble/formula/bundle.py (+1/-1)
ensemble/formula/metadata.py (+10/-0)
ensemble/formula/publisher.py (+116/-0)
ensemble/formula/tests/test_base.py (+2/-0)
ensemble/formula/tests/test_bundle.py (+6/-0)
ensemble/formula/tests/test_metadata.py (+16/-0)
ensemble/formula/tests/test_publisher.py (+189/-0)
ensemble/providers/dummy.py (+49/-1)
ensemble/providers/tests/test_dummy.py (+73/-6)
Changed in ensemble: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
description: | updated |
description: | updated |
Changed in ensemble: | |
milestone: | none → 0.1 |
Changed in ensemble: | |
assignee: | nobody → Kapil Thangavelu (hazmat) |
status: | Confirmed → In Progress |
Changed in ensemble: | |
status: | In Progress → Fix Committed |
Changed in ensemble: | |
status: | Fix Committed → Fix Released |