Skip to content

Commit

Permalink
[MINOR UPDATE] Disable TestJdbcPluginWithMSSQL when not on amd64. (#2557
Browse files Browse the repository at this point in the history
)

* [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.
  • Loading branch information
jnturton committed Aug 1, 2022
1 parent 230ab08 commit 0c8fa8b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,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.Test;
import org.junit.experimental.categories.Category;
Expand All @@ -41,7 +42,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 {
Expand All @@ -50,6 +52,8 @@ public class TestJdbcPluginWithMSSQL extends ClusterTest {

@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"));

Expand Down

0 comments on commit 0c8fa8b

Please sign in to comment.