| /* |
| * Licensed to the Apache Software Foundation (ASF) under one or more |
| * contributor license agreements. See the NOTICE file distributed with |
| * this work for additional information regarding copyright ownership. |
| * The ASF licenses this file to You 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.ignite.testsuites; |
| |
| import java.util.HashSet; |
| import java.util.List; |
| import java.util.Set; |
| import org.apache.ignite.IgniteSystemProperties; |
| import org.apache.ignite.internal.processors.cache.expiry.ActivationOnExpirationTimeoutTest; |
| import org.apache.ignite.internal.processors.cache.persistence.IgnitePdsCacheEntriesExpirationTest; |
| import org.apache.ignite.internal.processors.cache.persistence.IgnitePdsContinuousRestartTestWithSharedGroupAndIndexes; |
| import org.apache.ignite.internal.processors.cache.persistence.IgnitePdsDefragmentationEncryptionTest; |
| import org.apache.ignite.internal.processors.cache.persistence.IgnitePdsDefragmentationRandomLruEvictionTest; |
| import org.apache.ignite.internal.processors.cache.persistence.IgnitePdsDefragmentationTest; |
| import org.apache.ignite.internal.processors.cache.persistence.IgnitePdsTaskCancelingTest; |
| import org.apache.ignite.internal.processors.cache.persistence.db.IgnitePdsPartitionPreloadTest; |
| import org.apache.ignite.internal.processors.cache.persistence.diagnostic.pagelocktracker.PageLockTrackerManagerTest; |
| import org.apache.ignite.internal.processors.cache.persistence.diagnostic.pagelocktracker.SharedPageLockTrackerTest; |
| import org.apache.ignite.internal.processors.cache.persistence.diagnostic.pagelocktracker.dumpprocessors.ToFileDumpProcessorTest; |
| import org.apache.ignite.internal.processors.cache.persistence.diagnostic.pagelocktracker.dumpprocessors.ToStringDumpHelperTest; |
| import org.apache.ignite.internal.processors.cache.persistence.diagnostic.pagelocktracker.log.HeapArrayLockLogTest; |
| import org.apache.ignite.internal.processors.cache.persistence.diagnostic.pagelocktracker.log.OffHeapLockLogTest; |
| import org.apache.ignite.internal.processors.cache.persistence.diagnostic.pagelocktracker.stack.HeapArrayLockStackTest; |
| import org.apache.ignite.internal.processors.cache.persistence.diagnostic.pagelocktracker.stack.OffHeapLockStackTest; |
| import org.apache.ignite.internal.processors.cache.persistence.file.FileDownloaderTest; |
| import org.apache.ignite.testframework.junits.DynamicSuite; |
| import org.junit.runner.RunWith; |
| |
| /** |
| * Mvcc variant of {@link IgnitePdsTestSuite4}. |
| */ |
| @RunWith(DynamicSuite.class) |
| public class IgnitePdsMvccTestSuite4 { |
| /** |
| * @return Suite. |
| */ |
| public static List<Class<?>> suite() { |
| System.setProperty(IgniteSystemProperties.IGNITE_FORCE_MVCC_MODE_IN_TESTS, "true"); |
| |
| Set<Class> ignoredTests = new HashSet<>(); |
| |
| // Skip classes that already contains Mvcc tests |
| ignoredTests.add(IgnitePdsPartitionPreloadTest.class); |
| |
| // Skip irrelevant test |
| ignoredTests.add(FileDownloaderTest.class); |
| ignoredTests.add(IgnitePdsTaskCancelingTest.class); |
| |
| // TODO https://issues.apache.org/jira/browse/IGNITE-11937 |
| ignoredTests.add(IgnitePdsContinuousRestartTestWithSharedGroupAndIndexes.class); |
| |
| // Skip page lock tracker tests for MVCC suite. |
| ignoredTests.add(PageLockTrackerManagerTest.class); |
| ignoredTests.add(SharedPageLockTrackerTest.class); |
| ignoredTests.add(ToFileDumpProcessorTest.class); |
| ignoredTests.add(ToStringDumpHelperTest.class); |
| ignoredTests.add(HeapArrayLockLogTest.class); |
| ignoredTests.add(HeapArrayLockStackTest.class); |
| ignoredTests.add(OffHeapLockLogTest.class); |
| ignoredTests.add(OffHeapLockStackTest.class); |
| ignoredTests.add(IgnitePdsCacheEntriesExpirationTest.class); |
| ignoredTests.add(ActivationOnExpirationTimeoutTest.class); |
| |
| // Defragmentation. |
| ignoredTests.add(IgnitePdsDefragmentationTest.class); |
| ignoredTests.add(IgnitePdsDefragmentationRandomLruEvictionTest.class); |
| ignoredTests.add(IgnitePdsDefragmentationEncryptionTest.class); |
| |
| return IgnitePdsTestSuite4.suite(ignoredTests); |
| } |
| } |