forked from apache/cassandra
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CNDB-11480: Split tests extending AbstractQueryTester (#1382)
Split all the tests extending AbstractQueryTester so they are less prone to timeouts and better for CI parallelization. Each test class is split into a class per data model, and each class is still parameterized by index version. Also, move these tests and their utilities into their own package, and rename the two versions of AbstractQueryTester to SingleNodeQueryTester and MultiNodeQueryTester.
- Loading branch information
Showing
51 changed files
with
1,046 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...rg/apache/cassandra/index/sai/cql/datamodels/QueryCellDeletionsWithBaseDataModelTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright DataStax, Inc. | ||
* | ||
* 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 org.apache.cassandra.index.sai.cql.datamodels; | ||
|
||
import java.util.List; | ||
|
||
import org.junit.runners.Parameterized; | ||
|
||
public class QueryCellDeletionsWithBaseDataModelTest extends QueryCellDeletionsTester | ||
{ | ||
@Parameterized.Parameters(name = "{0}") | ||
public static List<Object[]> params() | ||
{ | ||
return allIndexVersionsParams(SingleNodeQueryTester::baseDataModelParams); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...e/cassandra/index/sai/cql/datamodels/QueryCellDeletionsWithCompositePartitionKeyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright DataStax, Inc. | ||
* | ||
* 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 org.apache.cassandra.index.sai.cql.datamodels; | ||
|
||
import java.util.List; | ||
|
||
import org.junit.runners.Parameterized; | ||
|
||
public class QueryCellDeletionsWithCompositePartitionKeyTest extends QueryCellDeletionsTester | ||
{ | ||
@Parameterized.Parameters(name = "{0}") | ||
public static List<Object[]> params() | ||
{ | ||
return allIndexVersionsParams(SingleNodeQueryTester::compositePartitionKeyParams); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
.../org/apache/cassandra/index/sai/cql/datamodels/QueryCellDeletionsWithCompoundKeyTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright DataStax, Inc. | ||
* | ||
* 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 org.apache.cassandra.index.sai.cql.datamodels; | ||
|
||
import java.util.List; | ||
|
||
import org.junit.runners.Parameterized; | ||
|
||
public class QueryCellDeletionsWithCompoundKeyTest extends QueryCellDeletionsTester | ||
{ | ||
@Parameterized.Parameters(name = "{0}") | ||
public static List<Object[]> params() | ||
{ | ||
return allIndexVersionsParams(SingleNodeQueryTester::compoundKeyParams); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
.../cassandra/index/sai/cql/datamodels/QueryCellDeletionsWithCompoundKeyWithStaticsTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright DataStax, Inc. | ||
* | ||
* 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 org.apache.cassandra.index.sai.cql.datamodels; | ||
|
||
import java.util.List; | ||
|
||
import org.junit.runners.Parameterized; | ||
|
||
public class QueryCellDeletionsWithCompoundKeyWithStaticsTest extends QueryCellDeletionsTester | ||
{ | ||
@Parameterized.Parameters(name = "{0}") | ||
public static List<Object[]> params() | ||
{ | ||
return allIndexVersionsParams(SingleNodeQueryTester::compoundKeyWithStaticsParams); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...nit/org/apache/cassandra/index/sai/cql/datamodels/QueryRowDeletionsWithBaseModelTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* | ||
* Copyright DataStax, Inc. | ||
* | ||
* 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 org.apache.cassandra.index.sai.cql.datamodels; | ||
|
||
import java.util.List; | ||
|
||
import org.junit.runners.Parameterized; | ||
|
||
public class QueryRowDeletionsWithBaseModelTest extends QueryRowDeletionsTester | ||
{ | ||
@Parameterized.Parameters(name = "{0}") | ||
public static List<Object[]> params() | ||
{ | ||
return allIndexVersionsParams(SingleNodeQueryTester::baseDataModelParams); | ||
} | ||
} |
Oops, something went wrong.