112 Commits

Author SHA1 Message Date
Ghanshyam Mann
9c5f5c9083 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: I6a80bd28d4bce6140ba5c3fabe7199301ac026cb
2020-05-27 01:57:23 +00:00
Sean McGinnis
74895a5cbe 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: I44ac9a021a0bc3249b86f252b53cee3c8059f185
Signed-off-by: Sean McGinnis <sean.mcginnis@gmail.com>
2020-04-26 19:36:09 +12:00
Andreas Jaeger
f33c213051 Update hacking for Python3
The repo is Python 3 now, so update hacking to version 3.0 which
supports Python 3.

Fix problems found by updated hacking version.

Update local hacking checks for new flake8.

Remove hacking and friends from lower-constraints, they are not
needed in installations.

Change-Id: I6e6638c07b5d24c90e9deae277e98149f383eb3d
2020-04-03 21:51:00 +02:00
Andreas Jaeger
cc1ccae629 Cleanup docs building
Remove build_sphinx from setup.cfg, it's not used anymore since this
repo uses sphinx-build directly.

Require newer openstackdocstheme version and remove settings in conf.py
that are now default.

Remove doc/source/install/conf.py, it is not used anymore.

Change-Id: Id89c664384c3ad443d701f5d4135a9f3f9f744d7
2020-02-22 19:11:19 +01:00
Lingxian Kong
2e052b0262 Enable service tenant deployment model by default in DevStack
The service tenant deployment model means Trove creates most of the
resources(vm, volume, security group, etc.) relating to a database
instance in the Trove service tenant rather than the end user.

With this deployment model, most of the related resources behind the
scenes are invisible to the user, which is a more secure deployment
model for either private or public cloud provider.

DevStack should follow this model as it will be recommended for Trove
deployment in production.

Changes included in this patch that are necessary in order to make that
happen:

- Add 'admin' role to Trove service user(username: trove, project:
  service) in DevStack.
- Create Trove management network resources for Trove service user in
  DevStack.
- Enable Trove remote client configuration by default in DevStack.
- Mainly use alt_demo user in alt_demo project for integration tests,
  config trove user as the admin role user in integration tests.
- Disable the module related tests(module_groups) for now because of no
  use cases but need effort to fix all the failed tests in the service
  tenant model.

Story: #2005445
Task: #30489
Change-Id: I2efb69d3d50344914a875b773f62a227dba2ccaf
2019-06-08 00:46:21 +12:00
Minmin Ren
85d2b17c49 Fix tox debug mode
- add oslotest in test-requirement.txt for
fixing tox debug mode failed.
- Update jsonschema/sphinx following the global-requirments.txt
to pass zuul requirements-check job.
(See: https://review.openstack.org/649789
https://review.opendev.org/#/c/657890/)

Change-Id: I5f2cabc35415cac3c4e81afa9084cbd8677ccd22
Story: #2005615
Task: #30862
2019-05-13 10:27:00 +00:00
Doug Hellmann
7e4e25f12f update pylint to 1.9.2
The older version of pylint being used does not work correctly under
python 3. In order to be able to update the pylint job to run under
python 3, we need to update the tool.

This patch updates to the latest version at this time. It also updates
and pins astroid, which was previously capped. Using a pin instead of
a cap should let us avoid issues with new releases while being
specific about which version to actually use.

Disable not-callable because that appears to be a new rule that is
confused by the use of properties to access things that are set to
callables.

Co-Authored-By: Fan Zhang <zh.f@outlook.com>
Co-Authored-By: Marcin Piwowarczyk <m.piwowarczy@samsung.com>
Change-Id: I65705804b222dcd30a653fe10be3d823fa6143ff
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2018-09-17 16:14:54 +02:00
Zhao Chao
df7362702a Cleanup testrepository and os-testr requirements
We have migrated to stestr for a while, however the related requirements
is not updated, this patch does the cleanup, also updates requirements
for stestr.

Change-Id: I9c8cf2f90ced2261293f91faefc3099740540fe7
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-04-18 10:08:09 +08:00
Zhao Chao
b24828256c Mox removal for instances_resize API tests
This is the last file using mox3 for testing, so mox3 is also removed
from test-requirements.txt.

Change-Id: Ie70adc620df04bf4e0ca43ff4e3060b449d2e377
Signed-off-by: Zhao Chao <zhaochao1984@gmail.com>
2018-03-22 17:51:10 +08:00
OpenStack Proposal Bot
856824c510 Updated from global requirements
Change-Id: Ie5b55091c64b7672267cfb052bb3fe2243b95fba
2018-03-15 09:38:39 +00:00
OpenStack Proposal Bot
6db974071e Updated from global requirements
Change-Id: I79dbf110b618a3bbf82f751dfa4dda0972d087ee
2018-03-13 07:36:56 +00:00
OpenStack Proposal Bot
792929d2bc Updated from global requirements
Change-Id: I78782d3acb01c83b402a667905bfe7fbcbd10f4d
2018-03-10 13:59:01 +00:00
OpenStack Proposal Bot
8c42942216 Updated from global requirements
Change-Id: I875406e1a64dc9f2ed04e6bf3721daf803254f3f
2018-01-24 01:40:25 +00:00
OpenStack Proposal Bot
61256eb01d Updated from global requirements
Change-Id: Ib44af3571063b84b72f50e9f18a826f25d290183
2018-01-18 03:38:33 +00:00
Nguyen Van Trung
abb3460b9e Add doc8 to pep8 check for trove project
This patch adds a doc8 check of .rst files to the current pep8 check.
It includes fixes to the .rst files that didn't pass the check.

Change-Id: I866ee72cfdd6067ae219a751aa7c2a0c391886f7
2017-11-30 08:28:55 +07:00
OpenStack Proposal Bot
703f77681a Updated from global requirements
Change-Id: I8c7e2ae3d7e7d1e268f0dac430cd6ad51f66430a
2017-11-16 11:30:47 +00:00
Zuul
c4741f5128 Merge "Remove tempest from the test requirements" 2017-10-24 04:32:33 +00:00
Samuel Matzek
31b1065309 Remove tempest from the test requirements
Commit f860e06f74523ee7ef34190338de8aa207d1f45d
added tempest to the test requirements but this
should not be necessary as the OpenStack global
requirements already list tempest at 16.1.0.

Change-Id: I625fac7590166eb0658b3ba4cb1910a873cab36e
2017-10-23 06:46:49 -05:00
OpenStack Proposal Bot
6fbef1cc71 Updated from global requirements
Change-Id: If697cc5a442bcd2c3720be28024642a97b773bea
2017-10-23 11:23:29 +00:00
jeremy.zhang
f860e06f74 Replace deprecated alias 'os' with 'os_primary'
Tempest has deprecated the alias 'os' and will use the alias 'os_primary'
instead. The alias 'os' was deprecated in Pike and planned to be removed
in Queen.

Let's use the stable alias 'os_primary' for primary credential. This will
help Tempest to remove the deprecated alias 'os'.

Change-Id: I39c33acb6dc33d245c8452d1587c09b31178d728
2017-10-09 16:21:40 +08:00
Jenkins
c60262f6b8 Merge "Updated from global requirements" 2017-07-16 04:01:17 +00:00
Doug Hellmann
9d39a42e3e move from oslosphinx to openstackdocstheme
Change-Id: I3089bda6683322f21addd2999ab193de3c070fe3
Signed-off-by: Doug Hellmann <doug@doughellmann.com>
2017-07-14 09:10:07 -05:00
OpenStack Proposal Bot
92e2029310 Updated from global requirements
Change-Id: I39a3891e016f4d8c1ee955c9670b3b11bead8988
2017-07-14 13:09:41 +00:00
OpenStack Proposal Bot
fb870b306e Updated from global requirements
Change-Id: I6f1d1e967b7cb6993294f984c995051351a7fadd
2017-06-08 06:12:38 +00:00
OpenStack Proposal Bot
321b38219c Updated from global requirements
Change-Id: Id6c203a23f3992a978730146e4ab4d28e43c3452
2017-05-31 16:47:47 +00:00
OpenStack Proposal Bot
ea0f67041e Updated from global requirements
Change-Id: Ib95e50140f81e6630f45e98b62e9ac4fd87bd524
2017-04-07 06:18:39 +00:00
Jenkins
880f8cc519 Merge "[Fix gate]Update test requirement" 2017-03-06 22:00:19 +00:00
ricolin
7d3708edb6 [Fix gate]Update test requirement
Since pbr already landed and the old version of hacking seems not
work very well with pbr>=2, we should update it to match global
requirement.
Partial-Bug: #1668848

Change-Id: I3f5c59ba8df6bf806be9d634cde062dcc39abe93
2017-03-02 20:16:51 +08:00
OpenStack Proposal Bot
4a4ff5b544 Updated from global requirements
Change-Id: I6d5572bb49cd5f245af59f87ce40f8f9a858e85d
2017-03-02 11:57:16 +00:00
OpenStack Proposal Bot
cdb22e1191 Updated from global requirements
Change-Id: I705dd4d0774dd373da725b7451de521a35a574f6
2017-01-24 20:02:33 +00:00
Jenkins
36a54ed6d8 Merge "Fix Galera_common.grow/shrink to propogate exceptions" 2016-11-23 20:12:39 +00:00
Morgan Jones
fa778affc8 Fix Galera_common.grow/shrink to propogate exceptions
The grow and shrink operations in Galera_common were eating exceptions.
This change passes the exceptions back and adds unit tests to
ensure such.

Change-Id: I3202d6d4daa77a8a185a427b31b2187eab4d82e9
Closes-bug: 1634627
2016-11-21 12:14:45 -05:00
Amrith Kumar
0a9b1e45fc Enable hacking extensions framework
<long rant deleted>

This change enables the hacking extensions ability in trove. That
includes bumping the version of hacking that we use, and also adding
the enable-extensions like in the [flake8] section. I've enabled two
of the hacking extensions here.

There are some limitations to the hacking rules that I've enabled so
I'm also going to enter two bugs that others can fix (if they so
desire).

Change-Id: I6d8fc4bc03f948b84ad823e5248d78a4caa5c042
Related-Bug: 1642554
Related-Bug: 1642552
2016-11-17 14:43:36 -05:00
OpenStack Proposal Bot
41ef64a42f Updated from global requirements
Change-Id: I4edf7a379b5971609475f5f992ef8bd2ce33bde1
2016-11-02 22:02:50 +00:00
OpenStack Proposal Bot
d56418562f Updated from global requirements
Change-Id: I37a40532c3bb3b3a148b9a98438696eba06ed2c3
2016-10-27 12:24:23 +00:00
OpenStack Proposal Bot
ebbaab96a6 Updated from global requirements
Change-Id: I13c531615ed3e725739a8add827a1f484d69e3ca
2016-09-30 10:25:55 +00:00
OpenStack Proposal Bot
62951f104f Updated from global requirements
Change-Id: I42c81f6a6a75cac3b7f5344261d2e89e23717fc7
2016-09-28 17:02:33 +00:00
OpenStack Proposal Bot
129fac7d53 Updated from global requirements
Change-Id: I41df50d0a00a50434d762caed5333c4ea1d404b0
2016-09-15 20:27:33 +00:00
Amrith Kumar
a0bc0dcb7d initial chkin of pylint
this is a pylint wrapper for Trove's tox tests. This commit includes a
basic infrastructure for running pylint through tox.

It also fixes some very obvious import errors that are flagged by the
tool. One is to handle missing imports for _ and _LE.

There is one instance where an exception is being raised but
trove.common.exception isn't imported, and another where an exception
is being incorrectly thrown.

A short readme is also provided.

Change-Id: I0a38f5efde3cb491f1f6c27f6c6500ab29987968
Partial-Bug: #1621636
2016-09-14 13:56:24 -04:00
OpenStack Proposal Bot
1f176e0c06 Updated from global requirements
Change-Id: I4f875162b85380ce7328ae8d87e5dc8f16b1f6aa
2016-08-26 09:19:00 +00:00
Andreas Jaeger
59f522aefb Remove openstack-doc-tools
Since this repo does not publish DocBook XML content anymore, we can
remove openstack-doc-tools and the tox.ini targets for it.

Also, remove the config file doc-test.conf, it's not used anymore.

Depends-On: Ie90eb7fa6f1b1d7b99869083099201d2bfe10018
Change-Id: Ia92429f120fd18553e2785f63f6a12ad0fc9f12f
2016-08-23 16:56:37 +02:00
OpenStack Proposal Bot
4504d518b3 Updated from global requirements
Change-Id: I79e3886a2b81db8b25f5830e0200d6997da3c2d7
2016-08-19 19:54:24 +00:00
Amrith Kumar
3b0d1ea25d Adds the api-ref migrated RST + YAML files
With this email[0], you must migrate API reference docs into RST. The
conf.py and the tox environment are also cribbed from nova.

Still need to retain the install_command in tox.ini, otherwise the
api-ref job fails.

[0] http://lists.openstack.org/pipermail/openstack-dev/2016-May/093765.html

Co-Authored-By: Anne Gentle <agentle@cisco.com>
Co-Authored-By: Amrith Kumar <amrith@tesora.com>

Change-Id: I3315261aa18729fa7a6aa79d4a1d6c24de1e2c6b
2016-08-17 17:46:41 -04:00
OpenStack Proposal Bot
c8cc4b2cc4 Updated from global requirements
Change-Id: Ic9ccaffd36641cb12821303934d33dd755ea130a
2016-08-03 19:04:21 +00:00
OpenStack Proposal Bot
752fded9f7 Updated from global requirements
Change-Id: Ie656b0bb83b1ccb2e90b0c7ff5a5498a01b7e7a1
2016-07-27 16:05:35 +00:00
OpenStack Proposal Bot
2929d6f3ca Updated from global requirements
Change-Id: I68dc3996b4880f9543a9a09e03522e22e4981116
2016-06-24 08:47:13 +00:00
Jenkins
10d9794ac5 Merge "Run Python 3 unit tests in parallel" 2016-06-24 05:04:42 +00:00
Victor Stinner
71284ddc5f Run Python 3 unit tests in parallel
Replace testtools.run test runner with os-testr for Python 3 to run
tests in parallel.

Replace also the whitelist with a blacklist to quickly identify tests
which still must be ported to Python 3.

Blacklist backup.test_backup_models: even if it worked when run with
testtools.run, it fails when run using os-testr. We can investigate
this issue later, it's more important to reduce the duration of the
py34 job to reduce the risk of random timeout.

Add a dependency to os-testr.

Partially implements: blueprint trove-python3
Change-Id: I5ea7ebf7eec15b75a5fed07aab7bd15e5e6cd6d6
2016-06-22 09:23:47 +02:00
OpenStack Proposal Bot
5c8147acd1 Updated from global requirements
Change-Id: I8f5137d0db3c4044267d2dcf2d45413c4143889c
2016-06-21 18:07:16 +00:00
Andreas Jaeger
696d80d4a8 Add Install Guide
This adds trove-specific contents of the OpenStack Installation Guide
in the trove repo per [1]. A separate change will remove the heat
contents from the OpenStack Installation Guide for Newton per [2].

This is a verbatim import from the content in openstack-manuals with
minimal changes to get content building.

Also adds tox.ini environment for install-guide and adds
openstackdocs-theme to test-requirements.txt.

From lmichaels -- added a statement to the next-steps doc.

[1]
http://specs.openstack.org/openstack/docs-specs/specs/newton/project-specific-installguides.html
[2]
http://specs.openstack.org/openstack/docs-specs/specs/newton/installguide.html
[3] https://review.openstack.org/#/c/314229/

Partially-Implements: blueprint projectspecificinstallguides
Change-Id: Idf8cb90536fd4b4d9a2d0695ef30f498b1283410
2016-06-16 15:48:29 -07:00