<feed xmlns='http://www.w3.org/2005/Atom'>
<title>leap_pycommon.git/src/leap/common/tests, branch release/0.5.x</title>
<subtitle>[leap_pycommon] 
</subtitle>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/'/>
<entry>
<title>[tests] adapt events tests to recent changes</title>
<updated>2016-02-29T23:39:43+00:00</updated>
<author>
<name>Kali Kaneko</name>
<email>kali@leap.se</email>
</author>
<published>2016-02-29T23:33:28+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=027ad7eed50947608738ce0009fccf776936e55c'/>
<id>027ad7eed50947608738ce0009fccf776936e55c</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[test] set flag before starting client</title>
<updated>2015-07-28T19:48:04+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2015-07-28T19:48:04+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=e47f4bcc0eb9c3d08c649adcb62b0325f439113e'/>
<id>e47f4bcc0eb9c3d08c649adcb62b0325f439113e</id>
<content type='text'>
Test client will only start with flag set to True.
Change EventsGenericClientTestCase to set the flag on the
first line of setUp.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Test client will only start with flag set to True.
Change EventsGenericClientTestCase to set the flag on the
first line of setUp.
</pre>
</div>
</content>
</entry>
<entry>
<title>[style] more pep8 cleanup</title>
<updated>2015-07-28T15:41:32+00:00</updated>
<author>
<name>Kali Kaneko</name>
<email>kali@leap.se</email>
</author>
<published>2015-07-28T15:41:32+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=a119dd4fa2fc4a14577fd2d6e32dff950d934193'/>
<id>a119dd4fa2fc4a14577fd2d6e32dff950d934193</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[tests] fixed events tests</title>
<updated>2015-07-23T20:17:53+00:00</updated>
<author>
<name>Bruno Wagner</name>
<email>bwgpro@gmail.com</email>
</author>
<published>2015-07-23T03:00:39+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=486da2654c63262f0dbc2d603125f0c8c5c4ea74'/>
<id>486da2654c63262f0dbc2d603125f0c8c5c4ea74</id>
<content type='text'>
The events tests check for register and emit signals,
but because the flag set_events_enabled was False by
default in the tests, no signals were being emitted.

I added the flag to the setUp and tearDown of the tests,
they are still very slow but at least they are passing now
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The events tests check for register and emit signals,
but because the flag set_events_enabled was False by
default in the tests, no signals were being emitted.

I added the flag to the setUp and tearDown of the tests,
they are still very slow but at least they are passing now
</pre>
</div>
</content>
</entry>
<entry>
<title>[tests] implemented http feature according to test</title>
<updated>2015-07-23T20:16:36+00:00</updated>
<author>
<name>Bruno Wagner</name>
<email>bwgpro@gmail.com</email>
</author>
<published>2015-07-23T02:55:39+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=5502318835626527d9818c360c7fd2b1a4b01145'/>
<id>5502318835626527d9818c360c7fd2b1a4b01145</id>
<content type='text'>
Two test cases were broken and were implemented here:

The first was that HTTPClient should share the connection between
clients if a pool was not passed explicitly. If you initialize an
HTTPClient without a pool, it will reuse a pool created on the class.

The second was that you should be able to pass to the HTTPCLient a pool
on initialization. Added that possibility and fixed the tests accordingly
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Two test cases were broken and were implemented here:

The first was that HTTPClient should share the connection between
clients if a pool was not passed explicitly. If you initialize an
HTTPClient without a pool, it will reuse a pool created on the class.

The second was that you should be able to pass to the HTTPCLient a pool
on initialization. Added that possibility and fixed the tests accordingly
</pre>
</div>
</content>
</entry>
<entry>
<title>[tests] set environment for certs test</title>
<updated>2015-07-23T20:16:36+00:00</updated>
<author>
<name>Bruno Wagner</name>
<email>bwgpro@gmail.com</email>
</author>
<published>2015-07-22T22:17:03+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=301be892a67f88b8b9479531003403a77b36a5f2'/>
<id>301be892a67f88b8b9479531003403a77b36a5f2</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[style] Fixed pep8 warnings</title>
<updated>2015-07-23T20:16:36+00:00</updated>
<author>
<name>Bruno Wagner</name>
<email>bwgpro@gmail.com</email>
</author>
<published>2015-07-22T18:38:56+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=25d3b7c80f85cd94159b574274108061a94f1bc9'/>
<id>25d3b7c80f85cd94159b574274108061a94f1bc9</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>[bug] fix events ioloop client tests</title>
<updated>2015-07-23T20:03:50+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2015-07-23T20:03:50+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=07d421a32f3bb45932668f4951233166ada4e770'/>
<id>07d421a32f3bb45932668f4951233166ada4e770</id>
<content type='text'>
The events ioloop client is not completelly thread safe, so we have to use
reactor.callFromThread whenever we need it to be thread-safe. Examples of this
behaviour are the events ioloop client tests that depend on the firing of
deferreds, which are not thread safe. This commit fixes tese tests.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The events ioloop client is not completelly thread safe, so we have to use
reactor.callFromThread whenever we need it to be thread-safe. Examples of this
behaviour are the events ioloop client tests that depend on the firing of
deferreds, which are not thread safe. This commit fixes tese tests.
</pre>
</div>
</content>
</entry>
<entry>
<title>[feat] Make it optional to have a dedicated pool</title>
<updated>2015-06-02T22:28:02+00:00</updated>
<author>
<name>Victor Shyba</name>
<email>victor.shyba@gmail.com</email>
</author>
<published>2015-05-27T20:19:13+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=bf18c2bc6e3f533187281a3b31febd37ef22f8c0'/>
<id>bf18c2bc6e3f533187281a3b31febd37ef22f8c0</id>
<content type='text'>
As @meskio pointed out, some cases could need a dedicated pool with
different parameters.
This is a suggested implementation where the pool is reused by default,
creating a dedicated one just if needed/asked. This way we ensure that
resources are under control and special cases are still handled.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
As @meskio pointed out, some cases could need a dedicated pool with
different parameters.
This is a suggested implementation where the pool is reused by default,
creating a dedicated one just if needed/asked. This way we ensure that
resources are under control and special cases are still handled.
</pre>
</div>
</content>
</entry>
<entry>
<title>[feat] refactor events to use ZMQ</title>
<updated>2015-05-27T17:37:27+00:00</updated>
<author>
<name>drebs</name>
<email>drebs@leap.se</email>
</author>
<published>2015-02-04T17:04:10+00:00</published>
<link rel='alternate' type='text/html' href='https://leap.se/git/leap_pycommon.git/commit/?id=514c1434a016b09d93e8dfc5578b14825d14005a'/>
<id>514c1434a016b09d93e8dfc5578b14825d14005a</id>
<content type='text'>
Before this commit, protobuf and protobuf.socketrpc were used to serialize and
transmit messages between events clients. This change implements a simpler ZMQ
client/server events mechanism that uses ZMQ sockets for transmitting messages
from clients to server and to redistribute such messages to subscribed
clients.

Closes: #6359
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Before this commit, protobuf and protobuf.socketrpc were used to serialize and
transmit messages between events clients. This change implements a simpler ZMQ
client/server events mechanism that uses ZMQ sockets for transmitting messages
from clients to server and to redistribute such messages to subscribed
clients.

Closes: #6359
</pre>
</div>
</content>
</entry>
</feed>
