Github user sjcorbett commented on the pull request:

    https://github.com/apache/incubator-brooklyn/pull/74#issuecomment-49292799
  
    Lastly, the test added to ServerResource won't pass because:
    * Entitlement contexts are set in BrooklynPropertiesSecurityFilter
    * BrooklynPropertiesSecurityFilter is not loaded in tests (see 
BrooklynRestApiTest.addResources)
    * ServerResource.getUser returns null, server responds 204 No Content
    * ServerResourceTest will fail trying to turn the response into a String
    
    The best approach to this isn't immediately obvious to me. Perhaps we could 
write a filter specifically for tests that sets an entitlement context. I'm 
happy to pair with you or give more guidance on this.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to