Skip to content

Commit

Permalink
Move access control tests out of smoke tests
Browse files Browse the repository at this point in the history
These tests are for the engine and are not connector smoke tests.
  • Loading branch information
electrum committed Oct 25, 2016
1 parent 02025bd commit 5faedca
Show file tree
Hide file tree
Showing 12 changed files with 158 additions and 230 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,4 @@ public void testTableSampleSystem()
// tablesample system doesn't work reliably with jdbc connector
// because it generates a single split
}

@Override
public void testViewAccessControl()
{
// jdbc connector does not support views
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ public TestCassandraDistributed()
super(createCassandraQueryRunner(TpchTable.getTables()));
}

@Override
protected boolean supportsViews()
{
return false;
}

@Override
public void testGroupingSetMixedExpressionAndColumn()
throws Exception
Expand Down Expand Up @@ -70,41 +76,6 @@ public void testRenameColumn()
// Cassandra does not support renaming columns
}

@Override
public void testView()
throws Exception
{
// Cassandra connector currently does not support views
}

@Override
public void testCompatibleTypeChangeForView()
throws Exception
{
// Cassandra connector currently does not support views
}

@Override
public void testCompatibleTypeChangeForView2()
throws Exception
{
// Cassandra connector currently does not support views
}

@Override
public void testViewMetadata()
throws Exception
{
// Cassandra connector currently does not support views
}

@Test
public void testViewCaseSensitivity()
throws Exception
{
// Cassandra connector currently does not support views
}

@Override
public void testInsert()
throws Exception
Expand Down Expand Up @@ -133,6 +104,7 @@ public void testDelete()
// Cassandra connector currently does not support delete
}

@Override
public void testShowColumns()
throws Exception
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,4 @@ public void testStringPartitionKey()
queryRunner.execute(createCassandraSession(keyspace), "select * from presto_test where key='key 2'");
queryRunner.execute(createCassandraSession(keyspace), "select * from presto_test where key='key 3'");
}

@Override
public void testViewAccessControl()
{
// cassandra does not support views
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,6 @@ public TestKafkaIntegrationSmokeTest(EmbeddedKafka embeddedKafka)
this.embeddedKafka = embeddedKafka;
}

@Override
public void testViewAccessControl()
{
// kafka does not support views
}

@AfterClass(alwaysRun = true)
public void destroy()
throws IOException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,12 +160,6 @@ private void assertOneNotNullResult(String query)
assertNotNull(results.getMaterializedRows().get(0).getField(0));
}

@Override
public void testViewAccessControl()
{
// does not support views
}

@AfterClass(alwaysRun = true)
public final void destroy()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,12 +86,6 @@ public void testDescribeTable()
assertEquals(actualColumns, expectedColumns);
}

@Override
public void testViewAccessControl()
{
// jdbc connector does not support views
}

@AfterClass(alwaysRun = true)
public final void destroy()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,12 +55,6 @@ public void testTableSampleSystem()
// because it generates a single split
}

@Override
public void testViewAccessControl()
{
// jdbc connector does not support views
}

@AfterClass(alwaysRun = true)
public final void destroy()
throws IOException
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,58 +50,29 @@ public void destroy()
closeAllRuntimeException(queryRunner, embeddedRedis);
}

//
// Redis connector does not support table creation.
//

@Override
public void testCreateTable()
{
}

@Override
public void testCreateTableAsSelect()
{
}

@Override
public void testSymbolAliasing()
protected boolean supportsViews()
{
return false;
}

//
// Redis connector does not support views.
// Redis connector does not support table creation.
//

@Override
public void testView()
{
}

@Override
public void testCompatibleTypeChangeForView()
throws Exception
public void testCreateTable()
{
// Redis connector currently does not support views
}

@Override
public void testCompatibleTypeChangeForView2()
throws Exception
public void testCreateTableAsSelect()
{
// Redis connector currently does not support views
}

@Override
public void testViewMetadata()
{
}

@Test
public void testViewCaseSensitivity()
throws Exception
public void testSymbolAliasing()
{
// Redis connector currently does not support views
}

//
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,6 @@ public void testTableSampleSystem()
// because it generates a single split
}

@Override
public void testViewAccessControl()
{
// redis does not support views
}

@AfterClass(alwaysRun = true)
public void destroy()
throws IOException
Expand Down
Loading

0 comments on commit 5faedca

Please sign in to comment.