Commit Graph

18 Commits

Author SHA1 Message Date
Adam Harwell f8d023fbfe Retiring neutron-lbaas
Depends-On: https://review.opendev.org/#/c/658493/
Change-Id: Ia4f4b335295c0e6add79fe0db5dd31b4327fdb54
2019-05-11 03:18:03 -07:00
Kyle Mestery 9bc2cd285b Update documentation files for LBaaS
The README file was not updated during the services split to accurately
reflect what project this was. Also, update CONTRIBUTING.rst, HACKING.rst,
and TESTING.rst to point to their Neutron counterparts. This makes
maintaining a single copy easier.

Change-Id: I6392cdca2d8bb7b9a4623fc7394a4e87f446c25a
2014-12-15 14:16:41 +00:00
YAMAMOTO Takashi 024d147883 test_dhcp_agent: Fix no-op tests
Fix some uses of assertCalledOnceWith, which seems like a mistake of
assert_called_once_with.

Also, add a hacking check to prevent the mistake.

Closes-Bug: #1397184
Change-Id: I12d077e2724d52eff65d55aff1130fbbb69671b1
2014-12-02 12:13:08 +09:00
Gary Kotton 57d68227ca Update i18n translation for neutron.agents log msg's
Don't translate debug level logs and enforce log hints
Our translation policy
(https://wiki.openstack.org/wiki/LoggingStandards#Log_Translation) calls
for not translating debug level logs. This is to help prioritize log
translation. Furthermore translation has a performance overhead, even if
the log isn't used (since neutron doesn't support lazy translation yet).

NOTE: this is done on a directory by directory basis to ensure that we
do not have too many conflicts and rebases.

Add a local hacking rule to enforce this.

This patch set enforces the directory neutron/agents

Partial-bug: #1320867

Change-Id: I4bd562e5138c2d2850072440aa121f27e902463a
2014-11-15 00:08:20 -08:00
Jacek Swiderski d43f129385 mock.assert_called_once() is not a valid method
mock.assert_called_once() is a no-op that tests nothing. Instead
mock.assert_called_once_with() should be used (or use
assertEqual(1, mock_obj.call_count) if you don't want to check
parameters).

Borrowed HACKING rule from Davanum Srinivas's nova patch to
prevent it from appearing again.

Change-Id: Idac1d3c89c07e13c9a209663f4e557fcb7547821
Closes-Bug: #1365751
Closes-Bug: #1300265
2014-10-13 12:36:49 +02:00
Gary Kotton 35e0d80691 Remove @author(s) from copyright statements
We have git to track authorship, so let's not pad source files
with it as well.

A hacking check has been added for this. The value is N322.

Change-Id: Iab0b64d417e0bb41a6b455e2ac377deee64ec3ee
2014-09-15 21:40:09 +09:00
Ihar Hrachyshka 8b8376c635 Use jsonutils instead of stdlib json
jsonutils provides multiple benefits in comparison to pure stdlib json
(like using simplejson on Python 2.6).

Similar patch was already merged before [1], but since it lacked hacking
rule to enforce jsonutils usage, new occurrences of stdlib json module
usage were introduced.

This patch switches all the code to using jsonutils and adds a hacking
rule to enforce the rule.

The hacking rule requires that jsonutils module does not mimic as 'json'
thru using import renames, so the code was updated not to rename the
module when doing import.

The hacking rule was shamelessly copied from the corresponding nova
review [2].

[1]: https://review.openstack.org/#/c/99760/
[2]: https://review.openstack.org/111296/

Change-Id: Ie7a5bb76445e15cde9fbf9ff3d2101a014637b37
2014-08-14 12:45:58 +02:00
Gary Kotton 4683d539e2 Add missing translation support
Update a number of files to add missing translation support.

The patch adds a new hacking check - N320. This ensures that
all log messages, except debug ones, have translations.

A '# noqa' indicates that the validation will not be done on
the specific log message. This should be used in cases where
the translations do not need to be done, for example, the log
message is logging raw data.

Change-Id: I3e1fdd04d87b09dff50950b5e85f5cacfb29afdc
Closes-bug: #1314994
2014-05-19 12:16:56 +02:00
Joe Gordon b42688bbab Cleanup HACKING.rst
* Point to new location for hacking doc
(http://docs.openstack.org/developer/hacking/)
* Remove openstack-common section because already in main hacking doc

Change-Id: I7fbcfe13469a75fed08700ccbe07fefbee33db22
2013-11-11 10:32:34 -08:00
Keshava Bharadwaj 5f74dbc766 Cleanup and make HACKING.rst DRYer
Reference the OpenStack hacking guide in HACKING.rst and remove
duplicate entries. Adds placeholder section for neutron specific
rules.

Change-Id: I4bfbab50b77e7592178dda44c7f4f52edc7fdc21
2013-10-16 16:33:08 +05:30
ZhiQiang Fan 5a59fae6e6 Fix wrong example in HACKING.rst
Example of Human Alphabetical Order Examples section in HACKING.rst
is wrong, this patch fixes it to the right order.

Closes-Bug: #1213568

Change-Id: Ib7f8baf20c437c3fa776201998c36f33bdde2f78
2013-08-18 14:26:36 +08:00
Mark McClain ddf221b92a Rename Quantum to Neutron
This change renames everything to Neutron while providing backwards
compatible adjustments for Grizzly configuration files.

implements blueprint: remove-use-of-quantum

Change-Id: Ie7d07ba7c89857e13d4ddc8f0e9b68de020a3d19
2013-07-06 15:02:43 -04:00
Gary Kotton e4a58f80b5 Remove locals() from strings substitutions
Fixes bug 1168988

Change-Id: Ifd1e7a027f16062ff35e777cf2d953f652a806a7
2013-04-20 11:56:26 +00:00
Monty Taylor b88bbd6157 Add common test base class to hold common things.
There are several common fixtures that every test case wants. Following
the pattern in Nova, add a common base test case class to hold these things.

Change-Id: I2d2cd91e5051d9cbf230e6f48985d6eddcb7b58a
2013-03-05 18:07:14 -05:00
Monty Taylor 5a6f89265b Use testtools instead of unittest or unittest2.
As part of the move towards testr and parallel test running, we
start to use testtools and fixtures to make the test suite
resilient and more pedantic.

Part of blueprint grizzly-testtools

Change-Id: I90250de9fe21237db34f6a50b89b15863e270aa5
2013-02-26 19:32:30 +09:00
Zhongyue Luo 6424abf507 Logging module cleanup
Replaced logging with openstack.common.log
Removed imports where logging is not used

Fixes bug #1095541

Change-Id: I5b03d9697dde3ef3520f67d1d8166f7af7689551
2013-01-03 16:20:56 +08:00
Zhongyue Luo 1a5a479041 Import order clean-up
Reorder imports by full module path

Change-Id: I50bc2a5ff6cea939049fed8066471b15e84adbe6
2012-11-02 09:52:12 +08:00
Maru Newby 1ce7cf23cc Add HACKING.rst coding style doc
* Addresses bug 977685

Change-Id: Id04cad3021f015abe965f79b8930da55e092ada1
2012-04-09 21:09:30 -07:00