lp:~jameinel/juju-core/api-srvRoot-ensures-type
Created by
John A Meinel
and last modified
- Get this branch:
- bzr branch lp:~jameinel/juju-core/api-srvRoot-ensures-type
Only
John A Meinel
can upload to this branch. If you are
John A Meinel
please log in for upload directions.
Branch merges
Propose for merging
1 branch
dependent on this one.
On hold
for merging
into
lp:~go-bot/juju-core/trunk
- Juju Engineering: Pending requested
-
Diff: 228 lines (+130/-7)5 files modifiedstate/apiserver/export_test.go (+18/-0)
state/apiserver/root.go (+16/-6)
state/apiserver/root_test.go (+53/-1)
utils/registry/registry.go (+11/-0)
utils/registry/registry_test.go (+32/-0)
Branch information
Recent revisions
- 2754. By John A Meinel
-
change srvRoot.
MethodCaller to actually ensure objects returned match their type. RegisterStandar
dFacade makes sure the right type gets registered,
but RegisterFacade doesn't because the Facade interface has to
return interface{}. But we can test it at runtime, so lets do that
to avoid ever having accidental skew. - 2753. By John A Meinel
-
Add registry.
TypeNameVersion .Discard( ) This allows us to register things for a test and then cleanup
when we are done.
Branch metadata
- Branch format:
- Branch format 7
- Repository format:
- Bazaar repository format 2a (needs bzr 1.16 or later)
- Stacked on:
- lp:~go-bot/juju-core/trunk