Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
apache
pulsar
提交
8a022064
pulsar
项目概览
apache
/
pulsar
通知
129
Star
40
Fork
3
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Wiki
1
Wiki
分析
仓库
DevOps
项目成员
Pages
pulsar
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Pages
分析
分析
仓库分析
DevOps
Wiki
1
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
提交
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
8a022064
编写于
10月 22, 2019
作者:
B
Boyang Jerry Peng
提交者:
Matteo Merli
10月 22, 2019
1
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix couple functions related integration tests (#5434)
上级
c4035d3d
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
36 addition
and
6 deletion
+36
-6
tests/integration/src/test/java/org/apache/pulsar/tests/integration/cli/FunctionsCLITest.java
...apache/pulsar/tests/integration/cli/FunctionsCLITest.java
+6
-6
tests/integration/src/test/resources/pulsar-cli.xml
tests/integration/src/test/resources/pulsar-cli.xml
+1
-0
tests/integration/src/test/resources/pulsar-function-state.xml
.../integration/src/test/resources/pulsar-function-state.xml
+28
-0
tests/integration/src/test/resources/pulsar.xml
tests/integration/src/test/resources/pulsar.xml
+1
-0
未找到文件。
tests/integration/src/test/java/org/apache/pulsar/tests/integration/
functions
/FunctionsCLITest.java
→
tests/integration/src/test/java/org/apache/pulsar/tests/integration/
cli
/FunctionsCLITest.java
浏览文件 @
8a022064
...
...
@@ -16,7 +16,7 @@
* specific language governing permissions and limitations
* under the License.
*/
package
org.apache.pulsar.tests.integration.
functions
;
package
org.apache.pulsar.tests.integration.
cli
;
import
static
org
.
testng
.
Assert
.
assertEquals
;
import
static
org
.
testng
.
Assert
.
assertTrue
;
...
...
@@ -24,19 +24,19 @@ import static org.testng.Assert.assertTrue;
import
lombok.extern.slf4j.Slf4j
;
import
org.apache.pulsar.tests.integration.containers.WorkerContainer
;
import
org.apache.pulsar.tests.integration.docker.ContainerExecResult
;
import
org.apache.pulsar.tests.integration.functions.PulsarFunctionsTestBase
;
import
org.apache.pulsar.tests.integration.functions.utils.UploadDownloadCommandGenerator
;
import
org.apache.pulsar.tests.integration.suites.PulsarTestSuite
;
import
org.apache.pulsar.tests.integration.topologies.PulsarCluster
;
import
org.testng.annotations.Test
;
@Slf4j
public
class
FunctionsCLITest
extends
Pulsar
TestSuit
e
{
public
class
FunctionsCLITest
extends
Pulsar
FunctionsTestBas
e
{
//
// Tests on uploading/downloading function packages.
//
public
String
checkUpload
()
throws
Exception
{
public
String
uploadFunction
()
throws
Exception
{
String
bkPkgPath
=
String
.
format
(
"%s/%s/%s"
,
"tenant-"
+
randomName
(
8
),
"ns-"
+
randomName
(
8
),
...
...
@@ -59,8 +59,8 @@ public class FunctionsCLITest extends PulsarTestSuite {
}
@Test
public
void
check
Download
()
throws
Exception
{
String
bkPkgPath
=
checkUpload
();
public
void
testUpload
Download
()
throws
Exception
{
String
bkPkgPath
=
uploadFunction
();
String
localPkgFile
=
"/tmp/checkdownload-"
+
randomName
(
16
);
UploadDownloadCommandGenerator
generator
=
UploadDownloadCommandGenerator
.
createDownloader
(
...
...
tests/integration/src/test/resources/pulsar-cli.xml
浏览文件 @
8a022064
...
...
@@ -26,6 +26,7 @@
<class
name=
"org.apache.pulsar.tests.integration.cli.HealthCheckTest"
/>
<class
name=
"org.apache.pulsar.tests.integration.compaction.TestCompaction"
/>
<class
name=
"org.apache.pulsar.tests.integration.cli.AdminMultiHostTest"
/>
<class
name=
"org.apache.pulsar.tests.integration.cli.FunctionsCLITest"
/>
</classes>
</test>
</suite>
tests/integration/src/test/resources/pulsar-function-state.xml
0 → 100644
浏览文件 @
8a022064
<!--
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.
-->
<!DOCTYPE suite SYSTEM "http://testng.org/testng-1.0.dtd" >
<suite
name=
"Pulsar Function State Integration Tests"
verbose=
"2"
annotations=
"JDK"
>
<test
name=
"pulsar-function-state-test-suite"
preserve-order=
"true"
>
<classes>
<class
name=
"org.apache.pulsar.tests.integration.functions.PulsarStateTest"
/>
</classes>
</test>
</suite>
tests/integration/src/test/resources/pulsar.xml
浏览文件 @
8a022064
...
...
@@ -29,5 +29,6 @@
<suite-file
path=
"./pulsar-thread.xml"
/>
<suite-file
path=
"./tiered-jcloud-storage.xml"
/>
<suite-file
path=
"./tiered-filesystem-storage.xml"
/>
<suite-file
path=
"./pulsar-function-state.xml"
/>
</suite-files>
</suite>
tester丶
🤺
@ssszwink
mentioned in commit
370bfc39
·
9月 09, 2020
mentioned in commit
370bfc39
mentioned in commit 370bfc39a44cd42ed265ca299ba3541bae436dbd
开关提交列表
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录