Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doujutun3207
flink
提交
46f8b592
F
flink
项目概览
doujutun3207
/
flink
与 Fork 源项目一致
从无法访问的项目Fork
通知
24
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
F
flink
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
46f8b592
编写于
10月 15, 2019
作者:
Z
Zhu Zhu
提交者:
Gary Yao
10月 16, 2019
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[FLINK-14365][tests] Annotate MiniCluster tests in core modules with AlsoRunWithSchedulerNG
This closes #9901.
上级
88b48619
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
15 addition
and
0 deletion
+15
-0
flink-clients/src/test/java/org/apache/flink/client/program/ClientTest.java
...test/java/org/apache/flink/client/program/ClientTest.java
+3
-0
flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/WebFrontendITCase.java
...rg/apache/flink/runtime/webmonitor/WebFrontendITCase.java
+3
-0
flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarRunHandlerTest.java
.../flink/runtime/webmonitor/handlers/JarRunHandlerTest.java
+3
-0
flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/history/HistoryServerTest.java
...e/flink/runtime/webmonitor/history/HistoryServerTest.java
+3
-0
flink-scala-shell/src/test/scala/org/apache/flink/api/scala/ScalaShellITCase.scala
...t/scala/org/apache/flink/api/scala/ScalaShellITCase.scala
+3
-0
未找到文件。
flink-clients/src/test/java/org/apache/flink/client/program/ClientTest.java
浏览文件 @
46f8b592
...
...
@@ -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
...
...
flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/WebFrontendITCase.java
浏览文件 @
46f8b592
...
...
@@ -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
;
...
...
flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/handlers/JarRunHandlerTest.java
浏览文件 @
46f8b592
...
...
@@ -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
...
...
flink-runtime-web/src/test/java/org/apache/flink/runtime/webmonitor/history/HistoryServerTest.java
浏览文件 @
46f8b592
...
...
@@ -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
...
...
flink-scala-shell/src/test/scala/org/apache/flink/api/scala/ScalaShellITCase.scala
浏览文件 @
46f8b592
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录