Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-2172

Solr Updates Not Tested in Integration Test

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • None
    • Next + 1
    • None

    Description

      The `SolrUpdateIntegrationTest` is not testing that the `SolrDao` can update and retrieve values in a manner similar to what would occur in production.

      What?

      This gap in the integration test is hiding a few existing bugs in the SolrUpdateIntegrationTest.

      1. The timestamp is not being populated in the returned documents.
      2. A NullPointerException occurs if a document does not contain a sensor type.
      3. The comments are serialized and deserialized in multiple places and may be stored as either a Map or JSON string.

      Proof?

       If you alter the test to run against just a `SolrDao` the integration test will fail.

      Attachments

        Activity

          People

            nickwallen Nick Allen
            nickwallen Nick Allen
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 50m
                2h 50m