config.yaml handling is necessary in Go port
Bug #842195 reported by
Gustavo Niemeyer
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pyjuju |
Fix Released
|
Undecided
|
Gustavo Niemeyer |
Bug Description
The Go port must be able to handle formula config.yaml
files. In that first step, just parsing and processing
will be done. Following that, validation of variables
using the parsed schema should be implemented.
It won't support the 'str' type variant being obsoleted
for the moment. We can do a new evaluation before opening
up the formula and introduce it if necessary, depending
on the migration rate for the new 'string' value.
Related branches
lp:~niemeyer/pyjuju/go-formula-config
- Kapil Thangavelu (community): Approve
-
Diff: 1561 lines (+1418/-0)25 files modifiedformula/Makefile (+25/-0)
formula/config.go (+84/-0)
formula/config_test.go (+102/-0)
formula/export_test.go (+11/-0)
formula/formula.go (+33/-0)
formula/formula_test.go (+59/-0)
formula/meta.go (+170/-0)
formula/meta_test.go (+135/-0)
formula/testrepo/dummy/.ignored (+1/-0)
formula/testrepo/dummy/config.yaml (+5/-0)
formula/testrepo/dummy/metadata.yaml (+7/-0)
formula/testrepo/dummy/src/hello.c (+7/-0)
formula/testrepo/mysql/metadata.yaml (+7/-0)
formula/testrepo/mysql2/metadata.yaml (+11/-0)
formula/testrepo/new/metadata.yaml (+7/-0)
formula/testrepo/old/metadata.yaml (+7/-0)
formula/testrepo/riak/metadata.yaml (+13/-0)
formula/testrepo/varnish/metadata.yaml (+7/-0)
formula/testrepo/varnish2/hooks/install (+3/-0)
formula/testrepo/varnish2/metadata.yaml (+7/-0)
formula/testrepo/wordpress/config.yaml (+3/-0)
formula/testrepo/wordpress/metadata.yaml (+21/-0)
schema/Makefile (+23/-0)
schema/schema.go (+377/-0)
schema/schema_test.go (+293/-0)
Changed in ensemble: | |
assignee: | nobody → Gustavo Niemeyer (niemeyer) |
milestone: | none → eureka |
status: | New → In Progress |
Changed in juju: | |
status: | In Progress → Fix Released |
To post a comment you must log in.