-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
storage: Skip tests requiring solr when incompatible with hadoop. #TA…
…SK-5663
- Loading branch information
Showing
14 changed files
with
162 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
...t/java/org/opencb/opencga/storage/hadoop/variant/search/HadoopSolrTestingSupportTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
package org.opencb.opencga.storage.hadoop.variant.search; | ||
|
||
import org.junit.Assert; | ||
import org.junit.Test; | ||
import org.junit.experimental.categories.Category; | ||
import org.opencb.opencga.core.testclassification.duration.ShortTests; | ||
import org.opencb.opencga.storage.core.variant.solr.VariantSolrExternalResource; | ||
import org.opencb.opencga.storage.hadoop.variant.HadoopVariantStorageTest; | ||
|
||
@Category(ShortTests.class) | ||
public class HadoopSolrTestingSupportTest { | ||
|
||
@Test | ||
public void testSupported() { | ||
VariantSolrExternalResource externalResource = new VariantSolrExternalResource(); | ||
try { | ||
externalResource.before(); | ||
externalResource.after(); | ||
if (!HadoopVariantStorageTest.HadoopSolrSupport.isSolrTestingAvailable()) { | ||
Assert.fail("Solr testing should not be available"); | ||
} else { | ||
System.out.println("As expected :: Solr testing available"); | ||
} | ||
} catch (Throwable throwable) { | ||
if (HadoopVariantStorageTest.HadoopSolrSupport.isSolrTestingAvailable()) { | ||
Assert.fail("Solr testing should be available"); | ||
} else { | ||
System.out.println("As expected :: Solr testing not available: " + throwable.getMessage()); | ||
} | ||
} | ||
} | ||
|
||
} |
Oops, something went wrong.