Browse Source
* Add task connection * Optimize test cases * Modify variable format * Optimize test cases * Update BrowserCommon.java * Update BrowserCommon.java * Update WorkflowDefineLocator.java * Optimize waiting time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize project wait time * Optimize wait time * Optimize wait time * open timing testcase * Optimize wait time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize wait time * Optimize alert to save workflow * Optimize alert to save workflow * add yaml reader * add yaml file * [e2e] test data configure isolation * [e2e] test data configure isolation * [e2e] test data configure isolation * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify style AvoidStarImport * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify check code style * [e2e] modify check code style Co-authored-by: chenxingchun <438044805@qq.com>pull/3/MERGE
xingchun-chen
4 years ago
committed by
GitHub
31 changed files with 369 additions and 312 deletions
@ -0,0 +1,45 @@ |
|||||||
|
/* |
||||||
|
* 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.dolphinscheduler.util; |
||||||
|
|
||||||
|
import java.io.IOException; |
||||||
|
import java.io.InputStream; |
||||||
|
import java.util.HashMap; |
||||||
|
|
||||||
|
import org.ho.yaml.Yaml; |
||||||
|
import org.springframework.core.io.DefaultResourceLoader; |
||||||
|
import org.springframework.core.io.Resource; |
||||||
|
|
||||||
|
/** |
||||||
|
* read yml file |
||||||
|
*/ |
||||||
|
public class YmlReader { |
||||||
|
public static HashMap<String,HashMap<String, String>> map; |
||||||
|
public String getDataYml(String filePath, String key1, String key2) { |
||||||
|
Yaml yaml = new Yaml(); |
||||||
|
Resource resource = new DefaultResourceLoader().getResource("classpath:" + filePath + ".yml"); |
||||||
|
try { |
||||||
|
InputStream inputStream = resource.getInputStream(); |
||||||
|
map = yaml.loadType(inputStream, HashMap.class); |
||||||
|
} catch (IOException e) { |
||||||
|
e.printStackTrace(); |
||||||
|
} |
||||||
|
String data = map.get(key1).get(key2); |
||||||
|
return data; |
||||||
|
} |
||||||
|
} |
@ -0,0 +1,55 @@ |
|||||||
|
# |
||||||
|
# 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. |
||||||
|
# |
||||||
|
|
||||||
|
userManage: |
||||||
|
userName: selenium_user_11111 |
||||||
|
password: 123456qwe |
||||||
|
email: 123456789@qq.com |
||||||
|
phone: '15811112222' |
||||||
|
createUserButton: 创建用户 |
||||||
|
editUserName: selenium_user_edit |
||||||
|
editPassword: 123456qwe@asd |
||||||
|
editEmail: 123456_edit@qq.com |
||||||
|
editPhone: '15800001111' |
||||||
|
userTitle: 用户管理 - DolphinScheduler |
||||||
|
|
||||||
|
tenantManage: |
||||||
|
tenantCode: selenium_tenant_code_1 |
||||||
|
tenantName: selenium_tenant_Name |
||||||
|
queue: default |
||||||
|
description: create tenant test |
||||||
|
tenantTitle: 租户管理 - DolphinScheduler |
||||||
|
|
||||||
|
alertManage: |
||||||
|
alertName: selenium_alert_Name |
||||||
|
createAlert: 创建告警组 |
||||||
|
alertType: 邮件 |
||||||
|
description: create alert test |
||||||
|
alertTitle: 告警组管理 - DolphinScheduler |
||||||
|
|
||||||
|
queueManage: |
||||||
|
queueName: selenium_queue_name |
||||||
|
queueValue: selenium_queue_value |
||||||
|
createQueueButton: 创建队列 |
||||||
|
editQueueName: selenium_queue_value_edit |
||||||
|
editQueueValue: selenium_queue_value_edit |
||||||
|
queueTitle: 队列管理 - DolphinScheduler |
||||||
|
|
||||||
|
tokenManage: |
||||||
|
tokenTitle: 令牌管理 - DolphinScheduler |
||||||
|
createTokenText: 创建令牌 |
||||||
|
userName: admin |
@ -0,0 +1,63 @@ |
|||||||
|
# |
||||||
|
# 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. |
||||||
|
# |
||||||
|
|
||||||
|
projectManage: |
||||||
|
createProjectButton: 创建项目 |
||||||
|
projectName: selenium_project_1 |
||||||
|
description: test create project description |
||||||
|
projectTitle: 项目 - DolphinScheduler |
||||||
|
|
||||||
|
workflowDefine: |
||||||
|
workflowDefine: 工作流定义 |
||||||
|
shellTaskName: shell_task_selenium_1 |
||||||
|
shellTaskDescription: shell task description test |
||||||
|
taskTimeout: '60' |
||||||
|
shellScript: echo "shell task test" |
||||||
|
customParameter1: selenium_parameter |
||||||
|
customParameterValue1: selenium_parameter_123 |
||||||
|
customParameter2: selenium_parameter_delete |
||||||
|
customParameterValue2: selenium_parameter_delete_456 |
||||||
|
workflowDefineTitle: 工作流定义 - DolphinScheduler |
||||||
|
createWorkflowTitle: 创建流程定义 - DolphinScheduler |
||||||
|
workflowName: selenium_shell_1 |
||||||
|
workflowDescription: test selenium_shell_1 description |
||||||
|
workflowTimeout: '30' |
||||||
|
globalParameter1: selenium_global_parameters_1 |
||||||
|
globalParameterValue1: selenium_global_parameters_value_1 |
||||||
|
globalParameter2: selenium_global_parameters_2 |
||||||
|
globalParameterValue2: selenium_global_parameters_value_2 |
||||||
|
online: 上线 |
||||||
|
offline: 下线 |
||||||
|
|
||||||
|
runWorkflow: |
||||||
|
recipient: 123456789@qq.com |
||||||
|
Cc: qwe12312sds@qq.com |
||||||
|
online: 上线 |
||||||
|
offline: 下线 |
||||||
|
|
||||||
|
timing: |
||||||
|
recipient: test123456@qq.com |
||||||
|
Cc: test.123qwe@qq.com |
||||||
|
editRecipient: test.edit123456@qq.com |
||||||
|
editCc: test.edit123qwe@qq.com |
||||||
|
timingTitle: 定时任务列表 - DolphinScheduler |
||||||
|
online: 上线 |
||||||
|
offline: 下线 |
||||||
|
|
||||||
|
processInstance: |
||||||
|
processInstanceTitle: 工作流实例 - DolphinScheduler |
||||||
|
rerun: 重跑 |
Loading…
Reference in new issue