Debian Codegraph @

NEWS

raw
1 OBSOLETE: Release news of newer versions are contained in the git tag descriptions.
2
3 ## [0.28.1] - 2022-06-28
4 - Again works on RHEL/CentOS 8 (0.27 broke there), now in CI
5 - Avoid glib GI dependency for main dbusmock, for running in virtualenv (thanks Allison Karlitskaya)
6
7 ## [0.28.0] - 2022-06-19
8 - Drop unmaintained and broken accountsservice template
9 - testcase: Throw an error when spawning a well-known name that exists (thanks Benjamin Berg)
10 - mockobject: Allow sending signals with extra details (thanks Peter Hutterer)
11
12 ## [0.27.5] - 2022-04-05
13 - bluez and accountsservice templates: Drop default arguments from D-Bus methods (thanks Simon McVittie)
14
15 ## [0.27.4] - 2022-04-04
16 - Fix D-Bus signature detection regression from 0.27.0 (thanks Peter Hutterer) (#118)
17
18 ## [0.27.3] - 2022-03-22
19 - packit: Fix file name to sync
20
21 ## [0.27.2] - 2022-03-22
22 - packit: Really fix Fedora dist-git syncing
23
24 ## [0.27.1] - 2022-03-22
25 - packit: Fix Fedora dist-git syncing
26
27 ## [0.27.0] - 2022-03-22
28 - Do not register standard session service directories, add API to enable selected services (thanks Benjamin Berg)
29 - Log static method calls from templates (thanks Peter Hutterer)
30
31 ## [0.26.1] - 2022-02-25
32 - Fix README content type to Markdown, to fix releasing to PyPi
33
34 ## [0.26.0] - 2022-02-25
35 - logind template: Add locking API (thanks Andy Holmes)
36 - bluez5 template: Add RemoveDevice() and RemoveAdapterWithDevices() methods,
37 fix properties (thanks Bastien Nocera)
38 - Documentation improvements, particularly wrt. raising errors
39
40 ## [0.25.0] - 2021-12-25
41 - bluez template: Implement adapter discovery, connect, disconnect, and removal
42 (thanks Bastien Nocera)
43 - Fix changing array properties (thanks Jonas Ådahl)
44 - Fix CLI upower tests (thanks Marco Trevisan)
45 - Add testing and Fedora updating through packit
46
47 ## [0.24.1] - 2021-10-27
48 - Do not register standard D-Bus service directories (Thanks Benjamin Berg)
49 - templates: Add IIO Sensors Proxy support (Thanks Marco Trevisan)
50 - Fix importlib module import (Thanks Marco Trevisan)
51 - Clean up code for most recent pylint version
52
53 ## [0.24.0] - 2021-08-28
54 - Add Add power-profiles-daemon template (Thanks Bastien Nocera)
55 - logind: Implement Inhibit and ListInhibitors (Thanks to Benjamin Berg)
56 - Fix new complaints from pylint 2.9
57
58 ## [0.23.1] - 2021-06-15
59 - Fix tests for Python 3.10
60
61 ## [0.23.0] - 2021-03-24
62 - DBusMockObject: Add UpdateProperties() method (Thanks to Jonas Ådahl)
63 - DBusTestCase: Add bus override argument to spawn_server_template, to use
64 templates on either system or session bus; add corresponding --session CLI
65 option
66 - bluez template: Implement Pair() method on the Device interface and the
67 AgentManager1 interface (Thanks to Bastien Nocera)
68 - polkit template: Implement RegisterAuthenticationAgent() (Thanks to Jonas Ådahl)
69 - Add accountsservice template (Thanks to Marco Trevisan)
70
71 ## [0.22.0] - 2021-01-02
72 - NetworkManager template: Fix connecting to wifi
73 - NetworkManager template: Add Reload() method
74 - tests: Replace nose test runner with standard unittest
75 - setup.py: Drop deprecated `test_suite`, run tests through
76 `python3 -m unittest` directly
77
78 ## [0.21.0] - 2021-01-01
79 - Add type annotations to the whole API
80 - Drop obsolete ConsoleKit and bluez4 templates/tests
81 - upower template: Drop support for 0.9 API
82
83 ## [0.20.0] - 2020-12-19
84 - NetworkManager template: Handle NetworkingEnable
85 - NetworkManager template: AddConnectionUnsaved
86 - Drop support for Python 2
87
88 ## [0.19] - 2020-01-09
89 - NetworkManager template: Add "StateReason" property and active connection ID
90 - Add low-memory-monitor template
91
92 ## [0.18.3] - 2019-09-08
93 - Fix timeouts for loaded machines and parallel tests
94 - Fix tests for Python 3.8
95
96 ## [0.18.2] - 2019-02-23
97 - test: Adjust for changed version output format in systemd 241
98
99 ## [0.18.1] - 2018-11-11
100 - test: Fix failures with systemd 239 in chroots
101
102 ## [0.18] - 2018-07-01
103 - logind template: Add support for suspend-then-hibernate
104 - NetworkManager template: Add GetConnectionByUuid method
105 - bluez template: Add PairDevice() 'class_' parameter
106 - Fix logging of unicode strings in Python 2
107 - Adjust logind and timedated tests to systemd 239 (Debian #902602)
108
109 ## [0.17.2] - 2018-03-01
110 - NetworkManager template: Add GetDeviceByIpIface().
111 - Move release tarballs from Launchpad to
112 <https://github.com/martinpitt/python-dbusmock/releases>.
113 <https://pypi.python.org/pypi/python-dbusmock> remains as usual.
114
115 ## [0.17.1] - 2018-02-22
116 - Fix NetworkManager tests due to name changes from 802-11-wireless to wifi.
117
118 ## [0.17] - 2017-11-07
119 - Call dbus-daemon directly instead of dbus-launch. (Debian #836053)
120 - Fix DBusTestCase.stop_dbus() to actually enforce a timeout. Thanks to Renat
121 Galimov!
122 - Fix test_timedated for changed timedatectl output format in systemd 235.
123
124 ## [0.16.9] - 2017-06-19
125 - NetworkManager template: Fix type of 'State' property in AddActiveConnection()
126 - Fix BlueZ tests to work with Python 2 again.
127
128 ## [0.16.8] - 2017-06-12
129 - bluez5 template tests: Fix failure of test_no_adapters with BlueZ 5.45.
130 (LP: #1696480)
131 - tests: Move from pep8 to pycodestyle for static code tests.
132 - NetworkManager: Add ObjectManager, to work with NM ≥ 1.6.
133
134 ## [0.16.7] - 2016-09-12
135 - bluez5 template tests: Fix failure on "Waiting to connect to bluetoothd"
136 messages.
137
138 ## [0.16.6] - 2016-06-19
139 - upower template tests: Fix version comparison.
140
141 ## [0.16.5] - 2016-06-19
142 - Ofono template: generate unique ICCIDs (CardIdentifier).
143
144 ## [0.16.4] - 2016-06-07
145 - Ofono template: Add missing properties to SimManager interface.
146
147 ## [0.16.3] - 2015-12-14
148 - NetworkManager template test: Make the test run standalone. Thanks Pete
149 Woods.
150
151 ## [0.16.2] - 2015-12-09
152 - NetworkManager template: Fix connection settings Updated signal emitted by
153 wrong object.
154 - NetworkManager template: Handle empty device at connection activation.
155 - NetworkManager template: Implement secrets management in settings.
156
157 ## [0.16.1] - 2015-10-22
158 - NetworkManager template: Fix indexing bug in SettingsAddConnection. Thanks
159 Pete Woods.
160
161 ## [0.16] - 2015-10-08
162 - NetworkManager template: Generate a new unused name in connection activation
163 instead of just using the access point name. Thanks Pete Woods for the
164 original patch!
165 - Allow the passing of template parameters via the command-line as JSON
166 strings. Thanks Pete Woods.
167
168 ## [0.15.3] - 2015-09-16
169 - NetworkManager template: Add missing properties to ethernet device and
170 active connection. Thanks Pete Woods.
171 - Quiesce irrelevant PEP-8 errors with pep8 1.6.
172
173 ## [0.15.2] - 2015-06-11
174 - test_ofono: Test fields which don't get obfuscated with Ubuntu's latest
175 ofono (See LP #1459983). Thanks Iain Lane.
176 - timedated template: Add NTPSynchronized property and set it in SetNTP(), to
177 also work with systemd 220.
178
179 ## [0.15.1] - 2015-05-12
180 - SECURITY FIX: When loading a template from an arbitrary file through the
181 AddTemplate() D-Bus method call or DBusTestCase.spawn_server_template()
182 Python method, don't create or use Python's *.pyc cached files. By tricking
183 a user into loading a template from a world-writable directory like /tmp, an
184 attacker could run arbitrary code with the user's privileges by putting a
185 crafted .pyc file into that directory. Note that this is highly unlikely to
186 actually appear in practice as custom dbusmock templates are usually shipped
187 in project directories, not directly in world-writable directories.
188 Thanks to Simon McVittie for discovering this!
189 (LP: #1453815, CVE-2015-1326)
190
191 ## [0.15] - 2015-05-08
192 - NetworkManager template: Restore nm-specific PropertiesChanged signal
193 - NetworkManager template: Add DeactivateConnection(),
194 Settings.AddConnection(), Settings.Connection.Update(), and
195 Settings.Connection.Delete() methods. Also allow Connections with
196 autoconnect, added using AddConnection, to be automatically connected by the
197 first found device, roughly like NetworkManager itself does. Thanks Jonas
198 Grønås Drange!
199 - NetworkManager template: Fix broken exception in AddWiFiConnection.
200 - NetworkManager template: Set RsnFlags to have the same value as WpaFlags.
201 Thanks Pete Woods!
202
203 ## [0.14] - 2015-03-30
204 - Move project hosting to github, update README.rst.
205 - urfkill template: Return boolean from block() method, as the original
206 urfkill does. Thanks Jonas Grønås Drange!
207 - Correctly instantiate DBusExceptions so that they get a proper name and
208 message (issue #3)
209 - ofono template: Fix SubscriberIdentity property type
210 - Emit PropertiesChanged signal when Set()ing properties.
211 - urfkill template: Return boolean from Block() and FlightMode() methods
212 - ofono template: Add ConnectionManager interface.
213 - NetworkManager template: Much more complete support for mocking access
214 points and connections.
215
216 ## [0.13] - 2015-02-27
217 - Add urfkill template. Thanks Jussi Pakkanen!
218
219 ## [0.12] - 2015-01-17
220 - upower template: Add SetDeviceProperties() convenience method for changing
221 upower device properties. Thanks Charles Kerr!
222
223 ## [0.11.4] - 2014-09-22
224 - upower template: Go back to using type 's' for Device* signal arguments for
225 upower 0.9. The older library does not get along with 'o'. (Regression in
226 0.11.2)
227
228 ## [0.11.3] - 2014-09-19
229 - Fix test suite crash if loginctl is not installed.
230
231 ## [0.11.2] - 2014-09-19
232 - upower template: Fix type of Device* signal arguments to be 'o', not 's'.
233 Thanks Iain Lane.
234 - ofono template: Add org.ofono.SimManager interface. Thanks Jonas Grønås
235 Drange.
236 - bluez5 template: Fix the type of the 'Transferred' property. Thanks Philip
237 Withnall.
238 - networkmanager template: Fix the "FAILED" state value to be 120, not 12.
239 Thanks Jonas Grønås Drange.
240 - bluez5 tests: Accept devices in state "not available" (or other states) as
241 well.
242 - timedated and logind tests: Adjust to also accept output format of
243 systemd 215.
244
245 ## [0.11.1] - 2014-08-08
246 - Rename bluez test classes to TestBlueZ4 and TestBlueZ5, to tell them apart
247 in the output.
248 - logind template: Fix type of IdleSinceHint property, and add
249 IdleSinceHintMonotonic and IdleActionUSec properties. (LP: #1348437)
250 - bluez4 template: Fix settings properties in StartDiscovery/StopDiscovery.
251 Thanks to Mathieu Trudel-Lapierre.
252 - NetworkManager template: Add "Devices" and "AccessPoints" properties of
253 NetworkManager 0.9.10. (LP: #1328579)
254 - NetworkManager template: Fix the types of the AccessPoint properties, and
255 add some more properties.
256 - Adjust NetworkManager template tests for changed strings in NM 0.9.10.
257
258 ## [0.11] - 2014-07-24
259 - ofono: Fix GetOperators() to only apply to its own modem, not all modems.
260 Thanks to Jonas Grønås Drange.
261 - Add template for BlueZ 4. Thanks to Mathieu Trudel-Lapierre!
262
263 ## [0.10.3] - 2014-07-16
264 - Fix upower tests to work for upower 0.99 in environments without a system
265 D-Bus.
266
267 ## [0.10.2] - 2014-07-16
268 - ofono: Make Scan() do the same as GetOperators(). Thanks Iain Lane.
269 - README.rst: Clarify that the "True" argument to get_dbus() means the system
270 bus.
271 - Fix code to be compliant with pep8 1.5.
272 - Fix TestCLI.test_template_system test with upower 0.99. (LP: #1330037)
273 - ofono template: Support adding a second modem with AddModem().
274 (LP: #1340590)
275
276 ## [0.10.1] - 2014-01-30
277 - Move code from bzr to git, adjust README.rst, do-release, and other files
278 accordingly.
279 - timedated template: Emit PropertiesChanged when setting properties. Thanks
280 Iain Lane.
281
282 ## [0.10] - 2013-12-18
283 - Add dynamic properties to introspection XML, to make mocked properties work
284 with Qt's property support, d-feet, and other tools. Thanks Iain Lane!
285 - Fix frequent KeyError() when calling static methods from a template.
286 Regression from 0.9.
287 - Support having the same method name on different D-Bus interfaces.
288 - Add ofono template with support for the Manager, VoiceCallManager, and
289 NetworkRegistration/NetworkOperator interfaces.
290 - Add template for systemd's timedated. Thanks Iain Lane!
291
292 ## [0.9.2] - 2013-12-13
293 - upower template: Emit DeviceAdded when adding new a new AC adapter or
294 battery. Thanks Iain Lane!
295 - Fix ResourceWarnings in test suite.
296
297 ## [0.9.1] - 2013-12-10
298 - Fix UnicodeDecodeError in NEWS parsing when trying to build with a C locale.
299 Thanks Dmitry Shachnev.
300
301 ## [0.9] - 2013-11-29
302 - Make static template methods appear in introspection. Thanks Philip
303 Whitnall! (LP: #1250096)
304 - Add support for the D-Bus ObjectManager interface. This can now be enabled
305 in templates (IS_OBJECT_MANAGER = True) or the CLI (--is-object-manager/-m).
306 Thanks Philip Whitnall!
307 - Add Reset() mock interface method to reset that object’s state (including
308 removing all its sub-objects) as if the object or template had been
309 destroyed and re-created. This is intended for use at the end of test cases
310 to reset state before the next test case is run, as an alternative to
311 killing python-dbusmock and re-starting it. Thanks Philip Whitnall!
312 - logind template: Fix return value of CanSuspend() and related methods,
313 calling them previously caused a crash.
314 - Don't close the log file multiple times if it is shared between objects.
315 Thanks Philip Whitnall!
316 - Log calls to Get(), GetAll(), and Set().
317 - Add templates for BlueZ 5 and BlueZ-OBEX. These templates are moderately
318 well featured, though currently targeted exclusively at testing OBEX vCard
319 transfers from phones to computers. Thanks Philip Whitnall!
320
321 ## [0.8.1] - 2013-11-11
322 - Fix test failure if the "upower" tool is not installed.
323 - Fix bad upower test which assumed a locale with a comma decimal separator.
324
325 ## [0.8] - 2013-11-08
326 - upower template: Change default daemon version to "0.9", and fix tests to
327 work with both upower 0.9 and 1.0 client tool.
328 - upower template: Provide 1.0 API if DaemonVersion property/template
329 parameter gets set to >= "0.99". (LP: #1245955)
330 - upower template: Add SetupDisplayDevice() method on the mock interface to
331 conveniently configure all defined properties of the DisplayDevice. Only
332 available when using the 1.0 API. (LP: #1245955)
333
334 ## [0.7.2] - 2013-08-30
335 - Add optional "timeout" argument to DBusTestCase.wait_for_bus_object().
336 (LP: #1218318)
337 - DBusTestCase.start_system_bus(): Make the fake bus look more like a real
338 system bus by specifying a configuration file with type "system".
339
340 ## [0.7.1] - 2013-08-02
341 - Handle the "Disconnected" signal only if it comes from the D-Bus object, to
342 avoid accidentally reacting to other signals (like from BlueZ). Thanks
343 Lucas De Marchi.
344
345 ## [0.7] - 2013-07-30
346 - Accept *.py files for the--template command line option, similar to
347 AddTemplate(). Thanks Emanuele Aina.
348 - Pass log file to objects created with AddObject(). Thanks Emanuele Aina.
349 - NetworkManager template: Add new method AddWiFiConnection(), to simulate a
350 connection associated to a previously added device (with AddWiFiDevice()).
351 Thanks Pete Woods.
352
353 ## [0.6.3] - 2013-06-13
354 - Drop "can-suspend" and "can-hibernate" checks from upower template test.
355 upower 1.0 deprecates this functionality, and defaults to not building it.
356
357 ## [0.6.2] - 2013-06-13
358 - Fix test_api.TestSubclass test to work without an existing session D-Bus.
359
360 ## [0.6.1] - 2013-06-13
361 - Add dbusmock.__version__ attribute, as per PEP-0396.
362 - Fix not being able to inherit from DBusMockObject. Thanks Lucas De Marchi!
363 - Allow subclassed DBusMockObject constructors to specify props arguments as
364 None.
365 - Fix failing notification-daemon tests for too old libnotify. (LP: #1190208)
366 - notification_daemon template: Generate new IDs for Notify() calls with an
367 input ID of 0. (LP: #1190209 part 1)
368 - notification_daemon template: Send NotificationClosed signal in
369 CloseNotification() method for valid IDs. (LP: #1190209 part 2)
370
371 ## [0.6] - 2013-03-20
372 - Emit MethodCalled() signal on the DBusMock interface, as an alternative way
373 of verifying method calls. Thanks Lars Uebernickel.
374 - DBusMockObject.AddTemplate() and DBusTestCase.spawn_server_template() can
375 now load local templates by specifying a path to a *.py file as template
376 name. Thanks Lucas De Marchi.
377 - Quit mock process if the D-Bus it connected to goes down. (LP: #1156561)
378 - Support Get() and GetAll() with empty interface names, default to main
379 interface in this case.
380 - Add template for systemd's logind.
381
382 ## [0.5] - 2013-02-03
383 - upower template: Change LidIsClosed property default value to False.
384 - Add polkitd template. (LP: #1112551)
385
386 ## [0.4.0] - 2013-01-21
387 - Add GetCalls(), GetMethodCalls() and ClearCalls() methods on the mock D-Bus
388 interface to query the call log, for cases where parsing stdout is
389 inconvenient. Thanks to Robert Bruce Park for the patch! (LP: #1099483)
390 - Document how to keep internal state in AddMethod().
391 - Add template for gnome-screensaver. Thanks to Bastien Nocera!
392 - Fix logging of signal arguments to have the same format as method call
393 arguments.
394
395 ## [0.3.1] - 2013-01-07
396 - upower template: Set Energy and EnergyFull properties.
397
398 ## [0.3] - 2012-12-19
399 - In the logging of mock method calls, log the arguments as well.
400 - Fix race condition in waiting for mock to get online on the bus, by avoiding
401 triggering D-Bus service activation with system-installed services.
402 - Add "notification_daemon" mock template.
403
404 ## [0.2.2] - 2012-11-27
405 - tests: Suppress "nmcli and NetworkManager versions don't match" warning.
406 - networkmanager template: Add DeviceState enum for easier specification of
407 states. Thanks Alberto Ruiz.
408 - Fix deprecation warnings with PyGObject 3.7.x.
409
410 ## [0.2.1] - 2012-11-15
411 - Fix tests to skip instead of fail if NetworkManager or upower are not
412 installed.
413
414 ## [0.2.0] - 2012-11-15
415 - Turn dbusmock from a module into a package. This is transparent for API
416 users, but necessary for adding future subpackages and also makes the code
417 more maintainable.
418 - Run pyflakes and pep8 during test suite, if available.
419 - Add support for templates: You can now call AddTemplate() on the
420 org.freedesktop.DBus.Mock interface to load a template into the mock, or in
421 Python, start a server process with loading a template with
422 DBusTestCase.spawn_server_template(). Templates set up the common structure
423 of these services (their main objects, properties, and methods) so that you
424 do not need to carry around this common code, and only need to set up the
425 particular properties and specific D-Bus objects that you need. These
426 templates can be parameterized for common customizations, and they can
427 provide additional convenience methods on the org.freedesktop.DBus.Mock
428 interface to provide more abstract functionality like "add a battery".
429 - Add a first simple "upower" template with convenience methods to add AC and
430 battery objects, and change tests/test_upower.py to use it.
431 - Add a first "networkmanager" template with convenience methods to add
432 Ethernet/WiFi devices and access points. Thanks Iftikhar Ahmad!
433 - Add symbol dbusmock.MOCK_IFACE for 'org.freedesktop.DBus.Mock'.
434 - Add test cases for command line invocation (python3-m dbusmock ...).
435
436 ## [0.1.3] - 2012-11-03
437 - Ship NEWS in release tarballs.
438
439 ## [0.1.2] - 2012-10-10
440 - dbusmock.py, EmitSignal(): Convert arguments to the right data types
441 according to the signature.
442 - dbusmock.py, method calls: Convert arguments to the right data types
443 according to the signature.
444 - tests/test_api.py: Check proper handling of signature vs. argument list
445 length and/or type mismatch. (LP: #1064836)
446 - tests/test_upower.py: Add test for handling "DeviceChanged" signal.
447 - setup.py: Get version from NEWS file.
448
449 ## [0.1.1] - 2012-10-04
450 - setup.py: Use README.rst as long description.
451 - setup.py: Add download URL.
452 - tests/test_consolekit.py: Skip test if ck-list-sessions is not installed.
453 - setup.py: Import "multiprocessing" to work around "'NoneType' object
454 is not callable" error when running "setup.py test" with python 2.7.
455
456 ## [0.1] - 2012-10-04
457 - tests/test_api.py: Add tests for adding existing objects.
458 - dbusmock.py: Also put first (main) object into the global objects map.
459 - dbusmock.py: Document global objects map in AddMethod().
460 - tests/test_upower.py: Silence "No ... property" warnings; the test does not
461 create them all.
462 - dbusmock.py: Fix stopping of local D-Bus daemons for test subclasses.
463 - dbusmock.py, stop_dbus(): Wait for local D-Bus to be killed, and avoid
464 getting SIGTERMed ourselves.
465 - dbusmock.py: Add AddProperties() method to conveniently add several
466 properties to one interface at once. Update upower test case to use this.
467 - dbusmock.py: Add EmitSignal() method to emit an arbitrary signal on any
468 interface.
469 - Make code compatible with Python 2.7 as well. (LP: #1060278)
470
471 ## [0.0.3] - 2012-10-01
472 - tests/test_api.py: Add tests for GetAll()
473 - wait_for_bus_object(): Poll for Introspect() instead of GetAll(), as some
474 services such as gnome-session don't implement GetAll() properly.
475 - Rename "dbus_mock" module to "dbusmock", to be more consistent with the
476 project name and Python module name conventions.
477 - Support adding properties to different interfaces.
478 - Support adding methods to different interfaces.
479
480 ## [0.0.2] - 2012-10-01
481 - setup.py: Add categories.
482
483 ## [0.0.1] - 2012-09-28
484 Initial release.