forked from infinispan/infinispan-spark
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
71 additions
and
2 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
src/test/scala/org/infinispan/spark/CompatibilitySuites.scala
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,21 @@ | ||
package org.infinispan.spark | ||
|
||
import org.infinispan.spark.suites._ | ||
import org.infinispan.spark.test.Cluster | ||
import org.scalatest.{BeforeAndAfterAll, Suites} | ||
|
||
/** | ||
* @author vjuranek | ||
*/ | ||
class CompatibilitySuites extends Suites(new RDDCompatibilitySuite, new StreamingCompatibilitySuite) with BeforeAndAfterAll { | ||
|
||
override protected def beforeAll(): Unit = { | ||
Cluster.start() | ||
super.beforeAll() | ||
} | ||
|
||
override protected def afterAll(): Unit = { | ||
Cluster.shutDown() | ||
super.afterAll() | ||
} | ||
} |
24 changes: 24 additions & 0 deletions
24
src/test/scala/org/infinispan/spark/suites/RDDCompatibilitySuite.scala
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,24 @@ | ||
package org.infinispan.spark.suites | ||
|
||
import org.infinispan.spark.test._ | ||
import org.jboss.dmr.scala.ModelNode | ||
import org.scalatest.DoNotDiscover | ||
|
||
/** | ||
* @author vjuranek | ||
*/ | ||
@DoNotDiscover | ||
class RDDCompatibilitySuite extends RDDRetrievalTest with WordCache with Spark with MultipleServers { | ||
override protected def getNumEntries: Int = 100 | ||
|
||
override def getCacheType = CacheType.DISTRIBUTED | ||
|
||
override def getCacheConfig: Option[ModelNode] = Some(ModelNode( | ||
"compatibility" -> ModelNode( | ||
"COMPATIBILITY" -> ModelNode( | ||
"enabled" -> true | ||
) | ||
) | ||
) | ||
) | ||
} |
25 changes: 25 additions & 0 deletions
25
src/test/scala/org/infinispan/spark/suites/StreamingCompatibilitySuite.scala
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,25 @@ | ||
package org.infinispan.spark.suites | ||
|
||
import org.jboss.dmr.scala.ModelNode | ||
import org.scalatest.DoNotDiscover | ||
|
||
/** | ||
* @author vjuranek | ||
*/ | ||
@DoNotDiscover | ||
class StreamingCompatibilitySuite extends StreamingSuite { | ||
|
||
override def getCacheConfig: Option[ModelNode] = Some(ModelNode( | ||
"expiration" -> ModelNode( | ||
"EXPIRATION" -> ModelNode( | ||
"interval" -> 500 | ||
) | ||
), | ||
"compatibility" -> ModelNode( | ||
"COMPATIBILITY" -> ModelNode( | ||
"enabled" -> true | ||
) | ||
) | ||
) | ||
) | ||
} |
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