+ CONNECTED_PATTERN=':avahi-observe +generic-consumer'
+ DISCONNECTED_PATTERN='^\- +generic-consumer:avahi-observe'
+ avahi_dbus_call='dbus-send --system --print-reply --dest=org.freedesktop.Avahi / org.freedesktop.Avahi.Server.GetHostName'
+ echo 'Then the plug is disconnected by default'
Then the plug is disconnected by default
+ MATCH '^\- +generic-consumer:avahi-observe'
+ snap interfaces
++ snap debug confinement
+ '[' strict = strict ']'
+ echo 'And the snap is not able to access avahi provided info'
And the snap is not able to access avahi provided info
+ generic-consumer.cmd dbus-send --system --print-reply --dest=org.freedesktop.Avahi / org.freedesktop.Avahi.Server.GetHostName
+ MATCH org.freedesktop.DBus.Error.AccessDenied
+ cat avahi.error
error: pattern not found, got:
Failed to open connection to "system" message bus: Failed to query AppArmor policy: Permission denied
+ CONNECTED_ PATTERN= ':avahi- observe +generic-consumer' PATTERN= '^\- +generic- consumer: avahi-observe' call='dbus- send --system --print-reply --dest= org.freedesktop .Avahi / org.freedesktop .Avahi. Server. GetHostName' consumer: avahi-observe' consumer. cmd dbus-send --system --print-reply --dest= org.freedesktop .Avahi / org.freedesktop .Avahi. Server. GetHostName .DBus.Error. AccessDenied
+ DISCONNECTED_
+ avahi_dbus_
+ echo 'Then the plug is disconnected by default'
Then the plug is disconnected by default
+ MATCH '^\- +generic-
+ snap interfaces
++ snap debug confinement
+ '[' strict = strict ']'
+ echo 'And the snap is not able to access avahi provided info'
And the snap is not able to access avahi provided info
+ generic-
+ MATCH org.freedesktop
+ cat avahi.error
error: pattern not found, got:
Failed to open connection to "system" message bus: Failed to query AppArmor policy: Permission denied