diff options
author | Simon McVittie <smcv@collabora.com> | 2018-01-10 15:00:41 +0000 |
---|---|---|
committer | Simon McVittie <smcv@collabora.com> | 2018-01-15 12:28:01 +0000 |
commit | 2b60ee640c85cddcc20a4d1ad18bda6e8398c907 (patch) | |
tree | 4e269d265823bea588225255acf8ac57b863ed35 /test/containers.c | |
parent | 86ef806c5860aaefcd0c6e5b2e348bd66cdafe33 (diff) | |
download | dbus-2b60ee640c85cddcc20a4d1ad18bda6e8398c907.tar.gz |
test/containers: Don't require type, name in GetConnectionCredentials
On the session bus, the container type and name might be
uncontroversial, but on the system bus, it's questionable how far
they can be trusted: they're supplied by the initiator of the
per-container server, so we only have their word for it.
Signed-off-by: Simon McVittie <smcv@collabora.com>
Reviewed-by: Philip Withnall <withnall@endlessm.com>
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=104610
Diffstat (limited to 'test/containers.c')
-rw-r--r-- | test/containers.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/test/containers.c b/test/containers.c index b706bdd1..92e93ae6 100644 --- a/test/containers.c +++ b/test/containers.c @@ -509,14 +509,6 @@ test_metadata (Fixture *f, DBUS_INTERFACE_CONTAINERS1 ".Instance", "&o", &path_from_query)); g_assert_cmpstr (path_from_query, ==, f->instance_path); - g_assert_true (g_variant_dict_lookup (&dict, - DBUS_INTERFACE_CONTAINERS1 ".Type", - "&s", &type)); - g_assert_cmpstr (type, ==, "org.example.Springwatch"); - g_assert_true (g_variant_dict_lookup (&dict, - DBUS_INTERFACE_CONTAINERS1 ".Name", - "&s", &name)); - g_assert_cmpstr (name, ==, ""); g_variant_dict_clear (&dict); g_clear_pointer (&asv, g_variant_unref); g_clear_pointer (&tuple, g_variant_unref); |