Fix pep8 errors and remove unnecessary tests.
Also remove .idea directory. Change-Id: I40ae15dd264722dd810b7a3d1db5b555e5b0c3f0
This commit is contained in:
parent
d65dfd2828
commit
d1f9a8e3e3
4
.gitreview
Normal file
4
.gitreview
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
[gerrit]
|
||||||
|
host=review.openstack.org
|
||||||
|
port=29418
|
||||||
|
project=stackforge/murano-metadataclient.git
|
7
.idea/dictionaries/fervent.xml
generated
7
.idea/dictionaries/fervent.xml
generated
@ -1,7 +0,0 @@
|
|||||||
<component name="ProjectDictionaryState">
|
|
||||||
<dictionary name="fervent">
|
|
||||||
<words>
|
|
||||||
<w>metadataclient</w>
|
|
||||||
</words>
|
|
||||||
</dictionary>
|
|
||||||
</component>
|
|
@ -132,8 +132,8 @@ class MuranoRepositoryShell(object):
|
|||||||
parser.add_argument('--murano_metadata-api-version',
|
parser.add_argument('--murano_metadata-api-version',
|
||||||
default=utils.env(
|
default=utils.env(
|
||||||
'MURANO_METADATA_API_VERSION', default='1'),
|
'MURANO_METADATA_API_VERSION', default='1'),
|
||||||
help='Defaults to env[MURANO_METADATA_API_VERSION] '
|
help='Defaults to env[MURANO_METADATA_API_VERSION]'
|
||||||
'or 1')
|
' or 1')
|
||||||
return parser
|
return parser
|
||||||
|
|
||||||
def get_subcommand_parser(self, version):
|
def get_subcommand_parser(self, version):
|
||||||
|
@ -1,15 +1,14 @@
|
|||||||
distribute>=0.6.24
|
|
||||||
|
|
||||||
mock
|
mock>=1.0
|
||||||
anyjson
|
anyjson>=0.3.3
|
||||||
mox
|
mox>=0.5.3
|
||||||
nose
|
nose
|
||||||
nose-exclude
|
nose-exclude
|
||||||
nosexcover
|
nosexcover
|
||||||
openstack.nose_plugin
|
openstack.nose_plugin>=0.7
|
||||||
nosehtmloutput
|
nosehtmloutput>=0.0.3
|
||||||
pep8==1.3.3
|
pep8==1.3.3
|
||||||
setuptools-git>=0.4
|
|
||||||
sphinx>=1.1.2
|
sphinx>=1.1.2
|
||||||
unittest2
|
unittest2
|
||||||
httpretty
|
httpretty>=0.6.3
|
||||||
|
|
||||||
|
34
test.py
34
test.py
@ -1,34 +0,0 @@
|
|||||||
from metadataclient.v1.client import Client
|
|
||||||
|
|
||||||
|
|
||||||
def metadataclient():
|
|
||||||
endpoint = 'http://localhost:5000'
|
|
||||||
insecure = False
|
|
||||||
token_id = '12casc2'
|
|
||||||
|
|
||||||
return Client(endpoint=endpoint, token=token_id, insecure=insecure)
|
|
||||||
|
|
||||||
|
|
||||||
def main():
|
|
||||||
# metadataclient().metadata_client.get_ui_data()
|
|
||||||
metadataclient().metadata_client.get_conductor_data()
|
|
||||||
admin = metadataclient().metadata_admin
|
|
||||||
# print admin.list_ui()
|
|
||||||
# print admin.list_ui('Murano')
|
|
||||||
# print admin.list_agent()
|
|
||||||
# workflows = admin.list_workflows()
|
|
||||||
# for key, value in workflows.iteritems():
|
|
||||||
# for i in value:
|
|
||||||
# print i
|
|
||||||
# heat = metadataclient().metadata_admin.list_heat()
|
|
||||||
# for key, value in heat.iteritems():
|
|
||||||
# for i in value:
|
|
||||||
# print i
|
|
||||||
|
|
||||||
# admin.get_file('ui', 'WebServer.yaml')
|
|
||||||
# print admin.get_file('ui', 'Murano/Demo.yaml')
|
|
||||||
# admin.create_directory('ui', 'test')
|
|
||||||
# admin.delete_dir('ui', 'Murano/README.rst')
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
|
||||||
main()
|
|
26
tox.ini
26
tox.ini
@ -1,5 +1,5 @@
|
|||||||
[tox]
|
[tox]
|
||||||
envlist = py27,pep8,pep8,pyflakes
|
envlist = pep8,pyflakes
|
||||||
|
|
||||||
[testenv]
|
[testenv]
|
||||||
setenv = VIRTUAL_ENV={envdir}
|
setenv = VIRTUAL_ENV={envdir}
|
||||||
@ -10,7 +10,7 @@ setenv = VIRTUAL_ENV={envdir}
|
|||||||
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
NOSE_OPENSTACK_SHOW_ELAPSED=1
|
||||||
deps = -r{toxinidir}/requirements.txt
|
deps = -r{toxinidir}/requirements.txt
|
||||||
-r{toxinidir}/test-requirements.txt
|
-r{toxinidir}/test-requirements.txt
|
||||||
commands = nosetests
|
#commands = nosetests
|
||||||
|
|
||||||
[testenv:pep8]
|
[testenv:pep8]
|
||||||
deps = pep8==1.3.3
|
deps = pep8==1.3.3
|
||||||
@ -20,34 +20,28 @@ commands = pep8 --repeat --show-source metadataclient setup.py
|
|||||||
commands = {posargs}
|
commands = {posargs}
|
||||||
|
|
||||||
[testenv:cover]
|
[testenv:cover]
|
||||||
commands = nosetests --cover-erase --cover-package=metadataclient --with-xcoverage
|
#commands = nosetests --cover-erase --cover-package=metadataclient --with-xcoverage
|
||||||
|
|
||||||
[tox:jenkins]
|
[tox:jenkins]
|
||||||
downloadcache = ~/cache/pip
|
downloadcache = ~/cache/pip
|
||||||
|
|
||||||
[testenv:jenkins26]
|
[testenv:jenkins26]
|
||||||
basepython = python2.6
|
basepython = python2.6
|
||||||
setenv = NOSE_WITH_XUNIT=1
|
|
||||||
deps = file://{toxinidir}/.cache.bundle
|
|
||||||
|
|
||||||
[testenv:jenkins27]
|
[testenv:jenkins27]
|
||||||
basepython = python2.7
|
basepython = python2.7
|
||||||
setenv = NOSE_WITH_XUNIT=1
|
|
||||||
deps = file://{toxinidir}/.cache.bundle
|
|
||||||
|
|
||||||
[testenv:jenkinscover]
|
[testenv:py33]
|
||||||
deps = file://{toxinidir}/.cache.bundle
|
basepython = python2.7
|
||||||
setenv = NOSE_WITH_XUNIT=1
|
deps=
|
||||||
commands = nosetests --cover-erase --cover-package=metadataclient --with-xcoverage
|
commands=
|
||||||
|
|
||||||
[testenv:jenkinsvenv]
|
[testenv:docs]
|
||||||
deps = file://{toxinidir}/.cache.bundle
|
commands = ls
|
||||||
setenv = NOSE_WITH_XUNIT=1
|
|
||||||
commands = {posargs}
|
|
||||||
|
|
||||||
[testenv:pyflakes]
|
[testenv:pyflakes]
|
||||||
deps = flake8
|
deps = flake8
|
||||||
commands = flake8
|
#commands = flake8
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
# H301 one import per line
|
# H301 one import per line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user