Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
avocado
提交
f877d4f4
A
avocado
项目概览
openeuler
/
avocado
通知
0
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
A
avocado
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
f877d4f4
编写于
5月 13, 2015
作者:
C
Cleber Rosa
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'ruda/test_api_refactoring_restclient_V2'
上级
24945ef1
e9451fdb
变更
13
隐藏空白更改
内联
并排
Showing
13 changed file
with
25 addition
and
11 deletion
+25
-11
avocado/core/restclient/__init__.py
avocado/core/restclient/__init__.py
+0
-0
avocado/core/restclient/cli/__init__.py
avocado/core/restclient/cli/__init__.py
+0
-0
avocado/core/restclient/cli/actions/__init__.py
avocado/core/restclient/cli/actions/__init__.py
+0
-0
avocado/core/restclient/cli/actions/base.py
avocado/core/restclient/cli/actions/base.py
+0
-0
avocado/core/restclient/cli/actions/server.py
avocado/core/restclient/cli/actions/server.py
+1
-1
avocado/core/restclient/cli/app.py
avocado/core/restclient/cli/app.py
+3
-3
avocado/core/restclient/cli/args/__init__.py
avocado/core/restclient/cli/args/__init__.py
+13
-0
avocado/core/restclient/cli/args/base.py
avocado/core/restclient/cli/args/base.py
+0
-0
avocado/core/restclient/cli/args/server.py
avocado/core/restclient/cli/args/server.py
+1
-1
avocado/core/restclient/cli/parser.py
avocado/core/restclient/cli/parser.py
+1
-1
avocado/restclient/connection.py
avocado/restclient/connection.py
+1
-1
scripts/avocado-rest-client
scripts/avocado-rest-client
+1
-1
setup.py
setup.py
+4
-3
未找到文件。
avocado/
restclient/cli
/__init__.py
→
avocado/
core/restclient
/__init__.py
浏览文件 @
f877d4f4
文件已移动
avocado/
restclient/cli/actions
/__init__.py
→
avocado/
core/restclient/cli
/__init__.py
浏览文件 @
f877d4f4
文件已移动
avocado/
restclient/cli/arg
s/__init__.py
→
avocado/
core/restclient/cli/action
s/__init__.py
浏览文件 @
f877d4f4
文件已移动
avocado/restclient/cli/actions/base.py
→
avocado/
core/
restclient/cli/actions/base.py
浏览文件 @
f877d4f4
文件已移动
avocado/restclient/cli/actions/server.py
→
avocado/
core/
restclient/cli/actions/server.py
浏览文件 @
f877d4f4
...
...
@@ -7,7 +7,7 @@ command is used
"""
from
avocado.restclient
import
connection
from
avocado.restclient.cli.actions
import
base
from
avocado.
core.
restclient.cli.actions
import
base
@
base
.
action
...
...
avocado/restclient/cli/app.py
→
avocado/
core/
restclient/cli/app.py
浏览文件 @
f877d4f4
...
...
@@ -23,10 +23,10 @@ import importlib
import
functools
from
avocado
import
settings
from
avocado.restclient
import
connection
from
avocado.core
import
output
from
avocado.core
import
exit_codes
from
avocado.restclient
import
connection
from
avocado.restclient.cli
import
parser
from
avocado.core.restclient.cli
import
parser
__all__
=
[
'App'
]
...
...
@@ -82,7 +82,7 @@ class App(object):
This involves loading the relevant module file.
"""
module_name
=
"%s.%s"
%
(
'avocado.restclient.cli.actions'
,
module_name
=
"%s.%s"
%
(
'avocado.
core.
restclient.cli.actions'
,
self
.
args
.
top_level_action
)
try
:
...
...
avocado/core/restclient/cli/args/__init__.py
0 → 100644
浏览文件 @
f877d4f4
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#
# See LICENSE for more details.
#
# Copyright: Red Hat Inc. 2015
# Author: Cleber Rosa <cleber@redhat.com>
avocado/restclient/cli/args/base.py
→
avocado/
core/
restclient/cli/args/base.py
浏览文件 @
f877d4f4
文件已移动
avocado/restclient/cli/args/server.py
→
avocado/
core/
restclient/cli/args/server.py
浏览文件 @
f877d4f4
...
...
@@ -16,7 +16,7 @@
This module has actions for the server command
"""
from
avocado.restclient.cli.args
import
base
from
avocado.
core.
restclient.cli.args
import
base
__all__
=
[
'ACTION_STATUS'
,
'ACTION_ARGUMENTS'
,
'ARGUMENTS'
]
...
...
avocado/restclient/cli/parser.py
→
avocado/
core/
restclient/cli/parser.py
浏览文件 @
f877d4f4
...
...
@@ -69,7 +69,7 @@ class Parser(argparse.ArgumentParser):
help
=
'Password to give to avocado server'
)
def
add_arguments_on_all_modules
(
self
,
prefix
=
'avocado.restclient.cli.args'
):
prefix
=
'avocado.
core.
restclient.cli.args'
):
'''
Add arguments that are present on all Python modules at a given prefix
...
...
avocado/restclient/connection.py
浏览文件 @
f877d4f4
...
...
@@ -207,7 +207,7 @@ def get_default():
"""
Returns the global, default connection to avocado-server
:returns: an avocado.restclient.connection.Connection instance
:returns: an avocado.
core.
restclient.connection.Connection instance
"""
global
CONNECTION
...
...
scripts/avocado-rest-client
浏览文件 @
f877d4f4
...
...
@@ -22,7 +22,7 @@ basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if
os
.
path
.
isdir
(
os
.
path
.
join
(
basedir
,
'avocado'
)):
sys
.
path
.
append
(
basedir
)
from
avocado.restclient.cli.app
import
App
from
avocado.
core.
restclient.cli.app
import
App
if
__name__
==
'__main__'
:
app
=
App
()
...
...
setup.py
浏览文件 @
f877d4f4
...
...
@@ -113,9 +113,10 @@ if __name__ == '__main__':
'avocado.utils'
,
'avocado.core.remote'
,
'avocado.restclient'
,
'avocado.restclient.cli'
,
'avocado.restclient.cli.args'
,
'avocado.restclient.cli.actions'
],
'avocado.core.restclient'
,
'avocado.core.restclient.cli'
,
'avocado.core.restclient.cli.args'
,
'avocado.core.restclient.cli.actions'
],
package_data
=
{
'avocado.core.plugins'
:
_get_plugin_resource_files
(
'avocado/plugins/resources'
)},
data_files
=
get_data_files
(),
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录