[MINOR UPDATE] Disable TestJdbcPluginWithMSSQL when not on amd64. (#2557)
* [MINOR UPDATE] Disable TestJdbcPluginWithMSSQL when not on amd64.
* Try using DisabledIf... instead of EnabledIf.. at class level.
* Try adding EnabledIf... annotation to static setup and teardown methods.
* Try adding a manual bypass to the @BeforeClass method.
* Try using method-level EnabledIf... annotations.
* Try to disable using os.arch = "aarch_64".
* Try using org.junit.Assume instead of annotations.
diff --git a/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java b/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java
index 68c6871..c759dfe 100644
--- a/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java
+++ b/contrib/storage-jdbc/src/test/java/org/apache/drill/exec/store/jdbc/TestJdbcPluginWithMSSQL.java
@@ -30,6 +30,7 @@
import org.apache.drill.test.ClusterTest;
import org.apache.drill.test.rowSet.RowSetUtilities;
import org.junit.AfterClass;
+import org.junit.Assume;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
@@ -43,7 +44,8 @@
import static org.junit.Assert.assertEquals;
/**
- * JDBC storage plugin tests against MSSQL.
+ * JDBC storage plugin tests against MSSQL. Note that there is no mssql container
+ * available on aarch64 so these tests must be disabled on that arch.
*/
@Category(JdbcStorageTest.class)
public class TestJdbcPluginWithMSSQL extends ClusterTest {
@@ -52,6 +54,8 @@
@BeforeClass
public static void initMSSQL() throws Exception {
+ Assume.assumeTrue(System.getProperty("os.arch").matches("(amd64|x86_64)"));
+
startCluster(ClusterFixture.builder(dirTestWatcher));
TimeZone.setDefault(TimeZone.getTimeZone("UTC"));