History log of /sssd/src/tests/sbus_tests.c
Revision Date Author Comments Expand
626d8217a2e578ba641ae3c968752aa15284a210 19-Sep-2016 Petr Čech <pcech@redhat.com>

TESTS: Fixing of 'const' warnings in sbus tests Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

6b01dae732eedee808f32a9cdd4b5656a9f839c4 14-Nov-2015 Jakub Hrozek <jhrozek@redhat.com>

sbus: Check string arguments for valid UTF-8 strings libdbus abort()s when a string argument is not valid UTF-8. Since the arguments sometimes come from untrusted sources, it's better to check the string validity explicitly. Reviewed-by: Sumit Bose <sbose@redhat.com>

f7adbb15dbdcb79e291f7cf361a400ce25f7b382 18-Jun-2015 Pavel Březina <pbrezina@redhat.com>

SBUS: Add support for <node /> in introspection Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

66277b21179d95f6e96abed01a20ccbccf27ce99 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: unify naming of handler data variable We used three different names to express handler data: - pvt - instace_data - handler_data Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

b742179ac0790068380618ab72a06af18544f09c 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: support org.freedesktop.DBus.Properties Bring back org.freedesktop.DBus.Properties with support of multiple interfaces on single object path. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

80d0bd38268c02fd32f62b02ae59f19229ca1a79 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: support org.freedesktop.DBus.Introspectable This commit brings back support of Introspectable interface and enables support of multiple interfaces there. It also refactors the old code so the generator and introspect xml format especially is more readable. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

71c9027d4192bf149afa4fcf9fef93bf6e901121 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: add object path to sbus request Object path is heavily used in implementation of methods from interfaces that are supported on whole subtrees. Although it can be obtained from a D-Bus message, it is nice to have it accessible directly. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

46ee931314e6a5517f5c6b6b14f759364be119cc 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: support multiple interfaces on single path This patch removes the old message handler which is replaced with a new one that supports multiple interfaces registered on single object path. A hash table is used to store registered object paths and their interfaces. When an entry or the table itself is destroyed, registered object path is unregistered through delete callback. It temporarily removes support of Introspect and Properties standard D-Bus interfaces and disables unit tests of those interfaces. The support is brought back by following patches. Resolves: https://fedorahosted.org/sssd/ticket/2339 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

9fa95168d80beba04b333b06edc492ecb8b085a1 23-Jan-2015 Pavel Březina <pbrezina@redhat.com>

sbus: add new iface via sbus_conn_register_iface() Rename sbus_conn_add_interface() to sbus_conn_register_iface() and remove sbus_new_interface() calls since it is just one more unnecessary call outside the sbus code. The function sbus_new_interface() is made static and used directly in sbus_conn_register_iface(). The name was chosen to better describe what the function is doing. That it registers an interface on a given object path. The same interface can be used with different paths so it is not really about adding an interface. Preparation for: https://fedorahosted.org/sssd/ticket/2339 Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>

bdbb5cd11752d79488e5d87b908103322e010df1 27-May-2014 Jakub Hrozek <jhrozek@redhat.com>

SBUS: Add org.freedesktop.DBus.Properties.GetAll to Introspection Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

4f7f714e118e95896fac5239c7a8b529c39a4758 27-May-2014 Jakub Hrozek <jhrozek@redhat.com>

SBUS: Implement org.freedesktop.DBus.Properties.GetAll for primitive types This patch implements the GetAll method of the org.freedesktop.DBus.Properties interface by iterating over the available getters and putting all the results into a single getter. The patch includes a unit test that exercies all currently supported array types. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

0d8fbc2cb822b4fef90588ca368ceb883b8379f2 22-May-2014 Jakub Hrozek <jhrozek@redhat.com>

SBUS: Add org.freedesktop.DBus.Properties.Get to Introspection Reviewed-by: Stef Walter <stefw@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com>

87729e3a6c56383642a8d3a86b2856487f2ee064 13-May-2014 Jakub Hrozek <jhrozek@redhat.com>

SBUS: Add a convenience function sbus_error_new Adds a convenience function that constructs a DBusError on top of a talloc context and as such can be used to mark an sbus request as failed without having to create a DBusError instance by the caller. Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Stef Walter <stefw@redhat.com>

615316359a8cef049f1bb4e8fef5fd52cb1755fa 19-Apr-2014 Pavel Březina <pbrezina@redhat.com>

sbus_tests: fix missing invoker in initializer

42c28b9424b6ef8a0021b124773e171dd5defadd 15-Apr-2014 Jakub Hrozek <jhrozek@redhat.com>

SBUS: Generate introspection from the interface meta structure https://fedorahosted.org/sssd/ticket/2234 This patch generates the introspection data from the sbus interface meta structure. The generated XML conforms to http://dbus.freedesktop.org/doc/dbus-specification.html#introspection-format The XML description of the interface also always includes the org.freedesktop.DBus.Introspectable interface, which this patch also allows in the policy settings.

a8f6a9dd171f89ecfb41822901805b5c73b5ea77 10-Apr-2014 Jakub Hrozek <jhrozek@redhat.com>

tests: Don't set the check fork mode explicitly Instead, let the user pick the fork mode with CK_FORK variable (see info check) Reviewed-by: Sumit Bose <sbose@redhat.com>

06b7bc8ca2e005ed510210d3b8dee16afbabbcc9 14-Mar-2014 Stef Walter <stefw@redhat.com>

sbus: Add the sbus_request_parse_or_finish() method Some DBus types returned from dbus_message_get_args() require memory to be released when done. We automatically attach these to the talloc struct sbus_request memory context in this function. This accepts varargs similar to dbus_message_get_args(), which are rather awkward. However instead of reworking them completely, future generated marshalling code will replace most uses of these varargs. If parsing the dbus message fails, then it responds to the DBus caller with an appropriate error such as o.f.D.Error.InvalidArgs. In these cases (ie: when it returns FALSE) the sbus_request is finished. Migrated some, but not all, uses of dbus_message_get_args() to the new function. Some instances have uncommon semantics such as terminating the connection upon failure to parse a message. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

f5e47e1d65f80ffdb1893feab18583a74d661214 14-Mar-2014 Stef Walter <stefw@redhat.com>

sbus_tests: Add some testing of dispatch and handler code This starts a DBus server with some handlers, and runs some method calls against it. Note that we don't use the codegen in the sbus_tests, as we sorta want to test this non-codegen related functionality on its own before we run the sbus_codegen_tests. Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> Reviewed-by: Pavel Březina <pbrezina@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>