Commit Graph

107 Commits

Author SHA1 Message Date
Ghanshyam Mann 1c87ebf9a8 [goal] Deprecate the JSON formatted policy file
As per the community goal of migrating the policy file
the format from JSON to YAML[1], we need to do two things:

1. Change the default value of '[oslo_policy] policy_file''
config option from 'policy.json' to 'policy.yaml' with
upgrade checks.

2. Deprecate the JSON formatted policy file on the project side
via warning in doc and releasenotes.

Also replace policy.json to policy.yaml ref from doc and tests.

CONF object needs to be initialized before policy enforcer(). That
need to remove cfg.CONF.unregister_opts from TestAuthUtils cleanup
as this is taken care by cfg.clear() with proper workflow otherwise
it end up with error
"oslo_config.cfg.ArgsAlreadyParsedError: arguments
already parsed: reset before unregistering options"

- https://b132754ee7062a9ab187-9add4719a9922a9385555a8552fc2366.ssl.cf5.rackcdn.com/768520/5/check/openstack-tox-py38/7964354/testr_results.html

[1]https://governance.openstack.org/tc/goals/selected/wallaby/migrate-policy-format-from-json-to-yaml.html

Change-Id: I1b6c6485bc651fd0b87244a68204036dd4aa37f4
2021-03-07 17:50:48 -06:00
Erik Olof Gunnar Andersson 7dd31ad63b Fix lower-constraints
The lower-constraints job is currently broken since the new
release of pip. This patch resolves all of the issues uncovered
by the new version of pip.

We also add new constraints to fix slow installations
due to pip trying to resolve the ideal candidates.

Change-Id: Id2364b046080c50e122f89d0a7b2d914b1bedbfd
2021-01-19 00:00:39 -08:00
Sharma-Ritika 91a58c5763 Murano testing to Ubuntu Focal
As per victoria cycle testing runtime and community goal,
we need to migrate upstream CI/CD to Ubuntu Focal(20.04).

Bump lower constraints to make testing work for Focal.

Change-Id: I1fc6b0c67d767bc698e12f0e79fadd19bb7d0a8d
Story: #2007865
Task: #402198
2020-09-19 01:46:40 +00:00
Ghanshyam Mann 613575b3c4 Fix hacking min version to 3.0.1
flake8 new release 3.8.0 added new checks and gate pep8
job start failing. hacking 3.0.1 fix the pinning of flake8 to
avoid bringing in a new version with new checks.

Though it is fixed in latest hacking but 2.0 and 3.0 has cap for
flake8 as <4.0.0 which mean flake8 new version 3.9.0 can also
break the pep8 job if new check are added.

To avoid similar gate break in future, we need to bump the hacking min
version.

- http://lists.openstack.org/pipermail/openstack-discuss/2020-May/014828.html

Change-Id: I14ae5a9f9fc26678099ced8279efb9ede1653b68
2020-05-12 19:30:29 -05:00
Sean McGinnis 4866d54831 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: Id266a937b37507a1cef05ac34e33a80265581ad1
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
2020-04-19 23:23:41 -07:00
Andreas Jaeger d1dae85ac7 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found.

Update local hacking checks for new flake8.

Change-Id: Ibe28b6b6bf3927e80816f0c5f1cb972fb6e2374b
2020-03-30 11:59:26 +02:00
Sean McGinnis 25ebd01de3
Drop unittest2 usage
unittest2 was needed for Python versions <= 2.6, so it has not been
needed for quite some time now. See unittest2 note on:

https://docs.python.org/2.7/library/unittest.html

This drops unittest2 in favor of the standard unittest package.

Change-Id: Idb4cb10509f49afe86bfdb688e35a7822dfe38bd
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-01-12 02:40:41 -06:00
zhurong 4ee97f7b7a Bump to hacking 1.1.0
Change-Id: I4019f41d9ddd843872855e6e80c0667ee2df758a
2019-07-04 11:51:47 +00:00
Hervé Beraud 9df0e52f6a Uncap Bandit
This was capped due to a problem with how it processed exclusions.
Once that problem is fixed we want to uncap it and exlude only the
specific versions that are broken.

Change-Id: I4f367de91842f9062a22de15273eac5010bee954
2019-05-14 14:13:30 +02:00
Hervé Beraud 6ec7a4ce45 Cap Bandit below 1.6.0 and update Sphinx and jsonschema requirement
Bandit 1.6.0 accidentally changed how the exclusion list option is
handled and breaks our use of it. Cap to the previous version until
Bandit has fixed the problem.

Sphinx 2.0 no longer works on python 2.7, so we need to start capping
it there as well.

Remove the jsonschema >3.0.0 version.

Co-Authored-By: zhurong <aaronzhu1121@gmail.com>
Change-Id: I34a53bf6b9389af8530f5806841814cc035eae99
2019-05-14 18:58:00 +08:00
zhurong da016e903f Bump psycopg lower-constraint to 2.7
Earlier versions don't work with postgresql 10, which is now showing
up in distros.

Change-Id: I823a8575f31c060e4c0f7614e76a5e751fb9ccf4
2019-03-25 17:07:53 +08:00
Zuul 3fc25ae547 Merge "Switch to using stestr" 2018-07-17 06:07:08 +00:00
Nguyen Van Trung 640bdac0ac Switch to using stestr
According to Openstack summit session [1] stestr is maintained
project to which all Openstack projects should migrate.
Let's switch it then.

[1] https://etherpad.openstack.org/p/YVR-python-pti

Change-Id: Ib27496313447cac962e4849223ab9eb96a9d873f
2018-07-09 15:15:17 +07:00
Nguyen Van Trung 5fbbac4e9a Follow the new PTI for document build
For compliance with the Project Testing Interface as described in:
https://governance.openstack.org/tc/reference/project-testing-interface.html

For more details information, please refer to:
http://lists.openstack.org/pipermail/openstack-dev/2017-December/125710.html

Change-Id: If77e673564f65879f6f56000444ee7601b44e5bc
2018-07-09 15:02:05 +07:00
OpenStack Proposal Bot 826dbf9e04 Updated from global requirements
Change-Id: If5b82fa6181bcdeef2b2476a8d6368172cddbefd
2018-03-15 07:14:15 +00:00
OpenStack Proposal Bot 2d6a9f2dd2 Updated from global requirements
Change-Id: I6bc615c81ebbf14a6eea566909bb78925026e2c1
2018-03-14 05:39:13 +00:00
OpenStack Proposal Bot adbef95574 Updated from global requirements
Change-Id: I6647559efc191865e53cbc578966b76adce176e0
2018-03-10 13:23:07 +00:00
OpenStack Proposal Bot d7a54d69f9 Updated from global requirements
Change-Id: Icf49347ffcfd663ca9f9ef615042cb8e3ee254b3
2018-01-24 01:03:56 +00:00
OpenStack Proposal Bot 539313cd1d Updated from global requirements
Change-Id: I29f9ab19b3237b0d0cf375f882030dc532bb06dd
2018-01-18 03:04:48 +00:00
OpenStack Proposal Bot de70aece6d Updated from global requirements
Change-Id: Ibe3ae944c31d9b2424d6c192a54a888397b759a3
2018-01-16 12:34:34 +00:00
OpenStack Proposal Bot 324a278c7c Updated from global requirements
Change-Id: Ia8f2b6897f2fa3df2e5ed55592e862b48777090c
2017-09-20 03:36:25 +00:00
OpenStack Proposal Bot 3b03ccb7ed Updated from global requirements
Change-Id: Icfdb61ac16e79af1efb9cf094707afcc53535dbf
2017-09-13 12:53:37 +00:00
OpenStack Proposal Bot bea67c1eb1 Updated from global requirements
Change-Id: Ie52a1604c8ddbf1810abeff9091664fea898e64b
2017-08-18 11:33:06 +00:00
OpenStack Proposal Bot 5b97d64363 Updated from global requirements
Change-Id: Iee5450641bc6a85c71a4f0b29954d0ffff136896
2017-08-18 04:43:44 +00:00
OpenStack Proposal Bot 84e50d1442 Updated from global requirements
Change-Id: Icd8b96b6650da33ad28118769a9b38faaf8c87d7
2017-07-28 02:40:15 +00:00
Andreas Jaeger d26e77908a Use openstackdocstheme everywhere
Update to use current 1.11 version of openstackdocstheme for all
documents.

Change-Id: I9e615e48267f61769a73268624e1c6b86c100da6
2017-06-30 11:09:07 +00:00
OpenStack Proposal Bot a790aac162 Updated from global requirements
Change-Id: I5ff6817f9710234e980ea71f157790ea83e354ce
2017-06-10 21:40:06 +00:00
OpenStack Proposal Bot 6949a05e12 Updated from global requirements
Change-Id: I7205b0b49d10879ea492688053fb96e425a24924
2017-06-08 06:02:31 +00:00
OpenStack Proposal Bot 4873eaf6af Updated from global requirements
Change-Id: Id5f003cf314beb357b6a8fb542843f5784984d6b
2017-06-05 17:23:10 +00:00
OpenStack Proposal Bot 856a128bcf Updated from global requirements
Change-Id: I9b1bad74c113ea8a75ae7fd1c3b82d8dd86cd526
2017-05-23 12:21:48 +00:00
OpenStack Proposal Bot c5ae278fef Updated from global requirements
Change-Id: Ia56333c297bdbc2837f5ace3bf3ba5b088f6f5d4
2017-05-17 13:42:00 +00:00
Samuel Pilla 3a4366e9b3 Adding bandit target to ``tox.ini``
This patch set adds a basic bandit check for murano.  It can be invoked by
running the tox environment for bandit: ``$ tox -ebandit``.  This is
intended as a starting point for using bandit with murano, and it should
be revisited to improve the testing.

* added bandit target to tox.ini
* added requirement to test-requirements.txt

Change-Id: I2947183331204e8dad5de95186e199458062c3e6
2017-04-09 02:07:08 -05:00
OpenStack Proposal Bot 45fcfe9203 Updated from global requirements
Change-Id: I570588822ae59a2e639a562d45daa4ed91c688c8
2017-03-06 01:11:55 +00:00
Jenkins 2daf7cee2f Merge "Initial commit for murano api-ref" 2017-03-03 09:43:26 +00:00
Felipe Monteiro 10752e6bba Renames wait_for_volume_status in tempest tests for consistency.
A recent change in Tempest [0] is breaking 2 murano tempest tests;
wait_for_volume_status was changed to wait_for_volume_resource_status,
causing an AttributeError to be thrown [1].

Additionally, a recent change in Cinder [2] removed multiattach
for all drivers, causing one of the murano tempest scenario tests
involving deploying an environment using a multiattach-enabled volume
to fail.

This patch renames the function wait_for_volume_status to be compatible
with the recent Tempest change. It also uses staticmethod delete
functions provided by the Tempest API for delete_volume and
delete_snapshot. It also removes the multiattach property in the
relevant tempest test.

[0] https://review.openstack.org/#/c/394588/29/tempest/common/waiters.py
[1] http://logs.openstack.org/01/435101/2/check/gate-tempest-dsvm-murano-api-ubuntu-xenial/911be71/console.html
[2] https://review.openstack.org/#/c/428365/

Related-Bug: #1668848
Co-Authored-By: ricolin <rico.lin@easystack.cn>
Change-Id: I15ae3f9c931ba606883a22a5af719f79685093a7
2017-03-03 06:25:54 +03:00
OpenStack Proposal Bot 9a97b58039 Updated from global requirements
Change-Id: Ia5e9c7614cff4766ce4794dc92c197638bf8bf94
2017-02-15 14:06:33 +00:00
zhurong 12a7f8e455 Initial commit for murano api-ref
This is the first commit for add murano api-ref.

Partially-Implements: blueprint murano-api-ref
Change-Id: I943e01f5ab8721e0452d900e5e24540cbdeb9fa2
2017-01-03 15:30:35 +08:00
OpenStack Proposal Bot c8731d3549 Updated from global requirements
Change-Id: Ie3349053d321e19cfa5f2205e95a434c703f86c8
2017-01-01 12:10:19 +00:00
OpenStack Proposal Bot 3b032f94c6 Updated from global requirements
Change-Id: I1ad9c65ffcc9aa40821d9f962942f9d456fd281b
2016-12-02 17:11:52 +00:00
OpenStack Proposal Bot d6bb6d24eb Updated from global requirements
Change-Id: I8bb59d266e4a26beaea255ccebc3691c3b252296
2016-11-15 19:51:47 +00:00
Aleksandr Kholkin 663384ef32 Add murano-pkg-check to the test-requirements.txt
Change-Id: I4fa6621f3a35e13c7f5255103ba7064d68e43cff
2016-11-15 15:07:20 +03:00
OpenStack Proposal Bot 7e7b25c667 Updated from global requirements
Change-Id: Icf8c7627e9f287812481bf318a3c200f366cdcd4
2016-11-06 02:00:40 +00:00
OpenStack Proposal Bot 326d020939 Updated from global requirements
Change-Id: I62050b03b94cb92f5a429658e65f53df7cb4f61f
2016-10-22 01:21:01 +00:00
emashkin 301482c729 [Docs] Add skeleton for My first Murano app guide
Add skeleton for "My first Murano app" guide for third parties
developers. It is needed for voting job creation in project-config that
builds this guide but does not publish it.

The main purpose of this tutorial is to facilitate the learning process
for Murano App newcome developers and show how it's easy to create a
Murano App for their own cloud applications from scratch. This guide
outlines the creation of Plone Murano App step by step:
https://review.openstack.org/#/c/346492/

Change-Id: Ib184891f7c4c94b0bb2ded92648302eaecad6b5b
2016-10-06 14:14:35 +00:00
OpenStack Proposal Bot aeee7304df Updated from global requirements
Change-Id: Id63287a20cf89027e94a402ff3c89f36b7734da3
2016-10-03 17:29:50 +00:00
OpenStack Proposal Bot 918f19a29e Updated from global requirements
Change-Id: I26bc513ca9c32a7171f81e74fc5f41da1296c216
2016-09-29 05:08:00 +00:00
OpenStack Proposal Bot be4e842be5 Updated from global requirements
Change-Id: Ifc6dd8871c6618a7a0665b0c9fc1c133407c51be
2016-09-27 10:01:28 +00:00
OpenStack Proposal Bot b1b57a2b7b Updated from global requirements
Change-Id: Ief8cc3a00336074a279c17990c342e00c0b82dc9
2016-08-31 18:25:59 +00:00
OpenStack Proposal Bot 2423a2baca Updated from global requirements
Change-Id: If755aaa2d6ca190a665e10251999c4bc7f17c2cf
2016-06-24 03:12:51 +00:00
OpenStack Proposal Bot 262a89cb87 Updated from global requirements
Change-Id: Ia46c6ea9c9ec108d6cda24e01420ba411248d8b3
2016-06-22 19:58:13 +00:00