Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-16553

SolrTestCaseJ4 solr.install.dir property not initialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 9.1
    • main (10.0), 9.2
    • SolrJ, Tests
    • None

    Description

      i tried to upgrade solr-solrj + solr-test-framework from 9.0 -> 9.1

      i have some Testcases extending SolrTestCaseJ4 and initialized like this.
      With 9.1 they fail with solr.install.dir property not initialized (i fixed this adding the system property to every test class like below).
      Is this change intended? (there is no solr installation, just the test framework running on temporary dir@build server).

          @BeforeClass
          public static void beforeClass() throws Exception {       
              System.setProperty("solr.install.dir", "./");		//inserted to keep running with solrj-9.1
              initCore("solrconfig.xml", "schema.xml", "./", "city_v2");
              lrf.qtype = "/select";
          }
      

      Attachments

        Issue Links

          Activity

            People

              krisden Kevin Risden
              bwahlen Bernd Wahlen
              Votes:
              1 Vote for this issue
              Watchers:
              5 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 - 1h
                  1h