542 Commits

Author SHA1 Message Date
Jenkins
22c8bfddee Merge "Add missing docs for list_opts()" 2014-08-12 19:49:58 +00:00
Jenkins
1401fd1da8 Merge "Enable check for E226" 2014-08-08 04:29:19 +00:00
Jenkins
8691b2457c Merge "Bump hacking to version 0.9.2" 2014-08-06 03:38:04 +00:00
Christian Berendt
500f1e5dca Enable check for E226
* E226 missing whitespace around arithmetic operator

Change-Id: Iee5f6a952d9b12c6c8a4a79ef656fc7f94170776
2014-08-04 12:15:34 +00:00
OpenStack Proposal Bot
63a6d6229b Updated from global requirements
Change-Id: I0916e6c6590c799daa2e9784a9c61c47ac8180a1
2014-07-28 19:39:12 +00:00
Jenkins
ee23b54178 Merge "Add release notes for 1.4.0.0a4" 2014-07-25 16:10:19 +00:00
Jenkins
f6ef9161e4 Merge "Add release notes for stable/icehouse 1.3.1 release" 2014-07-25 16:04:32 +00:00
Mark McLoughlin
bea9723859 Add release notes for 1.4.0.0a4
Change-Id: Id2a6ae2616db33025dcbfa4fb0b76e38cba6292f
2014-07-25 15:12:37 +01:00
Mark McLoughlin
d020cb814a Add release notes for stable/icehouse 1.3.1 release
1.3.1 is a bugfix release from the stable/icehouse branch.

Change-Id: I1ec24b0aaccb67e4f3043d481cec13d82dec3c0d
2014-07-25 15:04:47 +01:00
Christian Berendt
5be1b6a6a9 Enabled hacking checks H305 and H307
* H305  imports not grouped correctly
* H307  like imports should be grouped together

Change-Id: I08dafc4fa150d2213b2bb002da7c9ee0ee517fac
2014-07-17 12:41:21 +02:00
Christian Berendt
6684565d84 Bump hacking to version 0.9.2
Change-Id: Ie0525e203bf4fd91c8dbcbcd6aab6acac191a53a
2014-07-16 16:26:24 +02:00
Nejc Saje
1cc3e5d866 Fixes incorrect exchange lock in fake driver
The exchanges lock in the fake driver was being disregarded,
probably due to a typo.

Closes-Bug: #1342088
Change-Id: I45261fce501a867b9253112e1608b14ed5afea26
2014-07-15 12:20:16 +00:00
OpenStack Proposal Bot
39d1917644 Imported Translations from Transifex
Change-Id: Ib4e037ef996ad574eb116970272cf410823e0cdf
2014-07-14 06:09:10 +00:00
Jenkins
3d956f5f5f Merge "Synced jsonutils and its dependencies from oslo-incubator" 2014-07-09 21:46:55 +00:00
Mark McLoughlin
e718789a98 Add release notes for 1.4.0.0a2/a3
Change-Id: I9e2a229ffa5bd9b604118d12d54e2f7809b9d49a
2014-07-08 17:32:28 +01:00
Jenkins
67e4cc1194 Merge "Replaced 'e.g.' with 'for example'" 2014-07-08 14:59:13 +00:00
Victor Stinner
71588adbb5 Fix AMQPListener for polling with timeout
On timeout, poll() should return None, not raise an exception (Timeout).

Add also an unit test.

Change-Id: I1ed5ae2f093841111f0b691dddb879c16d218b73
2014-07-07 14:23:00 +00:00
Christian Berendt
59103984bb Replaced 'e.g.' with 'for example'
According to the IBM Style Guide the Latin abbreviation 'e.g.'
should be replace by 'for example'.

Change-Id: I694df5ed62213e29bdf35f781fd6f310b7df77a6
2014-07-06 20:56:11 +02:00
Jenkins
032639e677 Merge "fixed pep8 issue E265" 2014-07-04 15:58:33 +00:00
Jenkins
270e9cb00c Merge "Remove duplicate docs for MessageHandlingServer" 2014-07-01 09:57:37 +00:00
Jenkins
cb70f81b96 Merge "Add 'docs' tox environment" 2014-06-30 15:39:11 +00:00
YAMAMOTO Takashi
a704a3f1fc Use assertEqual instead of assertIs for strings
Checking identity of strings is not a great idea.
It might not work with different implementations. (eg. pypy)
Test usual equality instead.

Change-Id: Ib1a673a0ac116f2c80d066e94a8bd9a9ef8f518a
2014-06-30 11:18:13 +09:00
Jenkins
4db3cebe23 Merge "Fix structure of unit tests in oslo.messaging (part 3 last)" 2014-06-29 14:48:24 +00:00
Jenkins
3578338f3a Merge "Fix structure of unit tests in oslo.messaging (part 2)" 2014-06-29 14:43:38 +00:00
Jenkins
555eb7980b Merge "Fix the notifier example" 2014-06-28 18:05:15 +00:00
Jenkins
bfcf122a56 Merge "Fix slow notification listener tests" 2014-06-27 22:36:11 +00:00
Jenkins
944b947fb8 Merge "Fix formatting of TransportURL.parse() docs" 2014-06-27 22:36:04 +00:00
Boris Pavlovic
026cd1cfb9 Fix structure of unit tests in oslo.messaging (part 3 last)
Even in case of libraries and when they are not big like nova.
It is better to use next rules:
1) structure of tests directory is the same as a root of project
Tests directory will be well organized, and it will be simple to find
where to write tests
2) names for end modules should be test_<name_of_testing_module>.py

Change-Id: I75b4b3df4fffc8dfe389c547ae7a004d1b278ecc
2014-06-27 22:29:27 +00:00
Boris Pavlovic
ac0fc7f011 Fix structure of unit tests in oslo.messaging (part 2)
Even in case of libraries and when they are not big like nova.
It is better to use next rules:
1) structure of tests directory is the same as a root of project
Tests directory will be well organized, and it will be simple to find
where to write tests
2) names for end modules should be test_<name_of_testing_module>.py

Change-Id: I069121c5f32bbe51c6795e51c23ff3630fcd43e2
2014-06-27 22:29:22 +00:00
Jenkins
8d71fe2498 Merge "Fix info method of ListenerSetupMixin" 2014-06-27 07:25:18 +00:00
Mark McLoughlin
a7f01d9683 Fix slow notification listener tests
The notification listener tests have a listener endpoint that will stop
the listener thread when a certain number of messages have been
received. If this doesn't work, the main thread will time out its
join() after 5 seconds and the only way sign of this is that the test
took over 5 seconds.

Let's make stop_listener() return a boolean indicating whether the the
thread has stopped or we timed out, and assert that the thread has
stopped.

Fix a few cases where the thread hasn't stopped. In the 'two exchanges'
case, we send three messages but only two are to the exchanges we are
listening on. In the tests using the HANDLED return value, the info()
handler which stops the thread was never been called because that
endpoint was last in the endpoints list.

Change-Id: Iea2486f23cee073c3891188d7aabb22ae945900d
2014-06-27 06:56:47 +01:00
Paul Michali
0cfafac246 encoding error in file
There is a non-printable character (c2a0) in a comment line, which
in a new Neutron test case causes a StringException. There are
three issues here.

1) Encoding issue in the file.
2) No detection of encoding issues in files.
3) Neutron tests mask the failure detail

This addresses the first issue. Bug 1334798 in Neutron was created
for the last issue. Oslo team is aware of the second issue.

Related-Bug: #1334798

Change-Id: I8cfa6c93085a26666a8b4bee06dcd52709d04a95
2014-06-26 18:53:35 +00:00
Jenkins
9c3c717799 Merge "Replace usage of str() with six.text_type" 2014-06-26 15:54:58 +00:00
Thomas Herve
13fc9f251a Fix info method of ListenerSetupMixin
The listener of ListenerSetupMixin had an incorrect info implementation
that couldn't be called properly. This patch fixes the method signature.

Change-Id: I33153f04ce23474cfaffaa1db20b8582befa324d
2014-06-26 17:23:20 +02:00
Mark McLoughlin
89ed1295b5 Add release notes for 1.4.0.0a1
Change-Id: Iaf4ee85100533746ec8b6faa7983a17261eb5392
2014-06-26 10:34:25 +01:00
Mark McLoughlin
da2abaaa06 Fix formatting of TransportURL.parse() docs
Change-Id: I0b2cf7b1e76bd9151957ddaaaaca8d9e11cf1ed5
2014-06-26 06:53:32 +01:00
Mark McLoughlin
32d5129b37 Remove duplicate docs for MessageHandlingServer
We're currently including these docs under the RPC server and
notification listener sections causing sphinx to have a minor panic
attack.

  WARNING: duplicate object description of oslo.messaging.MessageHandlingServer

Change-Id: I76a4d9a7f55f7b65bcdd2bdb814904dc55bd1068
2014-06-26 06:53:20 +01:00
Mark McLoughlin
5fbb55b385 Add missing docs for list_opts()
Seems I forgot to check this in as part of commit 0eb5a6f.

Change-Id: I4e3128f726873998fb9c1cde78864e06e225e5bd
2014-06-26 06:53:08 +01:00
Mark McLoughlin
8babb0d1bd Add 'docs' tox environment
To make it easy to build docs with 'tox -e docs'.

Change-Id: Idd47c617196b25539b6b1fc88fac0a45b7fc0911
2014-06-26 06:52:25 +01:00
Aaron Rosen
0102aa96e6 Replace usage of str() with six.text_type
Replace using of str with six.text_type as it's able to
handle unicode data.

Change-Id: I38e4378c490d1dad8020312308dd3b6dad8772c0
2014-06-25 20:08:51 +00:00
Boris Pavlovic
3f9fc44bc6 Fix structure of unit tests in oslo.messaging (part 1)
Even in case of libraries and when they are not big like nova.
It is better to use next rules:

1) structure of tests directory is the same as a root of project
Tests directory will be well organized, and it will be simple to find
where to write tests

2) names for end modules should be test_<name_of_testing_module>.py

Change-Id: Ie13d1b709e863f6a9babaaa2bf1e042ef9251671
2014-06-25 12:20:36 +04:00
Jenkins
68f8857f30 Merge "RPC server doc: use the blocking executor" 2014-06-24 15:09:37 +00:00
Ihar Hrachyshka
503b48a6b8 Synced jsonutils and its dependencies from oslo-incubator
The sync includes change that makes sure we get unicode-only dicts from
jsonutils no matter which json module implementation is selected.

The latest commit in oslo-incubator:
- 2e1214b74b5448825d3db26e1308a51b468d3d5c

Included commits:
* gettextutils.py:
  - de4adbc4: pep8: fixed multiple violations
  - 9912e5df: Add API for creating translation functions
  - 6cc96d05: Fix test_gettextutils on Python 3
  - fd33d1ea: Fix gettextutil.Message handling of deep copy failures
  - 047b2e4e: Change lazy translation to retain complete dict
  - 6d55e26a: Add support for translating log levels separately
* importutils.py:
  - 1173e469: Remove ValueError when accessing sys.modules
  - 885828af: Deleted duplicated method in cliutils.
* jsonutils.py:
  - 0d7296f6: Add kwargs to jsonutils.load(s) functions
  - 18f2bc1b: Enforce unicode json output for jsonutils.load[s]()
  - 9e5a3938: jsonutils.load() accepts file pointer, not string
* timeutils.py:
  - 250cd88c: Fixed a new pep8 error and a small typo

The sync adds new module: strutils.

Disabled pep8 import checks for gettextutils to avoid raising 'H302:
import only modules.'

Change-Id: Ic815ca3df94c33edec9104172048b2cd94b92e3f
Closes-Bug: 1314129
2014-06-24 14:14:02 +02:00
Jenkins
1a0a3dd4b9 Merge "Ensures listener queues exist in fake driver" 2014-06-23 16:04:24 +00:00
Jenkins
889bf73021 Merge "Handle unused allowed_remote_exmods in _multi_send" 2014-06-23 09:33:30 +00:00
Mehdi Abaakouk
e582da68f4 Ensures listener queues exist in fake driver
The fanout queues of the fake driver are created at the first executor
poll, but if we use eventlet executor and the fake driver, when the sender
delivers a fanout message before the first poll, the message goes to the
topic queue instead of the server fanout queue.

The changes fixes that by ensuring the all queues exists when the
listener is created.

Closes bug #1331453

Change-Id: I92e7c01dd87d634b741bbcaea92f48730fdd555e
2014-06-23 09:10:21 +02:00
Gauvain Pocentek
221144600a RPC server doc: use the blocking executor
The eventlet executor need additional code to make the RPC server sample
work. Using the blocking executor makes things easier to setup for a
newcomer.

Change-Id: I56dfa54a178962d4ced34e2f15eaf9312b7087cc
2014-06-22 09:48:33 +02:00
Gauvain Pocentek
244a90278b Fix the notifier example
The notifier should be instantiated using messaging.Notifier, not
notifier.Notifier.

Change-Id: Id1930df6b758b292a7591e2e4cba2ef5a313a3cb
2014-06-22 09:47:02 +02:00
ChangBo Guo(gcb)
821ee096a6 Removes the use of mutables as default args
Passing mutable objects as default args is a known Python pitfall.
We'd better avoid this.

Change-Id: I67cc0774a65886ef9fce0b72e52157b622248a85
Closes-Bug: #1327473
2014-06-21 11:41:36 +08:00
Jenkins
e0730983ee Merge "Set correct group for matchmaker_redis options" 2014-06-20 20:08:34 +00:00