<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/NetworkManager.git/tools/test-networkmanager-service.py, branch bg/issue39</title>
<subtitle>gitlab.freedesktop.org: NetworkManager/NetworkManager.git
</subtitle>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/'/>
<entry>
<title>tests: simulate old LastScan wifi value in test-networkmanager-service.py</title>
<updated>2018-11-02T13:56:40+00:00</updated>
<author>
<name>Beniamino Galvani</name>
<email>bgalvani@redhat.com</email>
</author>
<published>2018-11-02T12:49:25+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=5ba301f4eb652a208a500a39d59dadf427a64590'/>
<id>5ba301f4eb652a208a500a39d59dadf427a64590</id>
<content type='text'>
In this way clients will randomly find that the AP list is older than
30 seconds and they will issue a new scan.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
In this way clients will randomly find that the AP list is older than
30 seconds and they will issue a new scan.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: support UInt64 type in test-networkmanager-service.py</title>
<updated>2018-10-17T14:22:34+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2018-10-17T11:56:09+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=0f503efd6435fdbf09d60f764d487bd96100519a'/>
<id>0f503efd6435fdbf09d60f764d487bd96100519a</id>
<content type='text'>
and also accept "gsm" connection-type. Both will be used next.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
and also accept "gsm" connection-type. Both will be used next.
</pre>
</div>
</content>
</entry>
<entry>
<title>all: point git references to the GitLab instance</title>
<updated>2018-08-27T09:36:56+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2018-07-17T13:41:29+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=d70185ddf13eed9232cfd4da53f5baaa14f8a1d6'/>
<id>d70185ddf13eed9232cfd4da53f5baaa14f8a1d6</id>
<content type='text'>
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/2
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/merge_requests/2
</pre>
</div>
</content>
</entry>
<entry>
<title>tests/trivial: rename ip4_addr_ne32() to ip4_addr_be32() in test-networkmanager-service.py</title>
<updated>2018-07-11T15:53:44+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2018-07-11T15:53:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=9730961a0233daa7f7d007affc75f2d36bb6552a'/>
<id>9730961a0233daa7f7d007affc75f2d36bb6552a</id>
<content type='text'>
The function is supposed to return the IPv4 address as 32 bit integer in
network byte order (bit endian). The ip4_addr_ne32() name is confusing,
because "ne" commonly stands for "native endianness".

Compare also "unaligned.h" and unaligned_read_ne32(), which also
stands for native endianness (host order), not network order (big
endian).

Rename.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The function is supposed to return the IPv4 address as 32 bit integer in
network byte order (bit endian). The ip4_addr_ne32() name is confusing,
because "ne" commonly stands for "native endianness".

Compare also "unaligned.h" and unaligned_read_ne32(), which also
stands for native endianness (host order), not network order (big
endian).

Rename.
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: don't exit test-networkmanager-service.py after 20 seconds</title>
<updated>2018-06-18T09:33:15+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2018-06-18T09:24:00+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=296da44235815ff32202f2afe9c990e94e4824ea'/>
<id>296da44235815ff32202f2afe9c990e94e4824ea</id>
<content type='text'>
Tests might just take longer than 20 seconds.

Also, we already watch stdin to determine whether the service
should exit.

(cherry picked from commit 4e18ef49bf2527b4c29a0bdff2faddf0194dd5bd)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Tests might just take longer than 20 seconds.

Also, we already watch stdin to determine whether the service
should exit.

(cherry picked from commit 4e18ef49bf2527b4c29a0bdff2faddf0194dd5bd)
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: improve NetworkManager stub service for Wi-Fi scanning</title>
<updated>2018-06-18T08:58:05+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2018-06-16T11:38:45+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=efddb0cef5187f4f77d0c6b94f75063ad8f9d6a2'/>
<id>efddb0cef5187f4f77d0c6b94f75063ad8f9d6a2</id>
<content type='text'>
Now that nmcli initiates a scan before displaying Wi-Fi networks,
the stub service must properly support that as well.

For the moment, the stub service chooses "now" as LastScan timestamp.
This causes nmcli not to trigger a new scan, because nmcli gives
unstable output if multiple nmcli processes in parallel race to
trigger a Wi-Fi scan. That should be fixed.

(cherry picked from commit 56a0488bbae38f8d802b1cc32ba94c1640f70bc6)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Now that nmcli initiates a scan before displaying Wi-Fi networks,
the stub service must properly support that as well.

For the moment, the stub service chooses "now" as LastScan timestamp.
This causes nmcli not to trigger a new scan, because nmcli gives
unstable output if multiple nmcli processes in parallel race to
trigger a Wi-Fi scan. That should be fixed.

(cherry picked from commit 56a0488bbae38f8d802b1cc32ba94c1640f70bc6)
</pre>
</div>
</content>
</entry>
<entry>
<title>tests: fix race in setting signal strength for Wi-Fi AP in NM stub</title>
<updated>2018-06-18T08:58:04+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2018-06-18T08:49:46+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=e05ce581b619a2fa3584b374aa7c3dad909c3a8a'/>
<id>e05ce581b619a2fa3584b374aa7c3dad909c3a8a</id>
<content type='text'>
This opens the tests up to races. If we want to change the strength, we
need to do it in a controlled, race-free manner. This is especially the
case, because clients/tests run a large number of nmcli instances in
parallel, and it's thus racy which signal the nmcli processes will
see.

This also fixes a bug at

    self._dbus_property_set(IFACE_WIFI_AP, PRP_WIFI_AP_STRENGTH, strength)

@strength must be a D-Bus type, so that python-dbus knows the correct
type for serialization.

(cherry picked from commit 7e118c00916aa7dd3f04752debbcc09569d6effe)
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This opens the tests up to races. If we want to change the strength, we
need to do it in a controlled, race-free manner. This is especially the
case, because clients/tests run a large number of nmcli instances in
parallel, and it's thus racy which signal the nmcli processes will
see.

This also fixes a bug at

    self._dbus_property_set(IFACE_WIFI_AP, PRP_WIFI_AP_STRENGTH, strength)

@strength must be a D-Bus type, so that python-dbus knows the correct
type for serialization.

(cherry picked from commit 7e118c00916aa7dd3f04752debbcc09569d6effe)
</pre>
</div>
</content>
</entry>
<entry>
<title>tools/test-service: utilize nm_utils_get_timestamp_msec()</title>
<updated>2018-06-15T14:23:30+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2018-06-15T12:42:11+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=cfa3a02b91dbbe605fbe8deb5ad40dd7db0cdac1'/>
<id>cfa3a02b91dbbe605fbe8deb5ad40dd7db0cdac1</id>
<content type='text'>
This is probably better than a hardcoded timestamp.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This is probably better than a hardcoded timestamp.
</pre>
</div>
</content>
</entry>
<entry>
<title>wifi: expose LastScan as milliseconds not seconds</title>
<updated>2018-06-15T14:23:30+00:00</updated>
<author>
<name>Lubomir Rintel</name>
<email>lkundrak@v3.sk</email>
</author>
<published>2018-06-15T11:57:30+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=07fd0502f68a1116ee4cfdb31b24b422b142847f'/>
<id>07fd0502f68a1116ee4cfdb31b24b422b142847f</id>
<content type='text'>
This doesn't wrap around in 68 years of uptime and is consistent with
o.fd.NM.Checkpoint.Created.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This doesn't wrap around in 68 years of uptime and is consistent with
o.fd.NM.Checkpoint.Created.
</pre>
</div>
</content>
</entry>
<entry>
<title>clients/tests: fix unstable tests for Python2 vs. Python3</title>
<updated>2018-06-14T14:38:33+00:00</updated>
<author>
<name>Thomas Haller</name>
<email>thaller@redhat.com</email>
</author>
<published>2018-06-14T14:01:33+00:00</published>
<link rel='alternate' type='text/html' href='http://trove.baserock.org/cgit/delta/NetworkManager.git/commit/?id=9a14f9caa59d2853a338e5935355dcb611cf170f'/>
<id>9a14f9caa59d2853a338e5935355dcb611cf170f</id>
<content type='text'>
Currently, nmcli does not sort the list of available connections
for display. Instead, it shows them in the order as NetworkManager
exposes them on D-Bus.

Previously, test-networkmanager-service.py, would generate the list
of available connections by iterating the connections dictionary.
In Python (at least until Python 3.6), the order when iterating over
dictionaries is undefined. This inconsistancy lets tests behave
differently depending on the python version. Possibly with Python
3.4 and 3.5, tests might even behave differently between individual
runs (since Python there uses siphash with a randomized hash seed).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Currently, nmcli does not sort the list of available connections
for display. Instead, it shows them in the order as NetworkManager
exposes them on D-Bus.

Previously, test-networkmanager-service.py, would generate the list
of available connections by iterating the connections dictionary.
In Python (at least until Python 3.6), the order when iterating over
dictionaries is undefined. This inconsistancy lets tests behave
differently depending on the python version. Possibly with Python
3.4 and 3.5, tests might even behave differently between individual
runs (since Python there uses siphash with a randomized hash seed).
</pre>
</div>
</content>
</entry>
</feed>
