BoYiZhang
4 years ago
committed by
GitHub
42 changed files with 510 additions and 567 deletions
@ -0,0 +1,19 @@
|
||||
Copyright (c) 2012-2014 Chris Pettitt |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy |
||||
of this software and associated documentation files (the "Software"), to deal |
||||
in the Software without restriction, including without limitation the rights |
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||
copies of the Software, and to permit persons to whom the Software is |
||||
furnished to do so, subject to the following conditions: |
||||
|
||||
The above copyright notice and this permission notice shall be included in |
||||
all copies or substantial portions of the Software. |
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
||||
THE SOFTWARE. |
@ -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