Skip to content

Commit

Permalink
[FLINK-15668][tests] Remove AlsoRunWithLegacyScheduler
Browse files Browse the repository at this point in the history
This closes apache#10899.
  • Loading branch information
zhuzhurk authored and tillrohrmann committed May 16, 2020
1 parent 3262f8d commit dc3a498
Show file tree
Hide file tree
Showing 54 changed files with 0 additions and 185 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,15 +53,13 @@
import org.apache.flink.runtime.jobgraph.JobGraph;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.FlinkRuntimeException;
import org.apache.flink.util.NetUtils;
import org.apache.flink.util.TestLogger;

import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.mockito.invocation.InvocationOnMock;
import org.mockito.stubbing.Answer;

Expand All @@ -83,7 +81,6 @@
/**
* Simple and maybe stupid test to check the {@link ClusterClient} class.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class ClientTest extends TestLogger {

@ClassRule
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
import org.apache.flink.runtime.webmonitor.testutils.HttpTestClient;
import org.apache.flink.test.util.MiniClusterWithClientResource;
import org.apache.flink.test.util.TestBaseUtils;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.TestLogger;

import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode;
Expand All @@ -49,7 +48,6 @@
import org.junit.Assert;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.io.File;
import java.io.InputStream;
Expand All @@ -74,7 +72,6 @@
/**
* Tests for the WebFrontend.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class WebFrontendITCase extends TestLogger {

private static final int NUM_TASK_MANAGERS = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,12 @@

import org.apache.flink.client.program.ProgramInvocationException;
import org.apache.flink.runtime.webmonitor.TestingDispatcherGateway;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.ExceptionUtils;
import org.apache.flink.util.TestLogger;

import org.junit.Assert;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.TemporaryFolder;

import java.nio.file.Files;
Expand All @@ -41,7 +39,6 @@
/**
* Tests for the {@link JarRunHandler} and {@link JarPlanHandler}.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class JarHandlerTest extends TestLogger {

private static final String JAR_NAME = "output-test-program.jar";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import org.apache.flink.streaming.api.environment.StreamExecutionEnvironment;
import org.apache.flink.streaming.api.functions.sink.DiscardingSink;
import org.apache.flink.test.util.MiniClusterWithClientResource;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.TestLogger;

import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonFactory;
Expand All @@ -48,7 +47,6 @@
import org.junit.Before;
import org.junit.Rule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.TemporaryFolder;
import org.junit.runner.RunWith;
import org.junit.runners.Parameterized;
Expand All @@ -73,7 +71,6 @@
* Tests for the HistoryServer.
*/
@RunWith(Parameterized.class)
@Category(AlsoRunWithLegacyScheduler.class)
public class HistoryServerTest extends TestLogger {

private static final JsonFactory JACKSON_FACTORY = new JsonFactory()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,14 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.TestLogger;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

/**
* Test for consuming a pipelined result only partially.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class PartialConsumePipelinedResultTest extends TestLogger {

// Test configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,13 @@
import org.apache.flink.runtime.testtasks.NoOpInvokable;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.ExceptionUtils;
import org.apache.flink.util.TestLogger;

import org.junit.AfterClass;
import org.junit.BeforeClass;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.TemporaryFolder;

import javax.annotation.Nonnull;
Expand All @@ -72,7 +70,6 @@
* Small test to check that the {@link org.apache.flink.runtime.blob.BlobServer} cleanup is executed
* after job termination.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class BlobsCleanupITCase extends TestLogger {

private static final long RETRY_INTERVAL = 100L;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,13 +33,11 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.types.IntValue;
import org.apache.flink.util.TestLogger;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.util.BitSet;

Expand All @@ -48,7 +46,6 @@
* of slots. This effectively tests that Flink can execute jobs with blocking results
* in a staged fashion.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class SlotCountExceedingParallelismTest extends TestLogger {

// Test configuration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,13 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.types.IntValue;
import org.apache.flink.util.TestLogger;

import org.apache.flink.shaded.guava18.com.google.common.collect.Lists;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.util.List;

Expand All @@ -50,7 +48,6 @@
* Tests for the lazy scheduling/updating of consumers depending on the
* producers result.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class ScheduleOrUpdateConsumersTest extends TestLogger {

private static final int NUMBER_OF_TMS = 2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,9 @@
import org.apache.flink.runtime.jobmanager.scheduler.SlotSharingGroup;
import org.apache.flink.runtime.minicluster.TestingMiniCluster;
import org.apache.flink.runtime.minicluster.TestingMiniClusterConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.TestLogger;

import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.util.concurrent.CompletableFuture;

Expand All @@ -39,7 +37,6 @@
/**
* Integration tests for job scheduling.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class JobExecutionITCase extends TestLogger {

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,11 @@
import org.apache.flink.runtime.minicluster.MiniCluster;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.FlinkRuntimeException;
import org.apache.flink.util.TestLogger;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.io.IOException;
import java.util.concurrent.CompletableFuture;
Expand All @@ -46,7 +44,6 @@
/**
* Tests for the recovery of task failures.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class JobRecoveryITCase extends TestLogger {

private static final int NUM_TMS = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,13 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.CommonTestUtils;
import org.apache.flink.runtime.util.LeaderRetrievalUtils;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.ExceptionUtils;
import org.apache.flink.util.TestLogger;

import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.time.Duration;
import java.util.concurrent.CompletableFuture;
Expand All @@ -56,7 +54,6 @@
/**
* Tests which verify the cluster behaviour in case of leader changes.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class LeaderChangeClusterComponentsTest extends TestLogger {

private static final Duration TESTING_TIMEOUT = Duration.ofMinutes(2L);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,9 @@
import org.apache.flink.runtime.testtasks.BlockingNoOpInvokable;
import org.apache.flink.runtime.testtasks.NoOpInvokable;
import org.apache.flink.runtime.testtasks.WaitingNoOpInvokable;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.TestLogger;

import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.io.IOException;
import java.util.concurrent.CompletableFuture;
Expand All @@ -64,7 +62,6 @@
/**
* Integration test cases for the {@link MiniCluster}.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class MiniClusterITCase extends TestLogger {

@Test
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,12 @@
import org.apache.flink.runtime.minicluster.TestingMiniCluster;
import org.apache.flink.runtime.minicluster.TestingMiniClusterConfiguration;
import org.apache.flink.runtime.testutils.CommonTestUtils;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.TestLogger;
import org.apache.flink.util.function.SupplierWithException;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.io.IOException;
import java.time.Duration;
Expand All @@ -58,7 +56,6 @@
/**
* Integration tests for the {@link TaskExecutor}.
*/
@Category(AlsoRunWithLegacyScheduler.class)
public class TaskExecutorITCase extends TestLogger {

private static final Duration TESTING_TIMEOUT = Duration.ofMinutes(2L);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,13 +41,11 @@
import org.apache.flink.runtime.testingUtils.TestingUtils;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.types.LongValue;
import org.apache.flink.util.TestLogger;

import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import java.time.Duration;
import java.util.Arrays;
Expand All @@ -58,7 +56,6 @@
import static org.junit.Assert.assertNotNull;
import static org.junit.Assert.assertTrue;

@Category(AlsoRunWithLegacyScheduler.class)
public class TaskCancelAsyncProducerConsumerITCase extends TestLogger {

// The Exceptions thrown by the producer/consumer Threads
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,8 @@ import org.apache.flink.runtime.clusterframework.BootstrapTools
import org.apache.flink.runtime.minicluster.MiniCluster
import org.apache.flink.runtime.testutils.MiniClusterResource
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler
import org.apache.flink.util.TestLogger
import org.junit._
import org.junit.experimental.categories.Category
import org.junit.rules.TemporaryFolder

import scala.tools.nsc.Settings
Expand Down Expand Up @@ -451,7 +449,6 @@ class ScalaShellITCase extends TestLogger {

}

@Category(Array(classOf[AlsoRunWithLegacyScheduler]))
object ScalaShellITCase {

val configuration = new Configuration()
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,9 @@
package org.apache.flink.test.util;

import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithLegacyScheduler;
import org.apache.flink.util.FileUtils;

import org.junit.ClassRule;
import org.junit.experimental.categories.Category;
import org.junit.rules.TemporaryFolder;

import java.io.File;
Expand Down Expand Up @@ -56,7 +54,6 @@
*
* </pre>
*/
@Category(AlsoRunWithLegacyScheduler.class)
public abstract class AbstractTestBase extends TestBaseUtils {

private static final int DEFAULT_PARALLELISM = 4;
Expand Down
Loading

0 comments on commit dc3a498

Please sign in to comment.