[ 
https://issues.apache.org/jira/browse/METRON-1274?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16215164#comment-16215164
 ] 

Ryan Merriman commented on METRON-1274:
---------------------------------------

I suspect it's because we are mistakenly waiting on global config changes to 
propagate instead of the bro sensor config, lines 189-193 in 
https://github.com/apache/metron/blob/master/metron-interface/metron-rest/src/test/java/org/apache/metron/rest/controller/StormControllerIntegrationTest.java:

{code:java}
SensorParserConfig sensorParserConfig = new SensorParserConfig();
sensorParserConfig.setParserClassName("org.apache.metron.parsers.bro.BasicBroParser");
sensorParserConfig.setSensorTopic("broTest");
sensorParserConfigService.save(sensorParserConfig);
{
    final Map<String, Object> expectedGlobalConfig = globalConfig;
    //we must wait for the config to find its way into the config.
    TestUtils.assertEventually(() -> Assert.assertEquals(expectedGlobalConfig, 
globalConfigService.get()))
}

this.mockMvc.perform(get(stormUrl + 
"/parser/start/broTest").with(httpBasic(user,password)))
{code}


> Master has failure in StormControllerIntegrationTest
> ----------------------------------------------------
>
>                 Key: METRON-1274
>                 URL: https://issues.apache.org/jira/browse/METRON-1274
>             Project: Metron
>          Issue Type: Improvement
>            Reporter: Justin Leet
>
> Potentially resulting from METRON-1272
> More details in log at https://travis-ci.org/apache/metron/builds/290640009
> Here's the super high level failure.
> {code}
> Tests run: 2, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 0.107 sec <<< 
> FAILURE! - in org.apache.metron.rest.controller.StormControllerIntegrationTest
> test(org.apache.metron.rest.controller.StormControllerIntegrationTest)  Time 
> elapsed: 0.068 sec  <<< FAILURE!
> java.lang.AssertionError: JSON path "$.status" expected:<SUCCESS> but 
> was:<ERROR>
> {code}
> Seems possibly intermittent. 
> https://travis-ci.org/apache/metron/builds/290640009 failed, but 
> https://travis-ci.org/apache/metron/builds/291527599 (which should have that 
> code) succeeded.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to