Commit Graph

60 Commits

Author SHA1 Message Date
Zuul 4787e17b74 Merge "Support volume and zone resource types" 2022-10-12 09:21:16 +00:00
Andy Botting af9c0919ee Support Dynamic UI version 2.4
This version was included in the Ocata release

Change-Id: I9a382626bbb710d4b059a4dd99314ae876f7c979
2022-10-12 04:59:47 +00:00
Andy Botting 3c1fcdc012 Support volume and zone resource types
Change-Id: Ibc5c1463241e5aa30e18c91c18355f82ae00982b
2022-10-12 04:54:40 +00:00
Ghanshyam Mann bf91491fcc Drop lower-constraints.txt and its testing
As discussed in TC PTG[1] and TC resolution[2], we are
dropping the lower-constraints.txt file and its testing.
We will keep lower bounds in the requirements.txt file but
with a note that these are not tested lower bounds and we
try our best to keep them updated.

[1] https://etherpad.opendev.org/p/tc-zed-ptg#L326
[2] https://governance.openstack.org/tc/resolutions/20220414-drop-lower-constraints.html#proposal

Co-authored-by: zhurong <aaronzhu1121@gmail.com>

Change-Id: Ieb54d8c5381d1409986df8fd9db2a5d223e10537
2022-06-01 09:02:31 +00:00
zhurong 27f82cb429 Fix py38 ut
Change-Id: Ic02f32ec9d886a07d633c4512d0e55d996f76177
Closes-Bug: #1885431
2020-08-03 09:27:44 +00:00
Sean McGinnis 9e3c61b684
Use unittest.mock instead of third party mock
Now that we no longer support py27, we can use the standard library
unittest.mock module instead of the third party mock lib.

Change-Id: Iee2ca363966243826134c1b5f5c9762d4b53662f
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-18 15:56:28 -05:00
zhurong a83a360d46 Remove six usage
Change-Id: If2317db47c323b537bc5c4bb8a0f11173418cd67
2020-04-17 01:43:29 +00:00
Andreas Jaeger 6fc8c9f785 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 2.0 which
supports Python 3.

Fix problems found.

Change-Id: I4cebf81b32bdf285f0d412255984c176140329be
2020-03-28 12:30:53 +01:00
OpenStack Proposal Bot e4139d770c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I75923377285a23be0ae908cd5e4fce663ea10d4f
2018-03-01 06:41:42 +00:00
OpenStack Proposal Bot fbbf5e361c Imported Translations from Zanata
For more information about this automatic import see:
https://docs.openstack.org/i18n/latest/reviewing-translation-import.html

Change-Id: I5814d1a84cce9e82c85394f0afcf90ce9bce9fa6
2017-10-10 11:35:21 +00:00
Xianghui Zeng 05039c5dbd Remove log translations
Log messages are no longer being translated. This removes all use of
the _LE, _LI, and _LW translation markers to simplify logging and to
avoid confusion with new contributions.

See:
http://lists.openstack.org/pipermail/openstack-i18n/2016-November/002574.html
http://lists.openstack.org/pipermail/openstack-dev/2017-March/113365.html

Change-Id: I5bcba7795894c5f4893c02d9cddb78533011ebd9
2017-03-22 21:33:20 +08:00
Jenkins 47f7379e5e Merge "Correct the package name" 2017-01-30 22:39:56 +00:00
zhurong 818bf1a548 Add show version for murano-pkg-check
Now murano-pkg-check can not show the version,
This patch add this.

Change-Id: I4a44c0edda4c6def2584c10bebd20b7da104408b
2016-12-29 16:15:44 +08:00
zhurong 046c7e64bf Correct the package name
Now the murano-pkg-check gives the error:
Exception: Versioning for this project requires either an sdist tarball,
or access to an upstream git repository. Are you sure that git is installed?
This patch correct the package name when get the package version.

Change-Id: I33500b3527e21a513f9130f55f0b54ba0e047d5f
Closes-Bug: #1653060
2016-12-29 16:04:43 +08:00
gecong1973 b59b33a5b6 Replace six.iteritems() with .items()
1.As mentioned in [1], we should avoid using
six.iteritems to achieve iterators. We can use
dict.items instead, as it will return iterators
in PY3 as well. And dict.items/keys will more readable.
2.In py2, the performance about list should be negligible,
see the link [2].
[1] https://wiki.openstack.org/wiki/Python3
[2] http://lists.openstack.org/pipermail/openstack-dev/2015-June/066391.html

Change-Id: I6368133635a1f56bc923e633be683bcdda36eeb3
2016-12-12 14:12:23 +08:00
Cao Xuan Hoang db648ad781 Using assertIsNone() instead of assertEqual(None, ...)
Following OpenStack Style Guidelines[1]:
[H203] Unit test assertions tend to give better messages for more
specific assertions. As a result, assertIsNone(...) is preferred
over assertEqual(None, ...) and assertIs(None, ...)

[1] http://docs.openstack.org/developer/hacking/#unit-tests-and-assertraises

Change-Id: Ie8136f1be4a57272e64b0b360ee608aa270901f7
2016-11-15 16:52:19 +07:00
Jenkins 27b384b052 Merge "Improve class and method regexps" 2016-10-05 01:56:14 +00:00
sslypushenko 4eb01735f6 Improve class and method regexps
This commit improves regexps that check class and method names:
'.' (single dot) is no longer considered a valid method name.
Class names can no longer end with dot or include two dots in a row.
CamelCase detection is also improved to allow short uppercase names
('IP' or 'CDN')  and required first letter to be
uppercase (i.e. 'aBCD' is no longer legal)

Added positive and negative tests for these cases

Co-Authored-By: Kirill Zaitsev <k.zaitsev@me.com>
Change-Id: I9cefd115f552cc7067d643c98f4b4a4ab4e11735
2016-10-05 00:46:48 +03:00
Jenkins 73bc5f1e00 Merge "Catch block validation" 2016-10-03 20:53:39 +00:00
Jenkins d66d5b04ab Merge "Change Error to Warning for missing name of namespace" 2016-10-03 12:53:02 +00:00
sslypushenko 5d2576410c Catch block validation
Change-Id: Ia1fe0c8648e4ef904e227e91b3374f603111c5e7
2016-09-30 18:58:59 +03:00
Jenkins 2502a9f8d1 Merge "Allow methods to be empty and error when not dict" 2016-09-30 15:45:04 +00:00
Krzysztof Szukiełojć 1ac54a9a25 Making Default optional in Match strcuture
Change-Id: Ia2e7315de64101589491ef762504662a691219ad
2016-09-30 15:22:26 +00:00
Krzysztof Szukiełojć b12e6c9ae1 Allow methods to be empty and error when not dict
Change-Id: Ic2e37de78263f46054e0e95272afd6d1a77c9ff1
2016-09-30 15:22:21 +00:00
sslypushenko 3949928ca4 Change Error to Warning for missing name of namespace
Change-Id: I545d8a35e0177370afe98444d078604de3d51ef7
2016-09-30 15:21:56 +00:00
Krzysztof Szukiełojć 80a6886e81 Improving tests for metadata in Murano Classes
Change-Id: I3081a5374f5ae0c7db9a1e149b8a4e0892db6087
2016-09-30 12:27:08 +02:00
Jenkins eb9ec17151 Merge "Fix bug with loading buffer in ZipLoader in py3" 2016-09-30 05:05:30 +00:00
Andreas Jaeger 8d0898e57e Fix i18n set up
Really use MODULENAME as documented in
http://docs.openstack.org/infra/manual/creators.html#python-projects.

Otherwise the infra scripts will not work properly.

Change-Id: If21a76d2aa64312e59127bfd0790ef3301737d6b
2016-09-29 19:04:46 +02:00
sslypushenko 02544c5a61 Fix bug with loading buffer in ZipLoader in py3
Change-Id: I3a33ac60086bc2345742c18cb26940aa2ba7039b
2016-09-29 18:23:51 +03:00
sslypushenko 5e6ae600d7 Introduce option only_errors
* Validation can be runned only for errors. All warnigs will be ommited
* Minor issue in setup.cfg fixed. Now 'pip install -e .' works fine

Change-Id: I57d3f0713ef36535410ec4e50d3bb9286ea2741f
2016-09-21 06:44:10 -04:00
sslypushenko 9dcc3296ba Add possibility to load package from open zip file
Currently ZipLoader can take only path to zip file with package,
but murano-python client sometimes use path a container for file
content. This behavior should be supported by validator too.

* Increased coverage for ZipLoader
* Fixed minor bug with file list

Change-Id: Ied8b332b7890134e176169c56edf6ba8a5fa1645
2016-09-20 17:30:52 +03:00
Nguyen Hung Phuong c0dbd9fc2e Clean imports in code
In some part in the code we import objects. In the Openstack style
guidelines they recommend to import only modules.

http://docs.openstack.org/developer/hacking/#imports

Change-Id: I019e56040f41a8a55fb6ba179e0f13ffcf053e3b
2016-09-16 10:51:36 +07:00
Nguyen Hung Phuong c60d2317f1 TrivialFix: Remove logging import unused
This patch removes logging import unused in
 muranopkgcheck/validators/base.py

Change-Id: Ib5c53c38d8c3885818c7120453d9ec394f378fdc
2016-09-16 10:25:50 +07:00
sslypushenko fc20354fe0 Added functional test base
Functional cases can be described in yaml files in test/functional/cases folder
Each case will be converted into test. Examples of cases included

Change-Id: I60fc763c52ed4c25dfa7164c36c915497a430cfb
2016-09-13 16:37:16 +03:00
sslypushenko 628b30fc2c Bunch of bugfixes
Tool was run against murano-apps catalog, all found bugs was fixed

Change-Id: I7b31d6d3adff749126cbafdfbc2a45aa6d16c24a
2016-09-13 15:02:38 +03:00
sslypushenko ff9d851d7b Added errors registration
Change-Id: Ie409676f0bb556303399a60d20f3308c7c7e9075
2016-09-12 11:59:02 +03:00
sslypushenko e95f43bc6e Add i18n support
Change-Id: I46f82ae4c9803c866dfb594064df15e2b1a5c2ad
2016-09-07 18:13:18 +03:00
sslypushenko 2f8fc0d65f Improve logging system
* --debug option added
* Logging for exceptions in checkers extended
* Some test coverage improvements
* Added support for external log facility

Change-Id: I856e19a9f22bb1145377ccd5d49e8fc4b9ecf733
2016-09-07 18:05:19 +03:00
Krzysztof Szukiełojć 644e88380c Improving tests coverage
Change-Id: If0fea37f96d66480d03b2f406458f10ce3b7e2ad
2016-09-06 13:58:36 +03:00
Jenkins 39b396be63 Merge "Report yaml parsing errors instead of ignoring" 2016-09-06 10:55:34 +00:00
Jenkins 98dda6c90b Merge "Bunch of fixes for code_structure, base, manifest:" 2016-09-06 10:51:56 +00:00
Jenkins ede2237cf9 Merge "Allow method name to start with "."" 2016-09-06 10:51:50 +00:00
Jenkins 06d929f7e2 Merge "Accept null description in manifest" 2016-09-06 10:47:55 +00:00
Jenkins bb9299602b Merge "Fix error report in version" 2016-09-06 10:47:50 +00:00
Krzysztof Szukiełojć 5dd21fec6e Report yaml parsing errors instead of ignoring
Change-Id: Ieff494728fd79067467c1c35c3d2173a6fd74982
2016-09-02 19:44:02 +03:00
Jenkins 39142bb6fc Merge "Improve package version validation" 2016-08-31 15:13:24 +00:00
Jenkins e47bfeec93 Merge "Improving Manifest require check" 2016-08-31 12:54:19 +00:00
Krzysztof Szukiełojć 3b4dfa537b Improve package version validation
Change-Id: Ib9f7ea83ddd5a042010ea8e35f4426939745e17e
2016-08-29 20:11:00 +02:00
Krzysztof Szukiełojć a220ba44d6 Allow method name to start with "."
Change-Id: If0267463bb130bba311dc6b2e625666c1c0e158f
2016-08-29 14:01:36 +00:00
Krzysztof Szukiełojć 6e47825833 Fix error report in version
Change-Id: Id446953af0ef6a9f639aec60f1537e5e82c331fe
2016-08-29 15:19:30 +02:00