Github user aledsage commented on a diff in the pull request:

    https://github.com/apache/brooklyn-server/pull/411#discussion_r86766218
  
    --- Diff: 
camp/camp-brooklyn/src/test/java/org/apache/brooklyn/camp/brooklyn/AbstractYamlTest.java
 ---
    @@ -112,7 +113,14 @@ protected void waitForApplicationTasks(Entity app) {
         }
     
         protected String loadYaml(String yamlFileName, String ...extraLines) 
throws Exception {
    -        String input = new 
ResourceUtils(this).getResourceAsString(yamlFileName).trim();
    +        ResourceUtils ru = new ResourceUtils(this);
    +        if (!ru.doesUrlExist(yamlFileName)) {
    +            if 
(ru.doesUrlExist(Urls.mergePaths(getClass().getPackage().getName().replace('.', 
'/'), yamlFileName))) {
    +                // look in package-specific folder if not found at root
    +                yamlFileName = 
Urls.mergePaths(getClass().getPackage().getName().replace('.', '/'), 
yamlFileName);
    --- End diff --
    
    Ah, you're absolutely right - I missed that second `ru.doesUrlExist` check.


---
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