Closes #111

pull displayName from flags in LocationTransformer if present - fixes 
BROOKLYN-250

Untyped config from the YAML is being pushed into flags rather than config, so 
rather than expose flags in the locations API (which we're moving away from to 
the catalog API), I'm now checking for the presence of a displayName parameter 
in flags and setting it in the LocationTransformer.

Tests added.


Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/3ad95599
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/3ad95599
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/3ad95599

Branch: refs/heads/master
Commit: 3ad9559991b80070548b0e3d991da71e0ab5f9e1
Parents: 5472c1e 049c852
Author: Svetoslav Neykov <[email protected]>
Authored: Wed Apr 20 16:58:24 2016 +0100
Committer: Svetoslav Neykov <[email protected]>
Committed: Wed Apr 20 16:58:24 2016 +0100

----------------------------------------------------------------------
 .../rest/transform/LocationTransformer.java     |   8 +-
 .../rest/resources/LocationResourceTest.java    | 114 +++++++++++++++++++
 2 files changed, 120 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


Reply via email to