33 Commits

Author SHA1 Message Date
zhangyanxian
3e8315b76f Fix typos in cover.sh
TrivialFix

Change-Id: I11ff03b18670342c0f6a72f85e1f5e15e9e10490
2016-11-16 13:09:22 +00:00
Kirill Zaitsev
a7c7adecaf Improve cover job output
Change-Id: I88aa89063e4e63731b0ea0e70349f915c1b7ce51
2016-07-01 17:37:45 +03:00
OpenStack Proposal Bot
bc8943c8cc Modified docstrings to comply with pep8 H405 style check
Closes-Bug: #1563270

Change-Id: I987d846f1a86ecee1fcfb0f99877563a10481478
2016-05-10 20:18:23 +00:00
Jenkins
fd986f9a25 Merge "Enable pep8 to check files in directory tools" 2016-02-19 12:00:29 +00:00
Bo Wang
e730821c67 Enable pep8 to check files in directory tools
The directory tools is exculed for runing pep8 test now.
Enable pep8 to check files in toos/ since there will be more python files.

Change-Id: I49b8b90ab8db82033c5a45ee2bcbfbfb7fb77339
2016-02-19 10:30:11 +08:00
Bo Wang
8b5fcdb21f Remove incorrectly used "# flake8: noqa"
"# flake8: noqa" option disables all checks for the whole file.
To disable one line we should use "# noqa".
Remove unused "# flake8: noqa" and fix hidden hacking errors.

Change-Id: I8b26cb0e7e5ad4a838099c7aa3ced31b96f28ca2
Closes-Bug: #1540254
2016-02-18 19:37:56 +08:00
Nikolai Starodubtsev
34d2ecc830 Remove cap for pip version
Since pip 8.0.2 is released the cap for pip vestion is no longer needed

Change-Id: Ib404911746147e8fc1d71f0741a6bf06d56829e5
2016-01-26 17:25:13 +03:00
Kirill Zaitsev
26455ee925 Cap pip to <8 for dsvm job
Also update hooks to use murano install_venv and update script to fix
all the typos

Co-Authored-By: Nikolay Starodubtsev <starodubcevna@gmail.com>
Co-Authored-By: Victor Ryzhenkin <vryzhenkin@mirantis.com>
Closes-Bug: #1536614
Change-Id: I17de28570d543d30e80d41113425e32b0f4c26b2
2016-01-21 16:24:06 +03:00
Bo Wang
2b5697f9be Fix python 2 and 3 compatibility issue with six
httplib and ConfigParser are available in python2 but
not in python3.
ref:http://www.diveintopython3.net/porting-code-to-python-3-with-2to3.html

Targets blueprint: murano-python-3-support
Change-Id: I5164c9208f1626ea60cde47ded6cd74fbff919fd
2016-01-19 00:07:54 +08:00
Filip Blaha
e360025024 Attempt to make pylint output more useful
Pylint job output now contains full snippet
of duplicate code.

Change-Id: I4908942d98b676a99b14c4c4ee51d3da8c808590
2015-08-11 15:42:54 +02:00
Kirill Zaitsev
62d6a27821 Make tools/cover.sh executable
Currently file lacks executable bit in its permission, so running tox -e
cover raises a Permission Denied error.
This patch adds executable bit for every group

Change-Id: I99dab1b0e2df9a9346e1017cc11c8c11f29a5865
Closes-Bug: #1476035
2015-07-19 22:28:10 +03:00
Jenkins
29f48e5854 Merge "Added script for unit tests coverage job" 2015-07-15 13:59:57 +00:00
Timur Nurlygayanov
c491ecd3ef Added script for unit tests coverage job
This script will allow to run non voiting coverage job which will detect
any changes in the code coverage for each commit on review.
It will help to automatically control the unit tests coverage for each commit
and core team can ask to add unit tests to some commit which will require it.

Change-Id: I318a6b0133333ef16494ed2def512720b15ce956
Closes-Bug: #1473364
2015-07-13 13:58:58 +03:00
Lin Yang
5e871147a1 Remove unnecessary pass-statement
Change-Id: Iabc087ea181fcc835b871ad3f4f4ebc19dd4b1ad
2015-07-13 12:13:13 +08:00
Lin Yang
cfe99f0775 Remove all vim modelines
Vim modelines should not be used in OpenStack project any longer [1].

[1] http://lists.openstack.org/pipermail/openstack-dev/2013-October/017353.html

Change-Id: I6183fc422245e3d87cb9e2da6f8d584787e2d423
2015-07-09 22:07:49 +08:00
Filip Blaha
5f39b65323 Attempt to make pylint output more useful
Fixed incorrectly reported location of duplicate code.
Some new code checks added:
W0612(unused-variable): Unused variable 'e'
W0613(unused-argument): Unused argument 'x'
C1001(old-style-class): Old-style class defined

Change-Id: I7e20d9347c672f1df6fc3c270fc966f0a570ef6a
2015-06-05 14:41:56 +02:00
Filip Blaha
a4788eeeab Adding lintstack to support pylint gate job.
* support scripts were copied from other projects like cinder, ...
* some modification were made to support some code checks
* at first we focus on code issues classified as 'refactor'
* job compare sets of code issues of current and previous commit
* if new issue emerged in current commit then -1
* use tox to launch locally 'tox -e pylint'
* next step is to create non-voting gate job
* job can be tested locally, example:
* 1) create method with more then 5 arguments
* 2) commit the change
* 3) run 'tox -e pylint'
* job should fail on 'Too many arguments'

Change-Id: Iccfb842de92e2284bedcfc7d9b1df5f456ba9d14
2015-04-23 15:52:57 +02:00
Dmitry Teselkin
7d2b0279f9 Use python from venv for subunit-trace
If subunit installed from packages then subunit-trace goes to
/usr/bin/ dir with hasbang string #!/usr/bin/python

In this case even if called from venv it use system python
interpreter, and will not have access to modules from venv.

Change-Id: I9b152055c5ce958001e59908564a3549960a7df9
2015-03-13 08:16:48 +00:00
Ruslan Kamaldinov
8fceb1cc56 Use pretty-tox for better test output
Change-Id: I08115ff0367ae857b523a8902e4da704e094d266
2015-01-21 19:07:09 +03:00
Dmytro Dovbii
76ffd35806 Use oslo.config generator in murano
Similarly with the way it was done in the murano-agent, added
the ability to use the oslo-config-generator for creating a sample
configuration file murano.conf.sample.

Now to create the file, you must run:
tox -egenconfig

Change-Id: I8b06336d75eccfd598ce9033333884f75f393a09
2014-11-12 17:09:35 +02:00
Stan Lagun
dfcd1188f8 keystoneclient.middleware -> keystonemiddleware
Switch from  keystoneclient.middleware.auth_token
to keystonemiddleware.auth_token

Change-Id: Ifd72477dcdbe5e4c5da55a413c4d0c4be625632e
2014-09-17 04:51:26 +04:00
Ekaterina Fedorova
865ed9bef9 Add openstack libs to config checker
Some parameters were ommitted in murano sample config file

This patch adds config params from openstack to config checker

Closes-Bug: #1356787
Change-Id: I8221bc3aa063ecb53e210adf7a2222c92da1c049
2014-08-14 16:35:10 +04:00
Steve McLellan
185dd9305a Add policy checks to API
Adds ability for deploy-time auth checks to allow/disallow
functionality, in line with other openstack projects.

Includes update of code in openstack/common, which is why the
patchset is so large. oslo-incubator changeset is May 27th
caed79d8239679cb74476bb0d9e5011b4fcc39da.

Implements blueprint policy-checks-in-api

Change-Id: I67a431dcc74f0a77ed48b7a489136d5008773cea
2014-06-11 13:37:41 -05:00
Ruslan Kamaldinov
86a4c4710d Rename muranoapi to murano
Partially-implements blueprint: rename-murano-api-to-murano

Change-Id: I2d7f52ef4073bce800cedc77f81f5d242c4d5d98
2014-05-27 15:14:44 +04:00
Ankur Rishi
69396e7533 Fix missing function error in install_venv
The previous commit, 3362ee1337d47ab8930407c58311a811d471a7a4,
a sync with Openstack Common, removed all definitions of the
post_process() function from the Distro class and all of its
child classes in install_venv_common.py.

This fix simply removes the call to the function in
install_venv.py

The issue is similar to #1263940 in tempest:
https://bugs.launchpad.net/tempest/+bug/1263940

Change-Id: Iedd0c29789c4b2ab9be880f9bd320b39a9bdd277
Closes-Bug: #1307705
2014-04-16 19:59:54 +00:00
Alexander Tivelkov
3362ee1337 Synchronized Openstack Common
Change-Id: Id4aedc35c6cd7597fa223360e1f64ecea0ad6517
2014-03-12 14:38:21 +04:00
Serg Melikyan
072b593de6 Migrated to Murano Common
Replaced old RabbitMQ code over amqplib to Murano Common MqClient

Change-Id: Icf721f9304f65df02231bde77c8472fd6e20c90d
2013-07-25 15:59:45 +04:00
Ekaterina Fedorova
18c7a90b10 Fix jsonschema version in pip-requires
Change-Id: I4dea1e4ac7ec81bf4161088fac16c143453aff49
2013-07-17 12:43:53 +04:00
Serg Melikyan
65e51b80da Updated to latest OpenStack Common
Change-Id: I96c005f5109c056fd590ee8c8b7b4f790e382187
2013-06-27 17:01:03 +04:00
Serg Melikyan
b8bc196805 Cherry-pick all changes from release-0.1 branch
Change-Id: Ibd8bfcf199b07700226629fd5c0679669ea29578
2013-06-26 12:49:57 +04:00
Serg Melikyan
5b6c49e8b1 Add .gitreview file.
Change-Id: I2e67ecf5a0b90c1d222bb5e20bda5d24f00c84b7
2013-05-16 19:32:14 +04:00
Stan Lagun
f145391f03 KEERO-315 - Fix all occurrences of old names (keero, glazier) in REST API 2013-04-25 10:13:42 +04:00
Serg Melikyan
33a0a171a3 Removed all projects except Glazier Api 2013-04-09 13:25:02 +04:00