提交 46f8b592 编写于 作者: Z Zhu Zhu 提交者: Gary Yao

[FLINK-14365][tests] Annotate MiniCluster tests in core modules with AlsoRunWithSchedulerNG

This closes #9901.
上级 88b48619
......@@ -39,12 +39,14 @@ import org.apache.flink.optimizer.plandump.PlanJSONDumpGenerator;
import org.apache.flink.runtime.jobgraph.SavepointRestoreSettings;
import org.apache.flink.runtime.testutils.MiniClusterResource;
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG;
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;
......@@ -59,6 +61,7 @@ import static org.mockito.Mockito.mock;
/**
* Simple and maybe stupid test to check the {@link ClusterClient} class.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class ClientTest extends TestLogger {
@ClassRule
......
......@@ -33,6 +33,7 @@ import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
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.AlsoRunWithSchedulerNG;
import org.apache.flink.util.TestLogger;
import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.databind.JsonNode;
......@@ -46,6 +47,7 @@ import org.junit.After;
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;
......@@ -68,6 +70,7 @@ import static org.junit.Assert.fail;
/**
* Tests for the WebFrontend.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class WebFrontendITCase extends TestLogger {
private static final int NUM_TASK_MANAGERS = 2;
......
......@@ -28,11 +28,13 @@ import org.apache.flink.runtime.rest.util.RestClientException;
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.AlsoRunWithSchedulerNG;
import org.apache.flink.util.ExceptionUtils;
import org.apache.flink.util.TestLogger;
import org.junit.ClassRule;
import org.junit.Test;
import org.junit.experimental.categories.Category;
import org.junit.rules.TemporaryFolder;
import java.nio.file.Files;
......@@ -46,6 +48,7 @@ import static org.junit.Assert.assertTrue;
/**
* Tests for the {@link JarRunHandler}.
*/
@Category(AlsoRunWithSchedulerNG.class)
public class JarRunHandlerTest extends TestLogger {
@ClassRule
......
......@@ -30,6 +30,7 @@ import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration;
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.AlsoRunWithSchedulerNG;
import org.apache.flink.util.TestLogger;
import org.apache.flink.shaded.jackson2.com.fasterxml.jackson.core.JsonFactory;
......@@ -42,6 +43,7 @@ import org.junit.Assert;
import org.junit.Before;
import org.junit.ClassRule;
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;
......@@ -63,6 +65,7 @@ import java.util.concurrent.TimeUnit;
* Tests for the HistoryServer.
*/
@RunWith(Parameterized.class)
@Category(AlsoRunWithSchedulerNG.class)
public class HistoryServerTest extends TestLogger {
@ClassRule
......
......@@ -25,8 +25,10 @@ import org.apache.flink.runtime.clusterframework.BootstrapTools
import org.apache.flink.runtime.minicluster.MiniCluster
import org.apache.flink.runtime.testutils.{MiniClusterResource, MiniClusterResourceConfiguration}
import org.apache.flink.runtime.testutils.MiniClusterResourceConfiguration
import org.apache.flink.testutils.junit.category.AlsoRunWithSchedulerNG
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
......@@ -441,6 +443,7 @@ class ScalaShellITCase extends TestLogger {
}
@Category(Array(classOf[AlsoRunWithSchedulerNG]))
object ScalaShellITCase {
val configuration = new Configuration()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册