[ 
https://issues.apache.org/jira/browse/AMBARI-6777?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Siddharth Wagle reopened AMBARI-6777:
-------------------------------------


Results :

Failed tests:   
testReadViewArchives(org.apache.ambari.server.view.ViewRegistryTest): 
expected:<2> but was:<0>

> Views: view.xml instance changes are not picked up on redeploy
> --------------------------------------------------------------
>
>                 Key: AMBARI-6777
>                 URL: https://issues.apache.org/jira/browse/AMBARI-6777
>             Project: Ambari
>          Issue Type: Task
>          Components: controller
>    Affects Versions: 1.7.0
>            Reporter: Siddharth Wagle
>            Assignee: Siddharth Wagle
>             Fix For: 1.7.0
>
>         Attachments: AMBARI-6777.patch
>
>
> The view.xml should be checked for changes when a view is redeployed (server 
> restart).  Instances defined in the view.xml should not be able to be changed 
> through the API.  That way we don't have to worry about API changes 
> overriding view.xml defined instances.
> If I define an instance in view.xml, this works (all properties get defined): 
> {code}
>   <instance>
>     <name>Something</name>
>     <property>
>       <key>ids</key>
>       <value>SomeId,SomeOtherId</value>
>     </property>
>     <property>
>       <key>SomeId.display_name</key>
>       <value>Some Id Display Name</value>
>     </property>
>     <property>
>       <key>SomeOtherId.display_name</key>
>       <value>Some Other Id Display Name</value>
>     </property>
> </instance>
> {code}
> But if I put a newline between the property elements, it won't register the 
> props past.
> {code}
>   <instance>
>     <name>Something</name>
>     <property>
>       <key>ids</key>
>       <value>SomeId,SomeOtherId</value>
>     </property>
>     <property>
>       <key>SomeId.display_name</key>
>       <value>Some Id Display Name</value>
>     </property>
>     <property>
>       <key>SomeOtherId.display_name</key>
>       <value>Some Other Id Display Name</value>
>     </property>
> </instance>
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to