提交 f877d4f4 编写于 作者: C Cleber Rosa

Merge remote-tracking branch 'ruda/test_api_refactoring_restclient_V2'

...@@ -7,7 +7,7 @@ command is used ...@@ -7,7 +7,7 @@ command is used
""" """
from avocado.restclient import connection from avocado.restclient import connection
from avocado.restclient.cli.actions import base from avocado.core.restclient.cli.actions import base
@base.action @base.action
......
...@@ -23,10 +23,10 @@ import importlib ...@@ -23,10 +23,10 @@ import importlib
import functools import functools
from avocado import settings from avocado import settings
from avocado.restclient import connection
from avocado.core import output from avocado.core import output
from avocado.core import exit_codes from avocado.core import exit_codes
from avocado.restclient import connection from avocado.core.restclient.cli import parser
from avocado.restclient.cli import parser
__all__ = ['App'] __all__ = ['App']
...@@ -82,7 +82,7 @@ class App(object): ...@@ -82,7 +82,7 @@ class App(object):
This involves loading the relevant module file. 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) self.args.top_level_action)
try: try:
......
# 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>
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
This module has actions for the server command 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'] __all__ = ['ACTION_STATUS', 'ACTION_ARGUMENTS', 'ARGUMENTS']
......
...@@ -69,7 +69,7 @@ class Parser(argparse.ArgumentParser): ...@@ -69,7 +69,7 @@ class Parser(argparse.ArgumentParser):
help='Password to give to avocado server') help='Password to give to avocado server')
def add_arguments_on_all_modules(self, 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 Add arguments that are present on all Python modules at a given prefix
......
...@@ -207,7 +207,7 @@ def get_default(): ...@@ -207,7 +207,7 @@ def get_default():
""" """
Returns the global, default connection to avocado-server 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 global CONNECTION
......
...@@ -22,7 +22,7 @@ basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) ...@@ -22,7 +22,7 @@ basedir = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
if os.path.isdir(os.path.join(basedir, 'avocado')): if os.path.isdir(os.path.join(basedir, 'avocado')):
sys.path.append(basedir) sys.path.append(basedir)
from avocado.restclient.cli.app import App from avocado.core.restclient.cli.app import App
if __name__ == '__main__': if __name__ == '__main__':
app = App() app = App()
......
...@@ -113,9 +113,10 @@ if __name__ == '__main__': ...@@ -113,9 +113,10 @@ if __name__ == '__main__':
'avocado.utils', 'avocado.utils',
'avocado.core.remote', 'avocado.core.remote',
'avocado.restclient', 'avocado.restclient',
'avocado.restclient.cli', 'avocado.core.restclient',
'avocado.restclient.cli.args', 'avocado.core.restclient.cli',
'avocado.restclient.cli.actions'], 'avocado.core.restclient.cli.args',
'avocado.core.restclient.cli.actions'],
package_data={'avocado.core.plugins': _get_plugin_resource_files( package_data={'avocado.core.plugins': _get_plugin_resource_files(
'avocado/plugins/resources')}, 'avocado/plugins/resources')},
data_files=get_data_files(), data_files=get_data_files(),
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册