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

ASF GitHub Bot commented on METRON-1845:
----------------------------------------

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

    https://github.com/apache/metron/pull/1247#discussion_r236521989
  
    --- Diff: 
metron-platform/metron-solr/src/test/java/org/apache/metron/solr/integration/SolrUpdateIntegrationTest.java
 ---
    @@ -186,4 +195,114 @@ public void testHugeErrorFields() throws Exception {
         exception.expectMessage("Document contains at least one immense term 
in field=\"error_hash\"");
         getDao().update(errorDoc, Optional.of("error"));
       }
    +
    +  @Test
    +  @Override
    +  public void test() throws Exception {
    --- End diff --
    
    What do these changes have to do with ES DAO read/write approach change? 
This class is testing Solr - should this be in a separate PR?


> Correct Test Data Load in Elasticsearch Integration Tests
> ---------------------------------------------------------
>
>                 Key: METRON-1845
>                 URL: https://issues.apache.org/jira/browse/METRON-1845
>             Project: Metron
>          Issue Type: Sub-task
>            Reporter: Nick Allen
>            Assignee: Nick Allen
>            Priority: Major
>
> The Elasticsearch integration tests use the legacy Transport client to load 
> test data into the search indexes before running the tests. Loading the test 
> data like this does not accurately reflect how the indices will appear in a 
> production environment.
> This should be changed to use our existing ElasticsearchUpdateDao to write 
> the test data.  This ensures that any changes made to the 'write' portion of 
> our Elasticsearch code will function correctly with the 'read' portion. This 
> ensures that telemetry written into Elasticsearch by 'Indexing' can be read 
> correctly by the Alerts UI.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to