File: task.yaml

package info (click to toggle)
snapd 2.71-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 79,536 kB
  • sloc: ansic: 16,114; sh: 16,105; python: 9,941; makefile: 1,890; exp: 190; awk: 40; xml: 22
file content (41 lines) | stat: -rw-r--r-- 1,689 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
summary: The packagekit-control interface grants access to PackageKit

details: |
    The packagekit-control interface allows access to the now-deprecated Package
    Kit service, which exposes D-Bus methods for managing classic packages on
    the host.

systems:
    # Ubuntu Core does not provide a packagekitd implementation
    - -ubuntu-core-*
    # Ubuntu 14.04 PackageKit seems to be too old
    - -ubuntu-14.04-*
    # Arm64 is not supported
    - -ubuntu-*-arm-64

restore: |
    snap remove --purge test-snapd-packagekit

execute: |
    echo "Installing test-snapd-packagekit"
    snap install --edge test-snapd-packagekit

    echo "The packagekit-control plug is disconnected by default"
    snap connections test-snapd-packagekit | MATCH "packagekit-control +test-snapd-packagekit:packagekit-control +- +-"
    if [ "$(snap debug confinement)" = strict ]; then
        echo "Access to PackageKit is blocked without"
        test-snapd-packagekit.pkcon backend-details | MATCH "Failed to contact PackageKit"
    fi

    echo "The plug can be connected"
    snap connect test-snapd-packagekit:packagekit-control
    snap connections test-snapd-packagekit | MATCH "packagekit-control +test-snapd-packagekit:packagekit-control +:packagekit-control +manual"

    echo "With the plug connected it is possible to communicate with packagekit"
    if [ "${SNAPD_USE_PROXY:-}" = true ] && os.query is-xenial; then
        # PackageKit fails with a proxy
        # https://bugzilla.redhat.com/show_bug.cgi?id=1348843
        exit 0
    fi
    test-snapd-packagekit.pkcon backend-details | MATCH "Name:"
    test-snapd-packagekit.pkcon resolve snapd | MATCH "Installed[[:space:]]+snapd"