Skip to content

Commit

Permalink
fix integration tests add additional logging
Browse files Browse the repository at this point in the history
  • Loading branch information
scottreisdorf committed Nov 27, 2018
1 parent 1d27272 commit e2b85a2
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,10 @@ private void assertAnalystCantEditFeed(String[] errorMessages) {

FeedMetadata editFeedRequest = getEditFeedRequest();
NifiFeed feed = createFeed(editFeedRequest);
LOG.debug("EntityLevelAccessIT.assertAnalystCantEditFeed - asserting analyst cant create the feed");
if(feed.getErrorMessages() != null && feed.getErrorMessages().get(0) != null){
LOG.debug("Analyst feed error message is {}.",feed.getErrorMessages().get(0));
}
Assert.assertEquals(1, feed.getErrorMessages().size());
Assert.assertTrue(Arrays.asList(errorMessages).stream().anyMatch(msg -> feed.getErrorMessages().get(0).startsWith(msg)));
}
Expand Down

0 comments on commit e2b85a2

Please sign in to comment.