Elffuss BraidHub

kikocis/java-driver public

Temporarily disable test that fails with Cassandra 3.
Changesete82ad000a95f302d9dfd79b4d0af37dc090d21439c1743ed99be08773329b308
Authorolim7t <omichallat+github@gmail.com> · 2015-08-19 18:22 +02:00
Committerolim7t <omichallat+github@gmail.com> · 2015-08-19 19:47 +02:00
Parents17b9736df245

Browse the files at this changeset

1 file changed

modified driver-core/src/test/java/com/datastax/driver/core/TableMetadataTest.java +7 −1
@@ -18,6 +18,7 @@
1818 import java.util.Collection;
1919 import java.util.Collections;
2020
21+import org.testng.SkipException;
2122 import org.testng.annotations.Test;
2223
2324 import static org.assertj.core.api.Assertions.entry;
@@ -172,6 +173,12 @@
172173
173174 @Test(groups = "short")
174175 public void should_parse_table_options() {
176+ VersionNumber version = TestUtils.findHost(cluster, 1).getCassandraVersion();
177+ if (version.getMajor() > 2) {
178+ // TODO adapt test for C* 3.0
179+ throw new SkipException("Needs adjustments to work with Cassandra 3.0");
180+ }
181+
175182 // given
176183 String cql = String.format("CREATE TABLE %s.with_options (\n"
177184 + " k text,\n"
@@ -200,7 +207,6 @@
200207 assertThat(table.getColumns().get(2)).isNotNull().hasName("c2").isClusteringColumn().hasClusteringOrder(ASC).hasType(cint());
201208 assertThat(table.getColumns().get(3)).isNotNull().hasName("i").isRegularColumn().hasType(cint());
202209 assertThat(table);
203- VersionNumber version = TestUtils.findHost(cluster, 1).getCassandraVersion();
204210
205211 // Cassandra 3.0 +
206212 if (version.getMajor() > 2) {