Skip to content

Commit

Permalink
NO-JIRA Fixing CompareUpgradeTest
Browse files Browse the repository at this point in the history
  • Loading branch information
clebertsuconic committed Mar 3, 2023
1 parent 3e7cb24 commit aae65fd
Showing 1 changed file with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,13 @@ private void compareDirectories(String expectedFolder, String upgradeFolder, Str

String expectedString = expectedIterator.next().replace("Expected", "").trim();
String upgradeString = upgradeIterator.next().trim();
Assert.assertEquals("error on line " + line + " at " + upgradeFile, expectedString, upgradeString);

if (f.getName().endsWith("jolokia-access.xml") && expectedString.startsWith("<!--") && upgradeString.startsWith("<!--")) {
// TODO: for now we will just ignore comments in jolokia-access.xml. We should do a proper parser of jologia-access.xml
logger.debug("Ignoring comments from jolokia-access.xml");
} else {
Assert.assertEquals("error on line " + line + " at " + upgradeFile, expectedString, upgradeString);
}
line++;
}

Expand Down

0 comments on commit aae65fd

Please sign in to comment.