/*
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.facebook.presto.cassandra;

import com.facebook.presto.tests.AbstractTestIntegrationSmokeTest;
import org.testng.annotations.Test;

import java.util.Date;

import static com.facebook.presto.cassandra.CassandraQueryRunner.createCassandraQueryRunner;
import static com.facebook.presto.cassandra.CassandraQueryRunner.createCassandraSession;
import static com.facebook.presto.cassandra.CassandraQueryRunner.createSampledSession;
import static com.facebook.presto.cassandra.CassandraTestingUtils.initializeTestData;
import static io.airlift.tpch.TpchTable.ORDERS;

@Test(singleThreaded = true)
public class TestCassandraIntegrationSmokeTest
        extends AbstractTestIntegrationSmokeTest
{
    public TestCassandraIntegrationSmokeTest()
            throws Exception
    {
        super(createCassandraQueryRunner(ORDERS), createSampledSession());
    }

    @Test
    public void testStringPartitionKey()
    {
        initializeTestData(new Date());

        queryRunner.execute(createCassandraSession("presto_database"), "select * from presto_database.presto_test where key='key 1'");
        queryRunner.execute(createCassandraSession("presto_database"), "select * from presto_database.presto_test where key='key 2'");
        queryRunner.execute(createCassandraSession("presto_database"), "select * from presto_database.presto_test where key='key 3'");
    }
}

@@ -1926,11 +1926,492 @@
 );%0A    %7D
+%0A%0A    @Test%0A    public void testMultipleStringPartitionKeys()%0A    %7B%0A        initializeTestData(new Date());%0A%0A        queryRunner.execute(createCassandraSession(%22presto_database%22), %22select * from presto_database.presto_test where key='key 1' or key='key 2'%22);%0A    %7D%0A%0A    @Test%0A    public void testAllPartitions()%0A    %7B%0A        initializeTestData(new Date());%0A%0A        queryRunner.execute(createCassandraSession(%22presto_database%22), %22select * from presto_database.presto_test%22);%0A    %7D
 %0A%7D%0A

Add two smoke tests for Cassandra